java.lang.NoClassDefFoundError: android.provider.Settings$Global
See original GitHub issuetest-butler 1.4.0 crashes on a emulator with SDK level 15 with:
I/ActivityManager( 1259): Start proc com.linkedin.android.testbutler for service com.linkedin.android.testbutler/.ButlerService: pid=1784 uid=1000 gids={1015, 3002, 3001, 3003}
E/AndroidRuntime( 1784): FATAL EXCEPTION: main
E/AndroidRuntime( 1784): java.lang.NoClassDefFoundError: android.provider.Settings$Global
E/AndroidRuntime( 1784): at com.linkedin.android.testbutler.AlwaysFinishActivitiesChanger.getAlwaysFinishActivitiesState(AlwaysFinishActivitiesChanger.java:62)
E/AndroidRuntime( 1784): at com.linkedin.android.testbutler.AlwaysFinishActivitiesChanger.saveAlwaysFinishActivitiesState(AlwaysFinishActivitiesChanger.java:39)
E/AndroidRuntime( 1784): at com.linkedin.android.testbutler.ButlerService.onCreate(ButlerService.java:153)
E/AndroidRuntime( 1784): at android.app.ActivityThread.handleCreateService(ActivityThread.java:2253)
E/AndroidRuntime( 1784): at android.app.ActivityThread.access$1600(ActivityThread.java:123)
E/AndroidRuntime( 1784): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1201)
E/AndroidRuntime( 1784): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 1784): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 1784): at android.app.ActivityThread.main(ActivityThread.java:4424)
E/AndroidRuntime( 1784): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 1784): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 1784): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
E/AndroidRuntime( 1784): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
E/AndroidRuntime( 1784): at dalvik.system.NativeStart.main(Native Method)
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
NoClassDefFoundError - Android Developers
NoClassDefFoundError. bookmark_border. Stay organized with collections Save and categorize content based on your preferences. Dismiss
Read more >Exception java.lang.NoClassDefFoundError - Stack Overflow
This error came on Android SDK 25 and below. Can anyone please show the proper full method for audio focus request in a...
Read more >java.lang.NoClassDefFoundError: j$.$r8$wrapper$java$util ...
App crashes on Android API 23 and below: java.lang.NoClassDefFoundError: j$.$r8$wrapper$java$util$function$Supplier$-WRP.
Read more >core/java/android/provider/Settings.java - Google Git
import java.lang.annotation. ... public static final String EXTRA_SUB_ID = "android.provider.extra.SUB_ID"; ... MOVED_TO_GLOBAL.add(Settings.Global.
Read more >Java.Lang.NoClassDefFoundError - Visual Studio Feedback
[AndroidRuntime] Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.R$string" on path: DexPathList[[zip file ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@kurtzmarc Ah, this is why! https://github.com/linkedin/test-butler/blob/d770acf39f6373c3b7c6cf79b68ccd78868f4983/test-butler-app/src/main/java/com/linkedin/android/testbutler/AlwaysFinishActivitiesChanger.java#L27
Strange - this wasn’t picked up in lint. I don’t see a warning in AS. I’ll whip up a fix.