Apk generated using Android studio is not initializing?

0
Hi everyone, I need to generate an apk file of my hybrid mobile app mendix project and have done so using the following instructions: https://docs.mendix.com/developerportal/deploy/mobileapp#doing-it-yourself  (Since Adobe PhoneGap is no longer available i have used the Doing it Yourself documentation) As given in the instructions I have followed all the steps and the apk has been generated successfully but im getting this error:       I have tried building and rebuilding multiple times but the above problem persists. For a detailed view of what I did: https://writer.zohopublic.com/writer/published/cpuhw960c9247657841f1b88fc46a56ccf7c8 Thanks in advance for any help that can be given :) Regards, Anirudh
asked
3 answers
3

Hi,

If you are creating hybrid mobile app that is running in the sandox but not other environments like UAT,accp,prod etc, make sure that you have deployed your app to sandbox in the Mendix cloud first before trying to open the mobile app. If you try to open the app before doing this, you will receive the following error :  Cannot initialize app in client side. And also make sure apk is reaching out to correct end point url or not.

 

answered
1

Hi,

You could use adb logcat to checkout for any errors on the OS level that might help you out. the debug process is similar for Native

https://docs.mendix.com/howto/mobile/native-debug#4-1-using-android-logcat

Cheers, Andries

answered
0

If you are running Mendix on your local machine, it may help to enable “bundle widgets when running locally”

https://docs.mendix.com/refguide/project-settings 

If this doesnt help, chances are that one of the widgets is causing this.

You could strip the application from any custom widgets one by one and see if that fixes it.

answered