Didn't find AppCompatActivity on path [duplicate] - android

This question already has answers here:
java.lang.ClassNotFoundException: Didn't find class on path: dexpathlist
(42 answers)
Closed 5 years ago.
I am new to AndroidStudio learning how to code via the Udacity program, "Android Basics". I am currently on Lesson 3.13 "Running Hello World App on Your Phone". I have followed the instructions step by step and have tried to launch the app on my phone (OnePlus5). However, as soon as I press the play button, the message "MyApp has stopped". It gives me the option to re-open the app but the message "Happy Birthday keeps stopping" appears.
02-10 12:45:08.376 7992-7992/com.example.android.happybirthday E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.android.happybirthday, PID: 7992
java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.android.happybirthday/com.example.android.happybirthday.MainActivity}: java.lang.ClassNotFoundException: Didn't find class "com.example.android.happybirthday.MainActivity" on path: DexPathList[[zip file "/data/app/com.example.android.happybirthday-KxEHHSDZIiC4FI1vJwwPDw==/base.apk", zip file "/data/app/com.example.android.happybirthday-KxEHHSDZIiC4FI1vJwwPDw==/split_lib_slice_0_apk.apk", zip file "/data/app/com.example.android.happybirthday-KxEHHSDZIiC4FI1vJwwPDw==/split_lib_slice_1_apk.apk", zip file "/data/app/com.example.android.happybirthday-KxEHHSDZIiC4FI1vJwwPDw==/split_lib_slice_2_apk.apk", zip file "/data/app/com.example.android.happybirthday-KxEHHSDZIiC4FI1vJwwPDw==/split_lib_slice_3_apk.apk", zip file "/data/app/com.example.android.happybirthday-KxEHHSDZIiC4FI1vJwwPDw==/split_lib_slice_4_apk.apk", zip file "/data/app/com.example.android.happybirthday-KxEHHSDZIiC4FI1vJwwPDw==/split_lib_slice_5_apk.apk", zip file "/data/app/com.example.android.happybirthday-KxEHHSDZIiC4FI1vJwwPDw==/split_lib_slice_6_apk.apk", zip file "/data/app/com.example.android.happybirthday-KxEHHSDZIiC4FI1vJwwPDw==/split_lib_slice_7_apk.apk", zip file "/data/app/com.example.android.happybirthday-KxEHHSDZIiC4FI1vJwwPDw==/split_lib_slice_8_apk.apk", zip file "/data/app/com.example.android.happybirthday-KxEHHSDZIiC4FI1vJwwPDw==/split_lib_slice_9_apk.apk"],nativeLibraryDirectories=[/data/app/com.example.android.happybirthday-KxEHHSDZIiC4FI1vJwwPDw==/lib/arm64, /system/lib64, /system/vendor/lib64]]
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2847)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3046)
at android.app.ActivityThread.-wrap11(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1688)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6809)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.example.android.happybirthday.MainActivity" on path: DexPathList[[zip file "/data/app/com.example.android.happybirthday-KxEHHSDZIiC4FI1vJwwPDw==/base.apk", zip file "/data/app/com.example.android.happybirthday-KxEHHSDZIiC4FI1vJwwPDw==/split_lib_slice_0_apk.apk", zip file "/data/app/com.example.android.happybirthday-KxEHHSDZIiC4FI1vJwwPDw==/split_lib_slice_1_apk.apk", zip file "/data/app/com.example.android.happybirthday-KxEHHSDZIiC4FI1vJwwPDw==/split_lib_slice_2_apk.apk", zip file "/data/app/com.example.android.happybirthday-KxEHHSDZIiC4FI1vJwwPDw==/split_lib_slice_3_apk.apk", zip file "/data/app/com.example.android.happybirthday-KxEHHSDZIiC4FI1vJwwPDw==/split_lib_slice_4_apk.apk", zip file "/data/app/com.example.android.happybirthday-KxEHHSDZIiC4FI1vJwwPDw==/split_lib_slice_5_apk.apk", zip file "/data/app/com.example.android.happybirthday-KxEHHSDZIiC4FI1vJwwPDw==/split_lib_slice_6_apk.apk", zip file "/data/app/com.example.android.happybirthday-KxEHHSDZIiC4FI1vJwwPDw==/split_lib_slice_7_apk.apk", zip file "/data/app/com.example.android.happybirthday-KxEHHSDZIiC4FI1vJwwPDw==/split_lib_slice_8_apk.apk", zip file "/data/app/com.example.android.happybirthday-KxEHHSDZIiC4FI1vJwwPDw==/split_lib_slice_9_apk.apk"],nativeLibraryDirectories=[/data/app/com.example.android.happybirthday-KxEHHSDZIiC4FI1vJwwPDw==/lib/arm64, /system/lib64, /system/vendor/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:93)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at android.app.Instrumentation.newActivity(Instrumentation.java:1190)
02-10 12:45:08.377 7992-7992/com.example.android.happybirthday E/AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2837)
... 9 more
Suppressed: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v7/app/AppCompatActivity;
at java.lang.VMClassLoader.findLoadedClass(Native Method)
at java.lang.ClassLoader.findLoadedClass(ClassLoader.java:738)
at java.lang.ClassLoader.loadClass(ClassLoader.java:363)
... 12 more
Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v7.app.AppCompatActivity" on path: DexPathList[[zip file "/data/app/com.example.android.happybirthday-KxEHHSDZIiC4FI1vJwwPDw==/base.apk", zip file "/data/app/com.example.android.happybirthday-KxEHHSDZIiC4FI1vJwwPDw==/split_lib_slice_0_apk.apk", zip file "/data/app/com.example.android.happybirthday-KxEHHSDZIiC4FI1vJwwPDw==/split_lib_slice_1_apk.apk", zip file "/data/app/com.example.android.happybirthday-KxEHHSDZIiC4FI1vJwwPDw==/split_lib_slice_2_apk.apk", zip file "/data/app/com.example.android.happybirthday-KxEHHSDZIiC4FI1vJwwPDw==/split_lib_slice_3_apk.apk", zip file "/data/app/com.example.android.happybirthday-KxEHHSDZIiC4FI1vJwwPDw==/split_lib_slice_4_apk.apk", zip file "/data/app/com.example.android.happybirthday-KxEHHSDZIiC4FI1vJwwPDw==/split_lib_slice_5_apk.apk", zip file "/data/app/com.example.android.happybirthday-KxEHHSDZIiC4FI1vJwwPDw==/split_lib_slice_6_apk.apk", zip file "/data/app/com.example.android.happybirthday-KxEHHSDZIiC4FI1vJwwPDw==/split_lib_slice_7_apk.apk", zip file "/data/app/com.example.android.happybirthday-KxEHHSDZIiC4FI1vJwwPDw==/split_lib_slice_8_apk.apk", zip file "/data/app/com.example.android.happybirthday-KxEHHSDZIiC4FI1vJwwPDw==/split_lib_slice_9_apk.apk"],nativeLibraryDirectories=[/data/app/com.example.android.happybirthday-KxEHHSDZIiC4FI1vJwwPDw==/lib/arm64, /system/lib64, /system/vendor/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:93)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
... 15 more
02-10 12:45:08.378 7992-7992/com.example.android.happybirthday E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.android.happybirthday, PID: 7992
java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.android.happybirthday/com.example.android.happybirthday.MainActivity}: java.lang.ClassNotFoundException: Didn't find class "com.example.android.happybirthday.MainActivity" on path: DexPathList[[zip file "/data/app/com.example.android.happybirthday-KxEHHSDZIiC4FI1vJwwPDw==/base.apk", zip file "/data/app/com.example.android.happybirthday-KxEHHSDZIiC4FI1vJwwPDw==/split_lib_slice_0_apk.apk", zip file "/data/app/com.example.android.happybirthday-KxEHHSDZIiC4FI1vJwwPDw==/split_lib_slice_1_apk.apk", zip file "/data/app/com.example.android.happybirthday-KxEHHSDZIiC4FI1vJwwPDw==/split_lib_slice_2_apk.apk", zip file "/data/app/com.example.android.happybirthday-KxEHHSDZIiC4FI1vJwwPDw==/split_lib_slice_3_apk.apk", zip file "/data/app/com.example.android.happybirthday-KxEHHSDZIiC4FI1vJwwPDw==/split_lib_slice_4_apk.apk", zip file "/data/app/com.example.android.happybirthday-KxEHHSDZIiC4FI1vJwwPDw==/split_lib_slice_5_apk.apk", zip file "/data/app/com.example.android.happybirthday-KxEHHSDZIiC4FI1vJwwPDw==/split_lib_slice_6_apk.apk", zip file "/data/app/com.example.android.happybirthday-KxEHHSDZIiC4FI1vJwwPDw==/split_lib_slice_7_apk.apk", zip file "/data/app/com.example.android.happybirthday-KxEHHSDZIiC4FI1vJwwPDw==/split_lib_slice_8_apk.apk", zip file "/data/app/com.example.android.happybirthday-KxEHHSDZIiC4FI1vJwwPDw==/split_lib_slice_9_apk.apk"],nativeLibraryDirectories=[/data/app/com.example.android.happybirthday-KxEHHSDZIiC4FI1vJwwPDw==/lib/arm64, /system/lib64, /system/vendor/lib64]]
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2847)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3046)
at android.app.ActivityThread.-wrap11(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1688)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6809)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.example.android.happybirthday.MainActivity" on path: DexPathList[[zip file "/data/app/com.example.android.happybirthday-KxEHHSDZIiC4FI1vJwwPDw==/base.apk", zip file "/data/app/com.example.android.happybirthday-KxEHHSDZIiC4FI1vJwwPDw==/split_lib_slice_0_apk.apk", zip file "/data/app/com.example.android.happybirthday-KxEHHSDZIiC4FI1vJwwPDw==/split_lib_slice_1_apk.apk", zip file "/data/app/com.example.android.happybirthday-KxEHHSDZIiC4FI1vJwwPDw==/split_lib_slice_2_apk.apk", zip file "/data/app/com.example.android.happybirthday-KxEHHSDZIiC4FI1vJwwPDw==/split_lib_slice_3_apk.apk", zip file "/data/app/com.example.android.happybirthday-KxEHHSDZIiC4FI1vJwwPDw==/split_lib_slice_4_apk.apk", zip file "/data/app/com.example.android.happybirthday-KxEHHSDZIiC4FI1vJwwPDw==/split_lib_slice_5_apk.apk", zip file "/data/app/com.example.android.happybirthday-KxEHHSDZIiC4FI1vJwwPDw==/split_lib_slice_6_apk.apk", zip file "/data/app/com.example.android.happybirthday-KxEHHSDZIiC4FI1vJwwPDw==/split_lib_slice_7_apk.apk", zip file "/data/app/com.example.android.happybirthday-KxEHHSDZIiC4FI1vJwwPDw==/split_lib_slice_8_apk.apk", zip file "/data/app/com.example.android.happybirthday-KxEHHSDZIiC4FI1vJwwPDw==/split_lib_slice_9_apk.apk"],nativeLibraryDirectories=[/data/app/com.example.android.happybirthday-KxEHHSDZIiC4FI1vJwwPDw==/lib/arm64, /system/lib64, /system/vendor/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:93)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at android.app.Instrumentation.newActivity(Instrumentation.java:1190)
02-10 12:45:08.378 7992-7992/com.example.android.happybirthday E/AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2837)
... 9 more
Suppressed: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v7/app/AppCompatActivity;
at java.lang.VMClassLoader.findLoadedClass(Native Method)
at java.lang.ClassLoader.findLoadedClass(ClassLoader.java:738)
at java.lang.ClassLoader.loadClass(ClassLoader.java:363)
... 12 more
Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v7.app.AppCompatActivity" on path: DexPathList[[zip file "/data/app/com.example.android.happybirthday-KxEHHSDZIiC4FI1vJwwPDw==/base.apk", zip file "/data/app/com.example.android.happybirthday-KxEHHSDZIiC4FI1vJwwPDw==/split_lib_slice_0_apk.apk", zip file "/data/app/com.example.android.happybirthday-KxEHHSDZIiC4FI1vJwwPDw==/split_lib_slice_1_apk.apk", zip file "/data/app/com.example.android.happybirthday-KxEHHSDZIiC4FI1vJwwPDw==/split_lib_slice_2_apk.apk", zip file "/data/app/com.example.android.happybirthday-KxEHHSDZIiC4FI1vJwwPDw==/split_lib_slice_3_apk.apk", zip file "/data/app/com.example.android.happybirthday-KxEHHSDZIiC4FI1vJwwPDw==/split_lib_slice_4_apk.apk", zip file "/data/app/com.example.android.happybirthday-KxEHHSDZIiC4FI1vJwwPDw==/split_lib_slice_5_apk.apk", zip file "/data/app/com.example.android.happybirthday-KxEHHSDZIiC4FI1vJwwPDw==/split_lib_slice_6_apk.apk", zip file "/data/app/com.example.android.happybirthday-KxEHHSDZIiC4FI1vJwwPDw==/split_lib_slice_7_apk.apk", zip file "/data/app/com.example.android.happybirthday-KxEHHSDZIiC4FI1vJwwPDw==/split_lib_slice_8_apk.apk", zip file "/data/app/com.example.android.happybirthday-KxEHHSDZIiC4FI1vJwwPDw==/split_lib_slice_9_apk.apk"],nativeLibraryDirectories=[/data/app/com.example.android.happybirthday-KxEHHSDZIiC4FI1vJwwPDw==/lib/arm64, /system/lib64, /system/vendor/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:93)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
... 15 more
02-10 12:45:08.379 7992-7992/com.example.android.happybirthday D/AppTracker: App Event: crash

