question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

java.lang.NoClassDefFoundError: android.provider.Settings$Global

See original GitHub issue

test-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:open
  • Created 5 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
kurtzmarccommented, Aug 30, 2018

Strange - this wasn’t picked up in lint. I don’t see a warning in AS. I’ll whip up a fix.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found