Search code examples
androidandroid-studiokotlinfacebook-loginandroid-debug

My App waiting for debugger in release mode in android studio 3.1.3


I am an amateur in Kotlin and android studio. I am trying to integrate the facebook login to my app but end up at a roadblock. After following the facebook login for android integration tutorial, I am unable to run the app in release mode. I did previously run the same app in debug mode for debugging. But now the app on my phone says "Waiting for Debugger" in release mode too.

I have done the following already and it has not worked.

  1. Set debuggable to false in release mode
  2. Restart ADB
  3. Restart Android Studio
  4. Restart phone
  5. Restart Computer
  6. Switch USB port
  7. Update everything
  8. moving the keystore inside the base path of my android project.
  9. set minifyEnabled false
  10. Tried Checking BuildConfig.BUILD_TYPE.equals("debug")

In the Run it shows,

07/24 12:11:43: Launching app
$ adb shell am start -n "com.example.vishwa.imaginators/com.example.vishwa.imaginators.SplashscreenActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Connected to process 16495 on device xiaomi-redmi_note_3-57c506ac
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
W/ActivityThread: Application com.example.vishwa.imaginators is waiting for the debugger on port 8100...
I/System.out: Sending WAIT chunk

I did not put up the logcat because it's got tons of text in it.


Solution

  • You might have added your app in Select app to be debugged on your phone. In Settings -> Developer Options -> Select app to be debugged

    To resolve this, go to Select app to be debugged and click on No apps