After I've updated my IDE to V10.7 and compiled my application, I couldn't open it anymore.
I'm getting the following error in log:
Process: package.Name, PID: 29055
java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/arch/core/executor/ArchTaskExecutor;
at androidx.lifecycle.LifecycleRegistry.enforceMainThreadIfNeeded(LifecycleRegistry.java:316)
at androidx.lifecycle.LifecycleRegistry.addObserver(LifecycleRegistry.java:172)
at androidx.activity.ComponentActivity.<init>(ComponentActivity.java:224)
at androidx.fragment.app.FragmentActivity.<init>(FragmentActivity.java:103)
at androidx.appcompat.app.AppCompatActivity.<init>(AppCompatActivity.java:87)
at package.Name.main.<init>(main.java:18)
at java.lang.reflect.Constructor.newInstance(Native Method)
at java.lang.Class.newInstance(Class.java:1606)
at android.app.Instrumentation.newActivity(Instrumentation.java:1066)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2226)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387)
at android.app.ActivityThread.access$800(ActivityThread.java:151)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5254)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:902)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:697)
Caused by: java.lang.ClassNotFoundException: Didn't find class "androidx.arch.core.executor.ArchTaskExecutor" on path: DexPathList[[zip file "/data/app/package.Name-3/base.apk"],nativeLibraryDirectories=[/data/app/package.Name-3/lib/arm, /vendor/lib, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
... 20 more
Suppressed: java.lang.ClassNotFoundException: androidx.arch.core.executor.ArchTaskExecutor
at java.lang.Class.classForName(Native Method)
at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
... 21 more
Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available
Force finishing activity 1 package.Name/.main
After getting this error, I've tried to compile in a older IDE version (V8.80). And now, I'm getting the following error in compilation:
...\Objects\bin\extra\res10\res\values\values.xml:3: error: Found tag id where item is expected
...\Objects\bin\extra\res9\res\values\values.xml:3: error: Found tag id where item is expected
...\Objects\bin\extra\res7\res\values\values.xml:3: error: Found tag id where item is expected
...\Objects\bin\extra\res3\res\values\values.xml:36: error: Attribute "fontProviderFetchStrategy" already defined with incompatible format.
...\Objects\bin\extra\res6\res\values\values.xml:127: Original attribute defined here.
...\Objects\bin\extra\res3\res\values\values.xml:51: error: Attribute "fontProviderFetchTimeout" already defined with incompatible format.
...\Objects\bin\extra\res6\res\values\values.xml:139: Original attribute defined here.
...\Objects\bin\extra\res3\res\values\values.xml:61: error: Attribute "fontStyle" already defined with incompatible format.
...\Objects\bin\extra\res6\res\values\values.xml:147: Original attribute defined here.
I've updated my SDK as well. I tried version 30 of the API and all the others I have here.
I'm getting the following error in log:
Process: package.Name, PID: 29055
java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/arch/core/executor/ArchTaskExecutor;
at androidx.lifecycle.LifecycleRegistry.enforceMainThreadIfNeeded(LifecycleRegistry.java:316)
at androidx.lifecycle.LifecycleRegistry.addObserver(LifecycleRegistry.java:172)
at androidx.activity.ComponentActivity.<init>(ComponentActivity.java:224)
at androidx.fragment.app.FragmentActivity.<init>(FragmentActivity.java:103)
at androidx.appcompat.app.AppCompatActivity.<init>(AppCompatActivity.java:87)
at package.Name.main.<init>(main.java:18)
at java.lang.reflect.Constructor.newInstance(Native Method)
at java.lang.Class.newInstance(Class.java:1606)
at android.app.Instrumentation.newActivity(Instrumentation.java:1066)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2226)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387)
at android.app.ActivityThread.access$800(ActivityThread.java:151)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5254)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:902)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:697)
Caused by: java.lang.ClassNotFoundException: Didn't find class "androidx.arch.core.executor.ArchTaskExecutor" on path: DexPathList[[zip file "/data/app/package.Name-3/base.apk"],nativeLibraryDirectories=[/data/app/package.Name-3/lib/arm, /vendor/lib, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
... 20 more
Suppressed: java.lang.ClassNotFoundException: androidx.arch.core.executor.ArchTaskExecutor
at java.lang.Class.classForName(Native Method)
at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
... 21 more
Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available
Force finishing activity 1 package.Name/.main
After getting this error, I've tried to compile in a older IDE version (V8.80). And now, I'm getting the following error in compilation:
...\Objects\bin\extra\res10\res\values\values.xml:3: error: Found tag id where item is expected
...\Objects\bin\extra\res9\res\values\values.xml:3: error: Found tag id where item is expected
...\Objects\bin\extra\res7\res\values\values.xml:3: error: Found tag id where item is expected
...\Objects\bin\extra\res3\res\values\values.xml:36: error: Attribute "fontProviderFetchStrategy" already defined with incompatible format.
...\Objects\bin\extra\res6\res\values\values.xml:127: Original attribute defined here.
...\Objects\bin\extra\res3\res\values\values.xml:51: error: Attribute "fontProviderFetchTimeout" already defined with incompatible format.
...\Objects\bin\extra\res6\res\values\values.xml:139: Original attribute defined here.
...\Objects\bin\extra\res3\res\values\values.xml:61: error: Attribute "fontStyle" already defined with incompatible format.
...\Objects\bin\extra\res6\res\values\values.xml:147: Original attribute defined here.
I've updated my SDK as well. I tried version 30 of the API and all the others I have here.