Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

App not starting found this error from Logcat, i just used @InstallIn(SingletonComponent.class) instead of @InstallIn(ApplicationComponent.class) #5

Open
hpl-sd-anik opened this issue Sep 4, 2023 · 0 comments

Comments

@hpl-sd-anik
Copy link

FATAL EXCEPTION: main
Process: com.example.myapplication, PID: 22391
java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.myapplication/com.example.myapplication.ui.MainActivity}: java.lang.ClassNotFoundException: Didn't find class "com.example.myapplication.ui.MainActivity" on path: DexPathList[[dex file "/data/data/com.example.myapplication/code_cache/.overlay/base.apk/classes5.dex", zip file "/data/app/~~6LvDnWUAoky9OpaDu_CvZQ==/com.example.myapplication-bdSbp4KWsDYRgk1qoko7qw==/base.apk"],nativeLibraryDirectories=[/data/app/~~6LvDnWUAoky9OpaDu_CvZQ==/com.example.myapplication-bdSbp4KWsDYRgk1qoko7qw==/lib/arm64, /system/lib64, /system/system_ext/lib64]]
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4051)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4325)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:101)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2574)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:226)
at android.os.Looper.loop(Looper.java:313)
at android.app.ActivityThread.main(ActivityThread.java:8757)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.example.myapplication.ui.MainActivity" on path: DexPathList[[dex file "/data/data/com.example.myapplication/code_cache/.overlay/base.apk/classes5.dex", zip file "/data/app/~~6LvDnWUAoky9OpaDu_CvZQ==/com.example.myapplication-bdSbp4KWsDYRgk1qoko7qw==/base.apk"],nativeLibraryDirectories=[/data/app/~~6LvDnWUAoky9OpaDu_CvZQ==/com.example.myapplication-bdSbp4KWsDYRgk1qoko7qw==/lib/arm64, /system/lib64, /system/system_ext/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:259)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at android.app.AppComponentFactory.instantiateActivity(AppComponentFactory.java:95)
at androidx.core.app.CoreComponentFactory.instantiateActivity(CoreComponentFactory.java:45)
at android.app.Instrumentation.newActivity(Instrumentation.java:1328)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4038)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4325) 
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:101) 
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135) 
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2574) 
at android.os.Handler.dispatchMessage(Handler.java:106) 
at android.os.Looper.loopOnce(Looper.java:226) 
at android.os.Looper.loop(Looper.java:313) 
at android.app.ActivityThread.main(ActivityThread.java:8757) 
at java.lang.reflect.Method.invoke(Native Method) 
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067) 
Suppressed: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/example/myapplication/ui/Hilt_MainActivity;
at java.lang.VMClassLoader.findLoadedClass(Native Method)
at java.lang.ClassLoader.findLoadedClass(ClassLoader.java:738)
at java.lang.ClassLoader.loadClass(ClassLoader.java:363)
... 17 more
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.example.myapplication.ui.Hilt_MainActivity" on path: DexPathList[[dex file "/data/data/com.example.myapplication/code_cache/.overlay/base.apk/classes5.dex", zip file "/data/app/~~6LvDnWUAoky9OpaDu_CvZQ==/com.example.myapplication-bdSbp4KWsDYRgk1qoko7qw==/base.apk"],nativeLibraryDirectories=[/data/app/~~6LvDnWUAoky9OpaDu_CvZQ==/com.example.myapplication-bdSbp4KWsDYRgk1qoko7qw==/lib/arm64, /system/lib64, /system/system_ext/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:259)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
... 20 more
Suppressed: [CIRCULAR REFERENCE: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/example/myapplication/ui/Hilt_MainActivity;]

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

No branches or pull requests

1 participant