Error only in exported APK: Unable to instantiate activity ComponentInfo

Sam

When I run my app directly from Android Developer Tools (ADT), it works fine. However, when I export it to an APK file and install it, I get the following error:

java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{my.app/my.app.MainActivity}: java.lang.ClassNotFoundException: Didn't find class "my.app.MainActivity" on path: DexPathList[[zip file "/data/app/my.app-2.apk"],nativeLibraryDirectories=[/data/app-lib/my.app-2, /vendor/lib, /system/lib]] at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2187) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2311) at android.app.ActivityThread.access$600(ActivityThread.java:149) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1293) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:5214) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:525) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:739) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:555) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.ClassNotFoundException: Didn't find class "my.app.MainActivity" on path: DexPathList[[zip file "/data/app/my.app-2.apk"],nativeLibraryDirectories=[/data/app-lib/my.app-2, /vendor/lib, /system/lib]] at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:53) at java.lang.ClassLoader.loadClass(ClassLoader.java:501) at java.lang.ClassLoader.loadClass(ClassLoader.java:461) at android.app.Instrumentation.newActivity(Instrumentation.java:1061) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2178) ... 11 more

Sam

The problem seemed to be a bug in ADT. Manually doing a clean via Project -> Clean and then re-exporting the APK fixed the problem.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Unable to instantiate activity ComponentInfo Android Studio Error

From Dev

Unable to instantiate activity componentinfo RunTimeException

From Dev

Unable to Instantiate activity ComponentInfo - Android

From Dev

Android Unable to Instantiate Activity ComponentInfo

From Dev

Error with manifest in android (ERROR: Unable to instantiate activity ComponentInfo )

From Dev

Android "extends ListActivity" error, unable to instantiate activity componentinfo

From Dev

Android "extends ListActivity" error, unable to instantiate activity componentinfo

From Dev

Scala for Android Application : unable to instantiate activity componentinfo

From Dev

RunTime.Exception Unable to instantiate activity ComponentInfo

From Dev

RuntimeException: Unable to instantiate activity componentinfo Android

From Dev

Unable to instantiate activity ComponentInfo, issue with manifest

From Dev

Unable to start activity ComponentInfo, error only from android N

From Dev

Unable to instantiate activity Error

From Dev

android application crashing with error java.lang.RuntimeException: Unable to instantiate activity ComponentInfo

From Dev

Force close by error java.lang.RuntimeException: Unable to instantiate activity ComponentInfo

From Dev

Second Activity - Android application. Unable to instantiate activity ComponentInfo

From Dev

Unable to instantiate activity ComponentInfo .. java.lang.NullPointerException

From Dev

java.lang.RuntimeException: Unable to Instantiate activity ComponentInfo

From Dev

Android Widget: Unable to instantiate activity ComponentInfo, java.lang.ClassCastException

From Dev

java.lang.RuntimeException: Unable to instantiate activity ComponentInfo - Android

From Dev

java.lang.RuntimeException: Unable to instantiate activity ComponentInfo for Kotlin MainActivity

From Dev

Unable to instantiate activity ComponentInfo. Didn't find class

From Dev

Getting error: Unable to Instantiate Activity

From Dev

Unable to Instantiate Activity Component Info error

From Dev

Android java.lang.RuntimeException: Unable to instantiate activity ComponentInfo ... java.lang.NullPointerException

From Dev

java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{…}: java.lang.ClassNotFoundException: Didn't find class

From Dev

java.lang.RuntimeException: Unable to instantiate activity ComponentInfo: java.lang.NullPointerException

From Dev

java.lang.RuntimeException: Unable to instantiate activity ComponentInfo / is not accessible from class

From Dev

google play services Unable to instantiate activity ComponentInfo java.lang.ClassNotFoundException

Related Related

  1. 1

    Unable to instantiate activity ComponentInfo Android Studio Error

  2. 2

    Unable to instantiate activity componentinfo RunTimeException

  3. 3

    Unable to Instantiate activity ComponentInfo - Android

  4. 4

    Android Unable to Instantiate Activity ComponentInfo

  5. 5

    Error with manifest in android (ERROR: Unable to instantiate activity ComponentInfo )

  6. 6

    Android "extends ListActivity" error, unable to instantiate activity componentinfo

  7. 7

    Android "extends ListActivity" error, unable to instantiate activity componentinfo

  8. 8

    Scala for Android Application : unable to instantiate activity componentinfo

  9. 9

    RunTime.Exception Unable to instantiate activity ComponentInfo

  10. 10

    RuntimeException: Unable to instantiate activity componentinfo Android

  11. 11

    Unable to instantiate activity ComponentInfo, issue with manifest

  12. 12

    Unable to start activity ComponentInfo, error only from android N

  13. 13

    Unable to instantiate activity Error

  14. 14

    android application crashing with error java.lang.RuntimeException: Unable to instantiate activity ComponentInfo

  15. 15

    Force close by error java.lang.RuntimeException: Unable to instantiate activity ComponentInfo

  16. 16

    Second Activity - Android application. Unable to instantiate activity ComponentInfo

  17. 17

    Unable to instantiate activity ComponentInfo .. java.lang.NullPointerException

  18. 18

    java.lang.RuntimeException: Unable to Instantiate activity ComponentInfo

  19. 19

    Android Widget: Unable to instantiate activity ComponentInfo, java.lang.ClassCastException

  20. 20

    java.lang.RuntimeException: Unable to instantiate activity ComponentInfo - Android

  21. 21

    java.lang.RuntimeException: Unable to instantiate activity ComponentInfo for Kotlin MainActivity

  22. 22

    Unable to instantiate activity ComponentInfo. Didn't find class

  23. 23

    Getting error: Unable to Instantiate Activity

  24. 24

    Unable to Instantiate Activity Component Info error

  25. 25

    Android java.lang.RuntimeException: Unable to instantiate activity ComponentInfo ... java.lang.NullPointerException

  26. 26

    java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{…}: java.lang.ClassNotFoundException: Didn't find class

  27. 27

    java.lang.RuntimeException: Unable to instantiate activity ComponentInfo: java.lang.NullPointerException

  28. 28

    java.lang.RuntimeException: Unable to instantiate activity ComponentInfo / is not accessible from class

  29. 29

    google play services Unable to instantiate activity ComponentInfo java.lang.ClassNotFoundException

HotTag

Archive