In Manifest finden erklärte ichAndroid nicht Anwendungsklasse Absturz
<application
android:name=com.example.App>
Wenn die App startet, manchmal Absturz passiert:
java.lang.RuntimeException: Unable to instantiate application com.example.App: java.lang.ClassNotFoundException: Didn't find class "com.example.App" on path: DexPathList[[zip file "/mnt/asec/com.example.myapp-1/pkg.apk"],nativeLibraryDirectories=[/mnt/asec/com.example.myapp-1/lib, /vendor/lib, /system/lib]]
at android.app.LoadedApk.makeApplication(LoadedApk.java:516)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4514)
at android.app.ActivityThread.access$1500(ActivityThread.java:151)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1381)
at android.os.Handler.dispatchMessage(Handler.java:110)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:5299)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:825)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:641)
at dalvik.system.NativeStart.main(Native Method)
Ist es möglich, es irgendwie zu beheben?
Haben Sie eine Anwendungsklasse erstellt? –
"manchmal passiert dieser Unfall": Können Sie das näher erläutern? Wann stürzt es nach einer Neuinstallation ab? – Henry
Sehen Sie sich den Paketnamen oben in Ihrer App-Klasse an. Sie sind sicher, dass 'name' Attribut nicht' android: name = com.example.myapp.App' sein sollte? –