Check the spelling of the class to see it's correct, check if the Activity is the correct package and if the Activity is declared in the manifest.

Related

java.lang.ClassNotFoundException: Didn't find class "android.support.v4.app.CoreComponentFactory"

it's a release apk, and not always to carsh.
happens when i use the firebase to start app in Android P.
it's high rate when first to install the app.
here is the log:
2019-06-13 13:28:08.565 23255-23255/? E/LoadedApk: Unable to instantiate appComponentFactory
java.lang.ClassNotFoundException: Didn't find class "android.support.v4.app.CoreComponentFactory" on path: DexPathList[[zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/data/app/com.trackerandroid.trackerandroid-aZ7PnMXyzCxnkBL3b5t3Vg==/base.apk"],nativeLibraryDirectories=[/data/app/com.trackerandroid.trackerandroid-aZ7PnMXyzCxnkBL3b5t3Vg==/lib/arm, /data/app/com.trackerandroid.trackerandroid-aZ7PnMXyzCxnkBL3b5t3Vg==/base.apk!/lib/armeabi-v7a, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at android.app.LoadedApk.createAppFactory(LoadedApk.java:239)
at android.app.LoadedApk.createOrUpdateClassLoaderLocked(LoadedApk.java:768)
at android.app.LoadedApk.getClassLoader(LoadedApk.java:847)
at android.app.LoadedApk.getResources(LoadedApk.java:1088)
at android.app.ContextImpl.createAppContext(ContextImpl.java:2563)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6108)
at android.app.ActivityThread.access$1200(ActivityThread.java:237)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1792)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7058)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:965)
Check AndroidManifest file and check application section "android.support.v4.app.CoreComponentFactory", if it is written delete it.

