0
I’m having the following difficulty a few days after generating my APK and installing on my device while trying to open it displays the message
the app stopped
I took an old Ionic project and added new features to it, when I run the commands to add the platform: ionic cordova platform add android
and generate the apk: ionic cordova build android
, it works normally and generates my APK.
However when I take the generated APK and install in my mobile and try to open the message O app parou
and if I close and try to open again it displays the message O app apresenta erros continuamente
.
But if executed in the browser it works normally.
Characteristics of my environment
S.O. : Ubuntu 18.04.1 LTS
Ionic: Ionic (Ionic CLI) : 4.2.1
Ionic Framework : Ionic-angular 3.9.2
@Ionic/app-scripts : 2.1.3
Cordova: Cordova (Cordova CLI) 8.0.0
Cordova Platforms : android 6.3.0
Cordova Plugins : no whitelisted plugins (23 plugins total)
System: Android SDK Tools : 26.1.1
Nodejs : V8.12.0
npm : 6.4.1
OS : Linux 4.15
The operating system is saying: The app has errors. There is no alternative, you will have to investigate the reason(s) of(s) error(s).
– Reginaldo Rigo
Enable USB debugging and run the monitor (android sdk/tools) to know what is stopping the execution.
– NilsonUehara
It’s probably some plugin that does not support the version of your android. I’ve been through it with the background plugin.
– Guilherme Lirio
@Guilhermelirio did not have this plugin in my project. There was something else you did to solve this problem?
– Marcos Paes Leme
Test the command: Cordova serves, and open the address it asks for (localhosr:8000). Click on browser and see if there are any JS errors.
– Guilherme Lirio