Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fatal exception: unable to instantiate activity ComponentInfo #55

Open
numitec opened this issue Oct 29, 2020 · 2 comments
Open

Fatal exception: unable to instantiate activity ComponentInfo #55

numitec opened this issue Oct 29, 2020 · 2 comments

Comments

@numitec
Copy link

numitec commented Oct 29, 2020

Hello there,

newer user: I download it and try to run it on Android Studio 3.5.3 on device Nexus 5X API 27; debugging session throws:

E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.aykuttasil.callrecorder, PID: 4061
java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.aykuttasil.callrecorder/com.aykuttasil.callrecorder.MainActivity}: java.lang.ClassNotFoundException: Didn't find class "com.aykuttasil.callrecorder.MainActivity" on path: DexPathList[[zip file "/data/app/com.aykuttasil.callrecorder-w8x8a4wYMlwMLz0aRYjCOA==/base.apk"],nativeLibraryDirectories=[/data/app/com.aykuttasil.callrecorder-w8x8a4wYMlwMLz0aRYjCOA==/lib/x86, /system/lib, /vendor/lib]]
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2679)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2856)
at android.app.ActivityThread.-wrap11(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1589)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6494)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.aykuttasil.callrecorder.MainActivity" on path: DexPathList[[zip file "/data/app/com.aykuttasil.callrecorder-w8x8a4wYMlwMLz0aRYjCOA==/base.apk"],nativeLibraryDirectories=[/data/app/com.aykuttasil.callrecorder-w8x8a4wYMlwMLz0aRYjCOA==/lib/x86, /system/lib, /vendor/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:125)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at android.app.Instrumentation.newActivity(Instrumentation.java:1174)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2669)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2856) 
at android.app.ActivityThread.-wrap11(Unknown Source:0) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1589) 
at android.os.Handler.dispatchMessage(Handler.java:106) 
at android.os.Looper.loop(Looper.java:164) 
at android.app.ActivityThread.main(ActivityThread.java:6494) 
at java.lang.reflect.Method.invoke(Native Method) 
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807) 
Disconnected from the target VM, address: 'localhost:8600', transport: 'socket'

Kindly where I can start to find a workaround?

Thank you,

S.

@satti8893
Copy link

apply plugin: 'kotlin-android'

Add above line in build.gradle

@josephantonyk94
Copy link

it may happen if the import of package name in main activity is misplaced

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants