App on Android 9.0 can run, but the installation to version 4.4 program crashes, the error isClassNotFoundException,
java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.xx.app/com.xx.view.splash.SplashActivity}: java.lang.ClassNotFoundException: Didn’t find class “com.xx.view.splash.SplashActivity” on path: DexPathList[[zip file “/data/app/com.xx.app-1.apk”],nativeLibraryDirectories=[/data/app-lib/com.xx.app-1, /vendor/lib, /system/lib]]
Stack.
E/AndroidRuntime( 9741): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2121)
E/AndroidRuntime( 9741): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
E/AndroidRuntime( 9741): at android.app.ActivityThread.access$800(ActivityThread.java:135)
E/AndroidRuntime( 9741): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
E/AndroidRuntime( 9741): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime( 9741): at android.os.Looper.loop(Looper.java:136)
E/AndroidRuntime( 9741): at android.app.ActivityThread.main(ActivityThread.java:5047)
E/AndroidRuntime( 9741): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 9741): at java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime( 9741): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:842)
E/AndroidRuntime( 9741): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:658)
E/AndroidRuntime( 9741): at dalvik.system.NativeStart.main(Native Method)
Solution:
Change the version of androidx.constraintlayout:constraintlayout
from 2.0.4 to 2.1.1, the problem is solved
Read More:
- AppCompat does not support the current theme features
- java.lang.IllegalStateException: Could not execute method for android:onClick
- Android error java.lang.IllegalStateException : System services not available to Activities before onC
- android Caused by: java.util.ConcurrentModificationException
- Failure delivering result ResultInfo
- An error is reported for the new Android project. Rejecting re init on previously failed
- Failed to notify ProjectEvaluationListener.afterEvaluate(), but primary configuration failure takes
- [unity] Android package error java.lang.ClassNotFoundException Did not find class com.unity3d . player.MainActivity
- Get the startup activity of Android apk
- Error while instantiating ‘org.apache.spark.sql.hive.HiveExternalCatalog’:
- Mac compiles Doris with MVN and reports an error checkstyle
- Android appears java.lang.NoClassDefFoundError A solution to the error
- Failed to execute goal org.apache.maven.plugins:maven-gpg-plugin:1.6:sign
- Android studio compile and run report: AAPT2 error: check logs for details
- Android “handler” is abstract; can’t be identified solution
- java.lang.UnsupportedOperationException resolvent
- Severe: error filterStart error resolution
- Android Error: Consumer closed input channel or an error occurred. events=0x9
- How to Fix Error: JavaFX cannot find fxml
- Error attaching to process