android.content.pm.PackageManager$NameNotFoundException

Hi All,

 

anyone encounter the 'name not found exception' in android platform (MOTOROLA 4.1.2 DROID RAZRM)? my app work fine with the overwrite installation with command 'adb install -r xxxx.apk' in every platform except for the model of MOTOROLA shown above. and i check the other launcheres (adw launcher, launcher pro, and ......10 launchers ) in android play store, every launcher occurs such error.

 

therefore i think if this is caused by the os level and anyone encounter such problem? and thanks if any suggestion available.

 

Problem steps:

1. install launcher, and run the launcher in the foreground

2: update the launcher with command 'adb install -r xxx.apk'

3. the os will fore close the launcher and relaunch the new xxx launcher but with below 2 error message.

 

Problem description: app failed to get the package info with error below

*Error message 1

android.content.pm.PackageManager$NameNotFoundException

 

*Error message 2

02-17 20:11:36.090: E/AndroidRuntime(28444): java.lang.RuntimeException: Unable to instantiate application org.adwfreak.launcher.EXApplication: java.lang.ClassNotFoundException: Didn't find class "org.adwfreak.launcher.EXApplication" on path: /data/app/org.adwfreak.launcher-1.apk

02-17 20:11:36.090: E/AndroidRuntime(28444):     at android.app.LoadedApk.makeApplication(LoadedApk.java:503)

02-17 20:11:36.090: E/AndroidRuntime(28444):     at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4319)

02-17 20:11:36.090: E/AndroidRuntime(28444):     at android.app.ActivityThread.access$1300(ActivityThread.java:139)

02-17 20:11:36.090: E/AndroidRuntime(28444):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1291)

02-17 20:11:36.090: E/AndroidRuntime(28444):     at android.os.Handler.dispatchMessage(Handler.java:99)

02-17 20:11:36.090: E/AndroidRuntime(28444):     at android.os.Looper.loop(Looper.java:137)

02-17 20:11:36.090: E/AndroidRuntime(28444):     at android.app.ActivityThread.main(ActivityThread.java:5021)

02-17 20:11:36.090: E/AndroidRuntime(28444):     at java.lang.reflect.Method.invokeNative(Native Method)

02-17 20:11:36.090: E/AndroidRuntime(28444):     at java.lang.reflect.Method.invoke(Method.java:511)

02-17 20:11:36.090: E/AndroidRuntime(28444):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)

02-17 20:11:36.090: E/AndroidRuntime(28444):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:556)

02-17 20:11:36.090: E/AndroidRuntime(28444):     at dalvik.system.NativeStart.main(Native Method)

02-17 20:11:36.090: E/AndroidRuntime(28444): Caused by: java.lang.ClassNotFoundException: Didn't find class "org.adwfreak.launcher.EXApplication" on path: /data/app/org.adwfreak.launcher-1.apk

02-17 20:11:36.090: E/AndroidRuntime(28444):     at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)

02-17 20:11:36.090: E/AndroidRuntime(28444):     at java.lang.ClassLoader.loadClass(ClassLoader.java:501)

02-17 20:11:36.090: E/AndroidRuntime(28444):     at java.lang.ClassLoader.loadClass(ClassLoader.java:461)

02-17 20:11:36.090: E/AndroidRuntime(28444):     at android.app.Instrumentation.newApplication(Instrumentation.java:967)

02-17 20:11:36.090: E/AndroidRuntime(28444):     at android.app.LoadedApk.makeApplication(LoadedApk.java:498)

02-17 20:11:36.090: E/AndroidRuntime(28444):     ... 11 more