Error inflating class androidx.constraintlayout.widget.CoordinatorLayout

I am having trouble inflating a coordinator layout. This is the most of the logcat(let me know if you need to see more)
2019-06-17 00:06:50.530 19494-19494/com.vitrixhealth.datacollection E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.vitrixhealth.datacollection, PID: 19494
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.vitrixhealth.datacollection/com.vitrixhealth.datacollection.ui.patients.PatientsActivity}: android.view.InflateException: Binary XML file line #2: Binary XML file line #2: Error inflating class androidx.constraintlayout.widget.CoordinatorLayout
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2884)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2963)
at android.app.ActivityThread.-wrap11(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1655)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6665)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:772)
Caused by: android.view.InflateException: Binary XML file line #2: Binary XML file line #2: Error inflating class androidx.constraintlayout.widget.CoordinatorLayout
Caused by: android.view.InflateException: Binary XML file line #2: Error inflating class androidx.constraintlayout.widget.CoordinatorLayout
Caused by: java.lang.ClassNotFoundException: Didn't find class "androidx.constraintlayout.widget.CoordinatorLayout" on path: DexPathList[[zip file "/data/app/com.vitrixhealth.datacollection-U3yD_XQl1CDFy1VwoToeOQ==/base.apk", zip file "/data/app/com.vitrixhealth.datacollection-U3yD_XQl1CDFy1VwoToeOQ==/split_lib_dependencies_apk.apk", zip file "/data/app/com.vitrixhealth.datacollection-U3yD_XQl1CDFy1VwoToeOQ==/split_lib_resources_apk.apk", zip file "/data/app/com.vitrixhealth.datacollection-U3yD_XQl1CDFy1VwoToeOQ==/split_lib_slice_0_apk.apk", zip file "/data/app/com.vitrixhealth.datacollection-U3yD_XQl1CDFy1VwoToeOQ==/split_lib_slice_1_apk.apk", zip file "/data/app/com.vitrixhealth.datacollection-U3yD_XQl1CDFy1VwoToeOQ==/split_lib_slice_2_apk.apk", zip file "/data/app/com.vitrixhealth.datacollection-U3yD_XQl1CDFy1VwoToeOQ==/split_lib_slice_3_apk.apk", zip file "/data/app/com.vitrixhealth.datacollection-U3yD_XQl1CDFy1VwoToeOQ==/split_lib_slice_4_apk.apk", zip file "/data/app/com.vitrixhealth.datacollection-U3yD_XQl1CDFy1VwoToeOQ==/split_lib_slice_5_apk.apk", zip file "/data/app/com.vitrixhealth.datacollection-U3yD_XQl1CDFy1VwoToeOQ==/split_lib_slice_6_apk.apk", zip file "/data/app/com.vitrixhealth.datacollection-U3yD_XQl1CDFy1VwoToeOQ==/split_lib_slice_7_apk.apk", zip file "/data/app/com.vitrixhealth.datacollection-U3yD_XQl1CDFy1VwoToeOQ==/split_lib_slice_8_apk.apk", zip file "/data/app/com.vitrixhealth.datacollection-U3yD_XQl1CDFy1VwoToeOQ==/split_lib_slice_9_apk.apk"],nativeLibraryDirectories=[/data/app/com.vitrixhealth.datacollection-U3yD_XQl1CDFy1VwoToeOQ==/lib/arm64, /system/lib64, /system/vendor/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:93)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at android.view.LayoutInflater.createView(LayoutInflater.java:606)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:790)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:730)
at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
at com.vitrixhealth.datacollection.ui.patients.patientslist.PatientsListFragment.onCreateView(PatientsListFragment.kt:43)
at androidx.fragment.app.Fragment.performCreateView(Fragment.java:2595)
at androidx.fragment.app.FragmentManagerImpl.moveToState(FragmentManagerImpl.java:880)
at androidx.fragment.app.FragmentManagerImpl.addAddedFragments(FragmentManagerImpl.java:2096)
at androidx.fragment.app.FragmentManagerImpl.executeOpsTogether(FragmentManagerImpl.java:1870)
I have this in my build.gradle file:
implementation 'com.google.android.material:material:1.0.0'
Is there anything else I need to add to my build.gradle to be able to use the coordinator layout?
add this to your dependencies:
implementation 'androidx.coordinatorlayout:coordinatorlayout:1.0.0'

