question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unfortunately Myapp has stopped.

See original GitHub issue

The new version of cordova-plugin-app-update throws an error

Unfortunately Myapp has stopped work To debug, firstly I created a new ionic projects - ionic start Myapp tabs. Then I ran the command ionic cordova run android --device and it worked fine.

Then when I install cordova-plugin-app-update, and nothing else ionic cordova plugin add cordova-plugin-app-update npm install --save @ionic-native/app-update

Myapp throws an error

Unfortunately Myapp has stopped.

This is the result of my ionic info

@ionic/cli-utils  : 1.19.1
ionic (Ionic CLI) : 3.19.1

global packages:

cordova (Cordova CLI) : 8.0.0

local packages:

@ionic/app-scripts : 3.1.8
Cordova Platforms  : android 7.0.0
Ionic Framework    : ionic-angular 3.9.2

System:

Node : v6.11.3
npm  : 3.10.10
OS   : Windows 10

Thanks

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:30 (7 by maintainers)

github_iconTop GitHub Comments

16reactions
fxp528commented, Feb 2, 2018

@ian-beer @egrendonDev My solution is move the folder in android/src/com/vaenow to android/app/src/main/java/com. I think it’s wrong when installing plugin. cordova (Cordova CLI) : 8.0.0 Cordova Platforms : android 7.0.0 ios 4.3.1

3reactions
ian-beercommented, Jan 30, 2018

We have the same problem.

Ours is also an ionic 2 app, it builds fine locally from visual studio code or web storm. but the build is flawed once it goes thru our build pipeline, signed etc.

it does not work on either: Pixel 2 Samsung S7

LogCat Error:

01-29 11:32:41.019: E/AndroidRuntime(32341): java.lang.RuntimeException: Unable to get provider com.vaenow.appupdate.android.GenericFileProvider: java.lang.ClassNotFoundException: Didn't find class "com.vaenow.appupdate.android.GenericFileProvider" on path: DexPathList[[zip file "/data/app/dev.dt.buyonic-0wIZ-ocXJDVePwsPQm_OiQ==/base.apk"],nativeLibraryDirectories=[/data/app/dev.dt.buyonic-0wIZ-ocXJDVePwsPQm_OiQ==/lib/arm64, /system/lib64]]
01-29 11:32:41.019: E/AndroidRuntime(32341): 	at android.app.ActivityThread.installProvider(ActivityThread.java:6242)
01-29 11:32:41.019: E/AndroidRuntime(32341): 	at android.app.ActivityThread.installContentProviders(ActivityThread.java:5805)
01-29 11:32:41.019: E/AndroidRuntime(32341): 	at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5722)
01-29 11:32:41.019: E/AndroidRuntime(32341): 	at android.app.ActivityThread.-wrap1(Unknown Source:0)
01-29 11:32:41.019: E/AndroidRuntime(32341): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1656)
01-29 11:32:41.019: E/AndroidRuntime(32341): 	at android.os.Handler.dispatchMessage(Handler.java:106)
01-29 11:32:41.019: E/AndroidRuntime(32341): 	at android.os.Looper.loop(Looper.java:164)
01-29 11:32:41.019: E/AndroidRuntime(32341): 	at android.app.ActivityThread.main(ActivityThread.java:6494)
01-29 11:32:41.019: E/AndroidRuntime(32341): 	at java.lang.reflect.Method.invoke(Native Method)
01-29 11:32:41.019: E/AndroidRuntime(32341): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
01-29 11:32:41.019: E/AndroidRuntime(32341): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
01-29 11:32:41.019: E/AndroidRuntime(32341): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.vaenow.appupdate.android.GenericFileProvider" on path: DexPathList[[zip file "/data/app/dev.dt.buyonic-0wIZ-ocXJDVePwsPQm_OiQ==/base.apk"],nativeLibraryDirectories=[/data/app/dev.dt.buyonic-0wIZ-ocXJDVePwsPQm_OiQ==/lib/arm64, /system/lib64]]
01-29 11:32:41.019: E/AndroidRuntime(32341): 	at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:125)
01-29 11:32:41.019: E/AndroidRuntime(32341): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
01-29 11:32:41.019: E/AndroidRuntime(32341): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
01-29 11:32:41.019: E/AndroidRuntime(32341): 	at android.app.ActivityThread.installProvider(ActivityThread.java:6227)
01-29 11:32:41.019: E/AndroidRuntime(32341): 	... 10 more
Read more comments on GitHub >

github_iconTop Results From Across the Web

8 Quick Ways to Fix “Unfortunately App Has Stopped” On ...
Clear the app's cache & data · Fire up your phone Settings · Tap the Apps & Notifications · Tap See all apps...
Read more >
Fix Error Unfortunately App Has Stopped on Android - EaseUS
Common Ways to Fix The Error "Unfortunately app has stopped" · Method 1. Re-install the app. We suggest you take the method for...
Read more >
7 Ways to Fix 'Unfortunately, App Has Stopped' Error on Android
Fix Unfortunately App Has Stopped Error on Android · 1. Restart Your Phone · 2. Force Stop the App · 3. Update the...
Read more >
How to Eliminate the "Unfortunately, App Has Stopped ...
The “Unfortunately, App has stopped” message can also be caused by a corrupted SD card. To check, remove the SD card and try...
Read more >
How to fix "unfortunately app has stopped" error on Android?
1. Clear the cache fix unfortunately app has stopped · 2. Restart the device · 3. Update the app · 4. Uninstall and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found