locked
Unfortunately app stopped. java.lang.ClassNotFoundException: mono.android.app.Application RRS feed

  • Question

  • User130935 posted

    For Android v4 (both emulators and real devices) i have the the following log. It's all good with Android v5.0+ (both emulators and real devices). http://pastebin.com/veLZETgr . I've tried reinstalling Xamarin, switching Shared Runtine off, but nothing helps. As I can see now, the error appeared about a month ago (apk's of that time crash on v4 devices too). Now it appears in older versions of app, where it didn't apear before, too (I'm using svn and reverted to that revision). Other apps (Sample one, and some of the previous of mine) don't have the error. The main thing, I suppose: 11-21 18:46:18.169 E/AndroidRuntime( 2045): FATAL EXCEPTION: main 11-21 18:46:18.169 E/AndroidRuntime( 2045): java.lang.RuntimeException: Unable to instantiate application mono.android.app.Application: java.lang.ClassNotFoundException: mono.android.app.Application 11-21 18:46:18.169 E/AndroidRuntime( 2045): at android.app.LoadedApk.makeApplication(LoadedApk.java:501) 11-21 18:46:18.169 E/AndroidRuntime( 2045): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4124) 11-21 18:46:18.169 E/AndroidRuntime( 2045): at android.app.ActivityThread.access$1300(ActivityThread.java:130) 11-21 18:46:18.169 E/AndroidRuntime( 2045): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1255) 11-21 18:46:18.169 E/AndroidRuntime( 2045): at android.os.Handler.dispatchMessage(Handler.java:99) 11-21 18:46:18.169 E/AndroidRuntime( 2045): at android.os.Looper.loop(Looper.java:137) 11-21 18:46:18.169 E/AndroidRuntime( 2045): at android.app.ActivityThread.main(ActivityThread.java:4745) 11-21 18:46:18.169 E/AndroidRuntime( 2045): at java.lang.reflect.Method.invokeNative(Native Method) 11-21 18:46:18.169 E/AndroidRuntime( 2045): at java.lang.reflect.Method.invoke(Method.java:511) 11-21 18:46:18.169 E/AndroidRuntime( 2045): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786) 11-21 18:46:18.169 E/AndroidRuntime( 2045): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) 11-21 18:46:18.169 E/AndroidRuntime( 2045): at dalvik.system.NativeStart.main(Native Method) 11-21 18:46:18.169 E/AndroidRuntime( 2045): Caused by: java.lang.ClassNotFoundException: mono.android.app.Application 11-21 18:46:18.169 E/AndroidRuntime( 2045): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61) 11-21 18:46:18.169 E/AndroidRuntime( 2045): at java.lang.ClassLoader.loadClass(ClassLoader.java:501) 11-21 18:46:18.169 E/AndroidRuntime( 2045): at java.lang.ClassLoader.loadClass(ClassLoader.java:461) 11-21 18:46:18.169 E/AndroidRuntime( 2045): at android.app.Instrumentation.newApplication(Instrumentation.java:967) 11-21 18:46:18.169 E/AndroidRuntime( 2045): at android.app.LoadedApk.makeApplication(LoadedApk.java:496) 11-21 18:46:18.169 E/AndroidRuntime( 2045): ... 11 more 11-21 18:46:18.185 W/ActivityManager( 302): Force finishing activity TabletkiAndroid.TabletkiAndroid/md5446938d70c00c3e86974af7ab11c010e.MainActivity Any help, please. It's release version of my app, so I need to fix it asap.

    Saturday, November 21, 2015 6:11 PM

Answers

  • User130935 posted

    Recreating solution solved the problem. Seems like irritating bug.

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Sunday, November 22, 2015 1:50 PM

All replies

  • User130935 posted

    Recreating solution solved the problem. Seems like irritating bug.

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Sunday, November 22, 2015 1:50 PM
  • User53176 posted

    I have the same bug and have recreated my solution but the issue persists. Has anyone got any other suggestions?

    Tuesday, December 29, 2015 12:50 PM
  • User98255 posted

    I had the same issue on android v4.0 devices (for me it also didn't happend on android v5.0+) and I have tried all suggestions which I found in google, stack overflow etc. At the end removing the whole android sdk and reinstalling them solved the issue. (to make sure I removed android sdk and android studio, then installed android studio package.) Hope it helps.

    Tuesday, March 1, 2016 1:15 PM
  • User43648 posted

    Sometimes happen on my app in debug mode. A rebuild solve the problem. I hope this not happen on release mode.....

    Tuesday, March 1, 2016 1:27 PM