java.lang.ExceptionInInitializerError

GitHub | kasim1011 | 11 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Sync not working on Android API level 15 (4.0.3)

    GitHub | 11 months ago | kasim1011
    java.lang.ExceptionInInitializerError

    Root Cause Analysis

    1. java.lang.RuntimeException

      Can't create handler inside thread that has not called Looper.prepare()

      at android.os.Handler.<init>()
    2. Android Platform
      AbstractThreadedSyncAdapter$SyncThread.run
      1. android.os.Handler.<init>(Handler.java:121)
      2. android.os.AsyncTask$InternalHandler.<init>(AsyncTask.java:607)
      3. android.os.AsyncTask$InternalHandler.<init>(AsyncTask.java:607)
      4. android.os.AsyncTask.<clinit>(AsyncTask.java:190)
      5. android.content.ContentProvider.attachInfo(ContentProvider.java:929)
      6. android.app.ActivityThread.installProvider(ActivityThread.java:4260)
      7. android.app.ActivityThread.acquireProvider(ActivityThread.java:4058)
      8. android.app.ContextImpl$ApplicationContentResolver.acquireProvider(ContextImpl.java:1618)
      9. android.content.ContentResolver.acquireProvider(ContentResolver.java:949)
      10. android.content.ContentResolver.acquireContentProviderClient(ContentResolver.java:984)
      11. android.content.AbstractThreadedSyncAdapter$SyncThread.run(AbstractThreadedSyncAdapter.java:245)
      11 frames