java.lang.reflect.InvocationTargetException

tip

Any worker thread runs in background, since it is not intended to loop, is not connected to a Looper.for example doInBackground().
its implementation returns will be passed to onPostExecute() which runs on the UI thread.

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • Acracadabra
    via by Unknown author,
  • crash report
    via GitHub by door43app
    ,
  • crash report
    via GitHub by door43app
    ,
  • crash report
    via GitHub by door43app
    ,
  • was trying to open it to use
    via GitHub by door43app
    ,
  • crash report
    via GitHub by door43app
    ,
  • crash report
    via GitHub by door43app
    ,
  • crash report
    via GitHub by door43app
    ,
    • java.lang.reflect.InvocationTargetException at java.lang.reflect.Constructor.constructNative(Native Method) at java.lang.reflect.Constructor.newInstance(Constructor.java:415) at android.preference.GenericInflater.createItem(GenericInflater.java:383) at android.preference.GenericInflater.onCreateItem(GenericInflater.java:417) at android.preference.GenericInflater.createItemFromTag(GenericInflater.java:428) at android.preference.GenericInflater.rInflate(GenericInflater.java:481) at android.preference.GenericInflater.rInflate(GenericInflater.java:493) at android.preference.GenericInflater.inflate(GenericInflater.java:326) at android.preference.GenericInflater.inflate(GenericInflater.java:263) at android.preference.PreferenceManager.inflateFromResource(PreferenceManager.java:254) at android.preference.PreferenceManager.setDefaultValues(PreferenceManager.java:447) at android.preference.PreferenceManager.setDefaultValues(PreferenceManager.java:425) at com.example.activity.BaseActivity$LogoutTask.doInBackground(BaseActivity.java:255) at com.example.activity.BaseActivity$LogoutTask.doInBackground(BaseActivity.java:1) at android.os.AsyncTask$2.call(AsyncTask.java:185) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:306) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1088) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:581) at java.lang.Thread.run(Thread.java:1027) Caused by: java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare() at android.os.Handler.<init>(Handler.java:121) at android.view.GestureDetector$GestureHandler.<init>(GestureDetector.java:250) at android.view.GestureDetector.<init>(GestureDetector.java:370) at android.view.GestureDetector.<init>(GestureDetector.java:347) at android.view.GestureDetector.<init>(GestureDetector.java:331) at android.widget.TextView.<init>(TextView.java:1016) at android.widget.EditText.<init>(EditText.java:60) at android.widget.EditText.<init>(EditText.java:56) at android.preference.EditTextPreference.<init>(EditTextPreference.java:56) at android.preference.EditTextPreference.<init>(EditTextPreference.java:71)

    Users with the same issue

    Hiren AmaliyarHiren Amaliyar
    14 times, last one,
    winer222winer222
    288 times, last one,
    filpgamefilpgame
    128 times, last one,
    Indri YunitaIndri Yunita
    11 times, last one,
    AdrienAdrien
    2 times, last one,
    35 more bugmates