Activity in dynamic feature not found(ClassNotFound)

done:
generate a release a.abb
use bundletool to convert a.abb to a.apks.
deploy it to device.
problem:
the activity in dynamic feature no found.(but in debug, it's ok)
2019-02-25 20:48:58.429 11164-11164/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.demo.yang.myapplication, PID: 11164
java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.demo.yang.myapplication/com.demo.yang.feature.TestActivity}: java.lang.ClassNotFoundException: Didn't find class "com.demo.yang.feature.TestActivity" on path: DexPathList[[zip file "/data/app/com.demo.yang.myapplication-mTCYObuADWrZE6proGE_tA==/base.apk", zip file "/data/app/com.demo.yang.myapplication-mTCYObuADWrZE6proGE_tA==/split_config.en.apk", zip file "/data/app/com.demo.yang.myapplication-mTCYObuADWrZE6proGE_tA==/split_config.es.apk", zip file "/data/app/com.demo.yang.myapplication-mTCYObuADWrZE6proGE_tA==/split_config.ja.apk", zip file "/data/app/com.demo.yang.myapplication-mTCYObuADWrZE6proGE_tA==/split_config.ko.apk", zip file "/data/app/com.demo.yang.myapplication-mTCYObuADWrZE6proGE_tA==/split_config.pt.apk", zip file "/data/app/com.demo.yang.myapplication-mTCYObuADWrZE6proGE_tA==/split_config.ru.apk", zip file "/data/app/com.demo.yang.myapplication-mTCYObuADWrZE6proGE_tA==/split_config.vi.apk", zip file "/data/app/com.demo.yang.myapplication-mTCYObuADWrZE6proGE_tA==/split_config.xxhdpi.apk", zip file "/data/app/com.demo.yang.myapplication-mTCYObuADWrZE6proGE_tA==/split_config.zh.apk"],nativeLibraryDirectories=[/data/app/com.demo.yang.myapplication-mTCYObuADWrZE6proGE_tA==/lib/arm64, /system/lib64, /vendor/lib64]]
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2839)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3030)
at android.app.ActivityThread.-wrap11(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1696)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6938)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.demo.yang.feature.TestActivity" on path: DexPathList[[zip file "/data/app/com.demo.yang.myapplication-mTCYObuADWrZE6proGE_tA==/base.apk", zip file "/data/app/com.demo.yang.myapplication-mTCYObuADWrZE6proGE_tA==/split_config.en.apk", zip file "/data/app/com.demo.yang.myapplication-mTCYObuADWrZE6proGE_tA==/split_config.es.apk", zip file "/data/app/com.demo.yang.myapplication-mTCYObuADWrZE6proGE_tA==/split_config.ja.apk", zip file "/data/app/com.demo.yang.myapplication-mTCYObuADWrZE6proGE_tA==/split_config.ko.apk", zip file "/data/app/com.demo.yang.myapplication-mTCYObuADWrZE6proGE_tA==/split_config.pt.apk", zip file "/data/app/com.demo.yang.myapplication-mTCYObuADWrZE6proGE_tA==/split_config.ru.apk", zip file "/data/app/com.demo.yang.myapplication-mTCYObuADWrZE6proGE_tA==/split_config.vi.apk", zip file "/data/app/com.demo.yang.myapplication-mTCYObuADWrZE6proGE_tA==/split_config.xxhdpi.apk", zip file "/data/app/com.demo.yang.myapplication-mTCYObuADWrZE6proGE_tA==/split_config.zh.apk"],nativeLibraryDirectories=[/data/app/com.demo.yang.myapplication-mTCYObuADWrZE6proGE_tA==/lib/arm64, /system/lib64, /vendor/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:93)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at android.app.Instrumentation.newActivity(Instrumentation.java:1180)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2829)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3030) 
at android.app.ActivityThread.-wrap11(Unknown Source:0) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1696) 
at android.os.Handler.dispatchMessage(Handler.java:105) 
at android.os.Looper.loop(Looper.java:164) 
at android.app.ActivityThread.main(ActivityThread.java:6938) 
at java.lang.reflect.Method.invoke(Native Method) 
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374) 
Suppressed: java.io.IOException: No original dex files found for dex location (arm64) /data/app/com.demo.yang.myapplication-mTCYObuADWrZE6proGE_tA==/split_config.en.apk
at dalvik.system.DexFile.openDexFileNative(Native Method)
at dalvik.system.DexFile.openDexFile(DexFile.java:353)
at dalvik.system.DexFile.<init>(DexFile.java:100)
at dalvik.system.DexFile.<init>(DexFile.java:74)
The fact that the class is found in debug but not in release suggests that it's possibly an issue with your proguard configuration (since Proguard is usually applied only on release builds).
Make sure you have
-keep public class * extends android.app.Activity
in your proguard file to ensure that the Activities are not obfuscated.
Please add this to your build.gradle at dynamic feature you create.
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
What worked for me was: remove all the tags <application> from the dynamic features' AndroidManifest and reunite all the Activities declarations on the application's AndroidManifest.
And before that I follow these migrations steps
I faced and fixed this issue. This problem arises, when you are not setting multiDexEnabled option correctly in your base build.gradle (app level) & the project itself.
defaultConfig {
...
multiDexEnabled true
}
And in dependencies
dependencies{
....
implementation "androidx.multidex:multidex:$multidex_version"
}
And you can extend your application class from MultiDexApplication
class YOUR_APPLICATION_CLASS : MultiDexApplication() {
// Rest of your code
}
In base app Manifest mention above application class like:
<application
android:name=".YOUR_APPLICATION_CLASS"
...
</application>
I paste less code for brevity.

