java.lang.RuntimeException: An error occurred while executing doInBackground()

GitHub | JohnTendik | 7 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

    How do I properly use the Auth and Login functions?

    GitHub | 7 months ago | JohnTendik
    java.lang.RuntimeException: An error occurred while executing doInBackground()

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      No direct method <init>(Lcom/pokegoapi/auth/CredentialProvider;Lokhttp3/OkHttpClient;)V in class Lcom/pokegoapi/api/PokemonGo; or its super classes (declaration of 'com.pokegoapi.api.PokemonGo' appears in /data/data/com.thirdeye.john.lazygo/files/instant-run/dex/slice-PokeGOAPI-Java-master-SNAPSHOT_6b60f87c89478b51844fe3220bf3d89a8a179ab3-classes.dex)

      at com.thirdeye.john.lazygo.MainActivity$setupPogo.doInBackground()
    2. com.thirdeye.john
      MainActivity$setupPogo.doInBackground
      1. com.thirdeye.john.lazygo.MainActivity$setupPogo.doInBackground(MainActivity.java:490)
      2. com.thirdeye.john.lazygo.MainActivity$setupPogo.doInBackground(MainActivity.java:474)
      2 frames
    3. Android Platform
      AsyncTask$2.call
      1. android.os.AsyncTask$2.call(AsyncTask.java:295)
      1 frame
    4. Java RT
      FutureTask.run
      1. java.util.concurrent.FutureTask.run(FutureTask.java:237)
      1 frame