.apk file is not installed in android device

0
Hi I've built a native app using the Mendix App for Configuration local building. After completing the local configuration, I ran the build using Android Studio, which automatically installed the app on connected android device. However, when attempting to install the app using the APK file located at C:\Users\{owner}\Desktop\TEST\android\app\build\intermediates\apk\appstore\debug, The installation fails, and it seems App not installed as package appears to be invalid.
asked
2 answers
0

Dear Venkat,

 

Please follow this below document step by step carefully, 

https://docs.mendix.com/howto/mobile/deploying-native-app

 

Thanks & Regards,

Manikandan K

answered
0

Hello

 

On Android Studio, in order to generate the APK Debug for testing purposes, prefer to use the Build button (the hammer)  instead of the Play button.

 

Rationale: you are in the control on which phase the problem is, therefore is easier to investigate the problem.

 

I personally prefer do separately:

  • Sync Gradle
  • Build
  • Install

 

The APK is generated by the Build button is at:

[your_template]\android\app\build\outputs\apk\appstore\debug

 

image.png

 

You can install the APK by drag&dropping in your emulator or mirrored device (I use SCRCPY+)

 

See the error messages in LogCat, if any.

answered