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:
- When Android Studio runs the app, it prompts Error: Please select Android SDK
- Error: Error parsing D:\new_android\Android SDK\system-images\android-25\android-wear\armeabi-v7a\de
- [unity] Android package error java.lang.ClassNotFoundException Did not find class com.unity3d . player.MainActivity
- Android Studio | Failed to find target with hash string ‘android-26’ in: D:\Android\sdk
- [solved] not found android.support .v7. internal.app.WindowDecorActionbar
- java.lang.IllegalStateException: Could not execute method for android:onClick
- [error record] Android App packaging error (entry name ‘assets / xxx. XML’ merged)
- Android: How to Solve Execution failed for task ‘:app:compileDebugJavaWithJavac‘. > javax/xml/bind/JAXBException
- Adobe finally launched Photoshop fix on Android, a powerful mobile phone map revision app
- android studio:Error inflating class android.support.v4.widget.SwipeRefreshLayout
- Android error java.lang.IllegalStateException : System services not available to Activities before onC
- Android Studio Error: Invoke-customs are only supported starting with Android O (–min-api 26)
- Error running app:Instant Run requires Tools | Android Enable ADB integration‘ to be enabled.
- Android Error | Failed to find target with hash string ”android-23′ in…
- Android Studio Install Error Failed to install Intel HAXM. For details, please check the installation log
- android Caused by: java.util.ConcurrentModificationException
- Flutter development: prompt error parsing localfile when running the project: ‘/ users / xxx / Android / APP / SRC / main / androidmanifest. XML’… Solution
- How to use Android android:supportsRtl attribute
- Android android.intent.category Purpose and use of. Launcher