Native Builder failed to create repository

0
Hi All I’m trying to create a .apk file for the native mobile app that was build. I ran the prepare command by giving all the parameters but the native builder throwing the error that unable to repository. I tried by deleting the repo and by creating new access token but of no use . please find the screenshot of the error. Any help is appreciated
asked
2 answers
0

Hi, 

 

It seems that the tool Native Builder is deprecated:

https://docs.mendix.com/refguide8/native-builder/


Since you are using Studio Pro 9.11, you can use the new tool:

https://docs.mendix.com/refguide/mxbuild/

 

I use a cmdline similar to this to generate the bundle:

C:\Programs\Mendix\{MxVersion}\modeler\mxbuild.exe --java-home="C:\Program Files\AdoptOpenJDK\jdk-11.0.3.7-hotspot" --java-exe-path="C:\Program Files\AdoptOpenJDK\jdk-11.0.3.7-hotspot\bin\java.exe" --target=deploy --native-packager --loose-version-check {MprProject}

 

then copy the bundle to the Native Template folder (powershell):

Copy-Item -Path "{your project folder}\deployment\native\bundle\android\*" -Destination "{your template folder}\android\app\src\main\" -Recurse -Force

 

run the required node commands in the root of Native Template folder:

npm install
npm run configure

 

And at the end, run the command to generate the APK (powershell):

Set-Location {your template folder}\android\
.\gradlew.bat assembleAppstoreDebug

 

Or use the UI tool:

https://docs.mendix.com/refguide/mobile/distributing-mobile-apps/building-native-apps/deploying-native-app/

that does all this job for you.

 

I personally prefer to gen APK locally, not relying the the cloud services AppCenter or Git.

Local generation is a lot faster, as well.

 

Finally, please revogue your Git and Appcenter Tokens, for security reasons, since they are exposed in the screenshot.

 

Good luck!

answered
0

Hi 
facing this error after following the instruction in the documentation and also tried providing the command for build mentioned by @Vinicius Strugata Ambrosio

answered