Android debug APK crushes

I get this popup when I open a debug apk generated on Appflow. The build runs successfully and I am able to install the app but does not run. I do not get this problem when an apk is generated in Android Studio.

Any suggestions to fix this?

No solution, but maybe use the ADB debugger to log output and see what crashes?

I am building online (Appflow) I cant open the app at all when its installed

where is the screenshot based on? A live device? Then you can connect a USB cable and run adb debug to get a syslog? It will be interesting to see what the syslogger says when you launch the app - or try to do so.

Hi dlodeprojuicer,

The best way to figure out what’s going on with your app is to install the app on a device and look up the console from the chrome inspector. You can use an Android debug build for this.

I suspect this could also be caused by the web code or any splash-screen logic that could be interfering with your application, especially since the build in appflow is successful.

It might be helpful to take a look at your project and verify if there is anything standing out. I would encourage you to contact the Appflow support along with the App ID and build ID for further assistance.

Thanks,

Hi @Likhith_Aalla
I am not sure I understand exactly what you mean about the chrome inspector if the app is native. Perhaps a step by step on how I can do this?

Android debug build? The apk is a debug build, it was created on Appflow. I dont understand what you mean by this either.

I sent an email before posting here. 2 emails. But generally the forum is more responsive so I figured I’d post here also.

Chrome devtools:

ADB:

Bro, I cannot do this because the app does not launch at all. It immediately shows the popup.

Bro, then you REALLY should use adb to see what android says about your app when it is launched (or when u try to)

Hi,

For any Capacitor project, it is recommended that you have all of the capacitor versions on the same and latest. Could you try updating the capacitor/core, capacitor/CLI, capacitor/android, and capacitor/ios to the latest version.

Reference:

Having the latest version of web-view and capacitor should resolve the crash issues that you are seeing.

If you are facing any further issues, I would encourage you to contact the Appflow support for further assistance.

Cheers,

Updating Capacitor solved the issue. Thanks.

1 Like