Question

I have a working Android application. It works on more than 500 different devices. The manifest is

<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">

But when it it launched from a Samsung Galaxy Tab, it doesn't start and crashes with:

java.lang.RuntimeException: Unable to instantiate application info.decamps.droid.photoid.PhotoIDroid: java.lang.ClassNotFoundException: info.decamps.droid.photoid.PhotoIDroid in loader dalvik.system.PathClassLoader[/data/app/info.decamps.droid.photoid-1.apk] at android.app.ActivityThread$PackageInfo.makeApplication(ActivityThread.java:670) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4483) at android.app.ActivityThread.access$3000(ActivityThread.java:135) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2181) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:144) at android.app.ActivityThread.main(ActivityThread.java:4937) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:521) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.ClassNotFoundException: info.decamps.droid.photoid.PhotoIDroid in loader dalvik.system.PathClassLoader[/data/app/info.decamps.droid.photoid-1.apk] at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243) at java.lang.ClassLoader.loadClass(ClassLoader.java:573) at 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 more

How an the Samsung Galaxy not find the application class? Any clue on how to resolve this?

I have been able to reproduce tis crash on the Samsung Galaxy emulator.

Was it helpful?

Solution

I have removed the android:name attribute declaration from the AndroidManifest.xml and it now works.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top