java.lang.RuntimeException: Unable to instantiate activity ... bad method handle type 7

I recently installed another ROM on my Android Device (Mi Mix 2 - now 8.0 was 9.0) which is an older Android Version than the other one was. To make my project work I had to change the minSdkVersion to 26 (was 27). I tried to run the app on my phone but I am getting an exception which I do not quite understand. I didn´t change anything besides the minSdkVersion.
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.tobia.core, PID: 2776
java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.tobia.core/com.example.tobia.core.LoginActivity}: java.lang.ClassNotFoundException: Didn't find class "com.example.tobia.core.LoginActivity" on path: DexPathList[[zip file "/data/app/com.example.tobia.core-lr4S82vYgys_Rc2X2Bt6vw==/base.apk", zip file "/data/app/com.example.tobia.core-lr4S82vYgys_Rc2X2Bt6vw==/split_lib_dependencies_apk.apk", zip file "/data/app/com.example.tobia.core-lr4S82vYgys_Rc2X2Bt6vw==/split_lib_resources_apk.apk", zip file "/data/app/com.example.tobia.core-lr4S82vYgys_Rc2X2Bt6vw==/split_lib_slice_0_apk.apk", zip file "/data/app/com.example.tobia.core-lr4S82vYgys_Rc2X2Bt6vw==/split_lib_slice_1_apk.apk", zip file "/data/app/com.example.tobia.core-lr4S82vYgys_Rc2X2Bt6vw==/split_lib_slice_2_apk.apk", zip file "/data/app/com.example.tobia.core-lr4S82vYgys_Rc2X2Bt6vw==/split_lib_slice_3_apk.apk", zip file "/data/app/com.example.tobia.core-lr4S82vYgys_Rc2X2Bt6vw==/split_lib_slice_4_apk.apk", zip file "/data/app/com.example.tobia.core-lr4S82vYgys_Rc2X2Bt6vw==/split_lib_slice_5_apk.apk", zip file "/data/app/com.example.tobia.core-lr4S82vYgys_Rc2X2Bt6vw==/split_lib_slice_6_apk.apk", zip file "/data/app/com.example.tobia.core-lr4S82vYgys_Rc2X2Bt6vw==/split_lib_slice_7_apk.apk", zip file "/data/app/com.example.tobia.core-lr4S82vYgys_Rc2X2Bt6vw==/split_lib_slice_8_apk.apk", zip file "/data/app/com.example.tobia.core-lr4S82vYgys_Rc2X2Bt6vw==/split_lib_slice_9_apk.apk"],nativeLibraryDirectories=[/data/app/com.example.tobia.core-lr4S82vYgys_Rc2X2Bt6vw==/lib/arm64, /system/lib64, /system/vendor/lib64]]
at android.app.ActivityThread.performLaunchActivity(Unknown Source:454)
at android.app.ActivityThread.handleLaunchActivity(Unknown Source:30)
at android.app.ActivityThread.-wrap11(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(Unknown Source:80)
at android.os.Handler.dispatchMessage(Unknown Source:21)
at android.os.Looper.loop(Unknown Source:155)
at android.app.ActivityThread.main(Unknown Source:68)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Unknown Source:11)
at com.android.internal.os.ZygoteInit.main(Unknown Source:200)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.example.tobia.core.LoginActivity" on path: DexPathList[[zip file "/data/app/com.example.tobia.core-lr4S82vYgys_Rc2X2Bt6vw==/base.apk", zip file "/data/app/com.example.tobia.core-lr4S82vYgys_Rc2X2Bt6vw==/split_lib_dependencies_apk.apk", zip file "/data/app/com.example.tobia.core-lr4S82vYgys_Rc2X2Bt6vw==/split_lib_resources_apk.apk", zip file "/data/app/com.example.tobia.core-lr4S82vYgys_Rc2X2Bt6vw==/split_lib_slice_0_apk.apk", zip file "/data/app/com.example.tobia.core-lr4S82vYgys_Rc2X2Bt6vw==/split_lib_slice_1_apk.apk", zip file "/data/app/com.example.tobia.core-lr4S82vYgys_Rc2X2Bt6vw==/split_lib_slice_2_apk.apk", zip file "/data/app/com.example.tobia.core-lr4S82vYgys_Rc2X2Bt6vw==/split_lib_slice_3_apk.apk", zip file "/data/app/com.example.tobia.core-lr4S82vYgys_Rc2X2Bt6vw==/split_lib_slice_4_apk.apk", zip file "/data/app/com.example.tobia.core-lr4S82vYgys_Rc2X2Bt6vw==/split_lib_slice_5_apk.apk", zip file "/data/app/com.example.tobia.core-lr4S82vYgys_Rc2X2Bt6vw==/split_lib_slice_6_apk.apk", zip file "/data/app/com.example.tobia.core-lr4S82vYgys_Rc2X2Bt6vw==/split_lib_slice_7_apk.apk", zip file "/data/app/com.example.tobia.core-lr4S82vYgys_Rc2X2Bt6vw==/split_lib_slice_8_apk.apk", zip file "/data/app/com.example.tobia.core-lr4S82vYgys_Rc2X2Bt6vw==/split_lib_slice_9_apk.apk"],nativeLibraryDirectories=[/data/app/com.example.tobia.core-lr4S82vYgys_Rc2X2Bt6vw==/lib/arm64, /system/lib64, /system/vendor/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:93)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
E/AndroidRuntime: at android.app.Instrumentation.newActivity(Unknown Source:0)
at android.app.ActivityThread.performLaunchActivity(Unknown Source:116)
... 9 more
Suppressed: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v7/app/AppCompatActivity;
at java.lang.VMClassLoader.findLoadedClass(Native Method)
at java.lang.ClassLoader.findLoadedClass(ClassLoader.java:738)
at java.lang.ClassLoader.loadClass(ClassLoader.java:363)
... 12 more
Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v7.app.AppCompatActivity" on path: DexPathList[[zip file "/data/app/com.example.tobia.core-lr4S82vYgys_Rc2X2Bt6vw==/base.apk", zip file "/data/app/com.example.tobia.core-lr4S82vYgys_Rc2X2Bt6vw==/split_lib_dependencies_apk.apk", zip file "/data/app/com.example.tobia.core-lr4S82vYgys_Rc2X2Bt6vw==/split_lib_resources_apk.apk", zip file "/data/app/com.example.tobia.core-lr4S82vYgys_Rc2X2Bt6vw==/split_lib_slice_0_apk.apk", zip file "/data/app/com.example.tobia.core-lr4S82vYgys_Rc2X2Bt6vw==/split_lib_slice_1_apk.apk", zip file "/data/app/com.example.tobia.core-lr4S82vYgys_Rc2X2Bt6vw==/split_lib_slice_2_apk.apk", zip file "/data/app/com.example.tobia.core-lr4S82vYgys_Rc2X2Bt6vw==/split_lib_slice_3_apk.apk", zip file "/data/app/com.example.tobia.core-lr4S82vYgys_Rc2X2Bt6vw==/split_lib_slice_4_apk.apk", zip file "/data/app/com.example.tobia.core-lr4S82vYgys_Rc2X2Bt6vw==/split_lib_slice_5_apk.apk", zip file "/data/app/com.example.tobia.core-lr4S82vYgys_Rc2X2Bt6vw==/split_lib_slice_6_apk.apk", zip file "/data/app/com.example.tobia.core-lr4S82vYgys_Rc2X2Bt6vw==/split_lib_slice_7_apk.apk", zip file "/data/app/com.example.tobia.core-lr4S82vYgys_Rc2X2Bt6vw==/split_lib_slice_8_apk.apk", zip file "/data/app/com.example.tobia.core-lr4S82vYgys_Rc2X2Bt6vw==/split_lib_slice_9_apk.apk"],nativeLibraryDirectories=[/data/app/com.example.tobia.core-lr4S82vYgys_Rc2X2Bt6vw==/lib/arm64, /system/lib64, /system/vendor/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:93)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
... 15 more
Suppressed: java.io.IOException: Failed to open dex files from /data/app/com.example.tobia.core-lr4S82vYgys_Rc2X2Bt6vw==/split_lib_dependencies_apk.apk because: Failure to verify dex file '/data/app/com.example.tobia.core-lr4S82vYgys_Rc2X2Bt6vw==/split_lib_dependencies_apk.apk': Bad method handle type 7
at dalvik.system.DexFile.openDexFileNative(Native Method)
at dalvik.system.DexFile.openDexFile(DexFile.java:353)
at dalvik.system.DexFile.<init>(DexFile.java:100)
at dalvik.system.DexFile.<init>(DexFile.java:74)
at dalvik.system.DexPathList.loadDexFile(DexPathList.java:374)
at dalvik.system.DexPathList.makeDexElements(DexPathList.java:337)
at dalvik.system.DexPathList.<init>(DexPathList.java:157)
at dalvik.system.BaseDexClassLoader.<init>(BaseDexClassLoader.java:65)
at dalvik.system.PathClassLoader.<init>(PathClassLoader.java:64)
at com.android.internal.os.PathClassLoaderFactory.createClassLoader(Unknown Source:4)
at android.app.ApplicationLoaders.getClassLoader(Unknown Source:47)
at android.app.ApplicationLoaders.getClassLoader(Unknown Source:8)
at android.app.LoadedApk.createOrUpdateClassLoaderLocked(Unknown Source:230)
at android.app.LoadedApk.getClassLoader(Unknown Source:6)
at android.app.LoadedApk.getResources(Unknown Source:26)
at android.app.ContextImpl.createAppContext(Unknown Source:24)
at android.app.ActivityThread.handleBindApplication(Unknown Source:698)
at android.app.ActivityThread.-wrap1(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(Unknown Source:502)
... 6 more
Suppressed: java.io.IOException: No original dex files found for dex location /data/app/com.example.tobia.core-lr4S82vYgys_Rc2X2Bt6vw==/split_lib_resources_apk.apk
at dalvik.system.DexFile.openDexFileNative(Native Method)
E/AndroidRuntime: at dalvik.system.DexFile.openDexFile(DexFile.java:353)
at dalvik.system.DexFile.<init>(DexFile.java:100)
at dalvik.system.DexFile.<init>(DexFile.java:74)
at dalvik.system.DexPathList.loadDexFile(DexPathList.java:374)
at dalvik.system.DexPathList.makeDexElements(DexPathList.java:337)
at dalvik.system.DexPathList.<init>(DexPathList.java:157)
at dalvik.system.BaseDexClassLoader.<init>(BaseDexClassLoader.java:65)
at dalvik.system.PathClassLoader.<init>(PathClassLoader.java:64)
at com.android.internal.os.PathClassLoaderFactory.createClassLoader(Unknown Source:4)
at android.app.ApplicationLoaders.getClassLoader(Unknown Source:47)
at android.app.ApplicationLoaders.getClassLoader(Unknown Source:8)
at android.app.LoadedApk.createOrUpdateClassLoaderLocked(Unknown Source:230)
at android.app.LoadedApk.getClassLoader(Unknown Source:6)
at android.app.LoadedApk.getResources(Unknown Source:26)
at android.app.ContextImpl.createAppContext(Unknown Source:24)
at android.app.ActivityThread.handleBindApplication(Unknown Source:698)
at android.app.ActivityThread.-wrap1(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(Unknown Source:502)
... 6 more
[CIRCULAR REFERENCE:java.io.IOException: Failed to open dex files from /data/app/com.example.tobia.core-lr4S82vYgys_Rc2X2Bt6vw==/split_lib_dependencies_apk.apk because: Failure to verify dex file '/data/app/com.example.tobia.core-lr4S82vYgys_Rc2X2Bt6vw==/split_lib_dependencies_apk.apk': Bad method handle type 7]
[CIRCULAR REFERENCE:java.io.IOException: No original dex files found for dex location /data/app/com.example.tobia.core-lr4S82vYgys_Rc2X2Bt6vw==/split_lib_resources_apk.apk]
Application terminated.

Android Studio - new relic exception is coming when running app first time on device

Every time getting this exception when creating new project and run the project.
I am not adding any new relic plugin still this exception is coming continuously.
Please help me out
05-18 16:08:12.646 19923-19923/app.demo.debug I/art: Rejecting re-init
on previously-failed class
java.lang.Class:
java.lang.NoClassDefFoundError: Failed resolution of:
Lcom/newrelic/agent/android/api/v2/TraceFieldInterface; 05-18
16:08:12.646 19923-19923/app.demo.debug I/art: Caused by:
java.lang.ClassNotFoundException: Didn't find class
"com.newrelic.agent.android.api.v2.TraceFieldInterface" on path:
DexPathList[[zip file "/data/app/app.demo.debug-1/base.apk", zip
file "/data/app/app.demo.debug-1/split_lib_dependencies_apk.apk",
zip file "/data/app/app.demo.debug-1/split_lib_slice_0_apk.apk", zip
file "/data/app/app.demo.debug-1/split_lib_slice_1_apk.apk", zip file
"/data/app/app.demo.debug-1/split_lib_slice_2_apk.apk", zip file
"/data/app/app.demo.debug-1/split_lib_slice_3_apk.apk", zip file
"/data/app/app.demo.debug-1/split_lib_slice_4_apk.apk", zip file
"/data/app/app.demo.debug-1/split_lib_slice_5_apk.apk", zip file
"/data/app/app.demo.debug-1/split_lib_slice_6_apk.apk", zip file
"/data/app/app.demo.debug-1/split_lib_slice_7_apk.apk", zip file
"/data/app/app.demo.debug-1/split_lib_slice_8_apk.apk", zip file
"/data/app/app.demo.debug-1/split_lib_slice_9_apk.apk"],nativeLibraryDirectories=[/data/app/app.demo.debug-1/lib/x86,
05-18 16:08:12.686 19923-19923/app.demo.debug E/AndroidRuntime: Caused
by: java.lang.NoClassDefFoundError: Failed resolution of:
Landroid/support/v4/app/FragmentActivity; ... 15 more Caused by:
java.lang.ClassNotFoundException:
android.support.v4.app.FragmentActivity at
java.lang.VMClassLoader.findLoadedClass(Native Method) at
java.lang.ClassLoader.findLoadedClass(ClassLoader.java:742) at
java.lang.ClassLoader.loadClass(ClassLoader.java:362) at
java.lang.ClassLoader.loadClass(ClassLoader.java:312) ... 15 more
Caused by: java.lang.NoClassDefFoundError: Failed resolution of:
Landroid/support/v4/app/BaseFragmentActivityJB; ... 15 more Caused by:
java.lang.ClassNotFoundException:
android.support.v4.app.BaseFragmentActivityJB at
java.lang.VMClassLoader.findLoadedClass(Native Method) at
java.lang.ClassLoader.findLoadedClass(ClassLoader.java:742) at
java.lang.ClassLoader.loadClass(ClassLoader.java:362) at
java.lang.ClassLoader.loadClass(ClassLoader.java:312) ... 15 more
Caused by: java.lang.NoClassDefFoundError: Failed resolution of:
Landroid/support/v4/app/BaseFragmentActivityHoneycomb; ... 15 more
Caused by: java.lang.ClassNotFoundException:
android.support.v4.app.BaseFragmentActivityHoneycomb at
java.lang.VMClassLoader.findLoadedClass(Native Method) at
java.lang.ClassLoader.findLoadedClass(ClassLoader.java:742) at
java.lang.ClassLoader.loadClass(ClassLoader.java:362) at
java.lang.ClassLoader.loadClass(ClassLoader.java:312) ... 15 more
Caused by: java.lang.NoClassDefFoundError: Failed resolution of:
Landroid/support/v4/app/BaseFragmentActivityGingerbread; ... 15 more
Caused by: java.lang.ClassNotFoundException:
android.support.v4.app.BaseFragmentActivityGingerbread at
java.lang.VMClassLoader.findLoadedClass(Native Method) at
java.lang.ClassLoader.findLoadedClass(ClassLoader.java:742) at
java.lang.ClassLoader.loadClass(ClassLoader.java:362) at
java.lang.ClassLoader.loadClass(ClassLoader.java:312) ... 15 more
Caused by: java.lang.NoClassDefFoundError: Failed resolution of:
Landroid/support/v4/app/SupportActivity; ... 15 more Caused by:
java.lang.ClassNotFoundException:
android.support.v4.app.SupportActivity at
java.lang.VMClassLoader.findLoadedClass(Native Method) at
java.lang.ClassLoader.findLoadedClass(ClassLoader.java:742) at
java.lang.ClassLoader.loadClass(ClassLoader.java:362) at
java.lang.ClassLoader.loadClass(ClassLoader.java:312) ... 15 more
Caused by: java.lang.NoClassDefFoundError: Failed resolution of:
Lcom/newrelic/agent/android/api/v2/TraceFieldInterface; ... 15 more
Caused by: java.lang.ClassNotFoundException: Didn't find class
"com.newrelic.agent.android.api.v2.TraceFieldInterface" on path:
DexPathList[[zip file "/data/app/app.demo.debug-1/base.apk", zip file
"/data/app/app.demo.debug-1/split_lib_dependencies_apk.apk", zip file
"/data/app/app.demo.debug-1/split_lib_slice_0_apk.apk", zip file
"/data/app/app.demo.debug-1/split_lib_slice_1_apk.apk", zip file
"/data/app/app.demo.debug-1/split_lib_slice_2_apk.apk", zip file
"/data/app/app.demo.debug-1/split_lib_slice_3_apk.apk", zip file
"/data/app/app.demo.debug-1/split_lib_slice_4_apk.apk", zip file
"/data/app/app.demo.debug-1/split_lib_slice_5_apk.apk", zip file
"/data/app/app.demo.debug-1/split_lib_slice_6_apk.apk", zip file
"/data/app/app.demo.debug-1/split_lib_slice_7_apk.apk", zip file
"/data/app/app.demo.debug-1/split_lib_slice_8_apk.apk", zip file
"/data/app/app.demo.debug-1/split_lib_slice_9_apk.apk"],nativeLibraryDirectories=[/data/app/app.demo.debug-1/lib/x86,
/system/lib, /vendor/lib]] at
dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:380) at
java.lang.ClassLoader.loadClass(ClassLoader.java:312) ... 15 more
Try this one:
gradlew --stop
gradlew cleanBuildCache
gradlew clean

Categories

Resources