ClassNotFoundException auf der Registerkarte Galaxy (nur)
Frage
Ich habe eine funktionierende Android -Anwendung. Es funktioniert auf mehr als 500 verschiedenen Geräten. Das Manifest ist
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="info.decamps.droid.photoid" android:versionCode="5"
android:versionName="1.4">
<application android:icon="@drawable/icon" android:label="@string/app_label"
android:name="PhotoIDroid" android:description="@string/app_desc"
android:debuggable="FALSE">
Aber wenn es von einem Samsung Galaxy -Registerkarte gestartet wurde, beginnt es nicht und stürzt mit:
java.lang.runtimeexception: Anwendung info.decamps.droid.photoid.photoidroid: java.lang.classnotfoundException: info.decamps.droid.photoid.photoidroid in lader dalvik.system.pathClassloader [/Data/App/Appl/Apply/App/Appl/Apply/App). decamps.droid.photoid-1.apk] at android.app.Activity thread $ packageInfo.makeApplication (ActivityThread.java:670) at Android.app.AndivityThead.ArdleBindApplication (ActivityThread.java:4483) unter Android.app.App.Access. $ 3000 (ActivityThread.java:135) at Android.App.ActivityThread $ H.Handlemessage (ActivityThread.java:2181) at Android.os.Handler.DispatchMessage (Handler.java:99) unter Android.os.looper.loop (Looper (Looper (Looper) (Looper.loop (Looper .java: 144) at android.app.ActivityThread.main (ActivityThread.java:4937) unter java.lang.reflect.method.invokenative (native Methode) unter java.lang.reflect.method.invoke (method.java:521 ) at com.android.internal.os.zygoteinit $ methodandArgscaller.run (Zygoteinit.java:868) unter com.android.internal.os.zygoteinit.main (Zygoteinit.java:626) in Dalvik.System.nativestarestarestarestarestarestarestarestarestarestarestarestars T.Main (native Methode) verursacht durch: java.lang.classnotFoundException: info.decamps.droid.photoid.photoidroid in lader dalvik.system.pathClassloader [/data/app/info.decamps.droid.photoid-1.apk] bei Dalvik.System.PathClassloader.findClass (PathClassloader.java:243) unter java.lang.classloader.loadClass (classloader.java:573) unter java.lang.classloader.loadclass (classloader.java:532) at android.app. Instrumentation.NewApplication (Instrumentation.java:945) at android.app.ActivityThread $ packageInfo.makeApplication (ActivityThread.java:660) ... 11 MEHR
Wie findet die Samsung Galaxy die Anwendungsklasse nicht? Irgendwelche Ahnung, wie ich das beheben kann?
Ich konnte den Absturz auf dem Samsung Galaxy Emulator reproduzieren.
Lösung
Ich habe das entfernt android:name
Attributerklärung aus der AndroidManifest.xml
Und es funktioniert jetzt.