22

Since AndroidStudio update 2.2, it takes a very long time for my native code app to start (I see a blank screen for ~20sec).

My guess is that it's because it takes a long time for the c++ debugger to settle.

Is its possible to disable it (and use only the good old java debugger)?

Asaf Pinhassi
  • 15,177
  • 12
  • 106
  • 130

2 Answers2

51

I just had the same problem. You can edit your "Run/Debug Configuration" for the project. In the "Debugger" tab change "Debug type" from 'auto' to 'Java'. Solved it for me.

dsh
  • 12,037
  • 3
  • 33
  • 51
Micke
  • 526
  • 6
  • 2
  • This option seems to be missing in Android Studio 2.3 :( – ohaleck Mar 13 '17 at 10:41
  • 1
    @ohaleck The option is present in version 2.3. – dsh Mar 22 '17 at 18:09
  • 3
    Just to help some folks out, in Android Studio 2.3.3 you can find this option by selecting your Configurations (The Drop down right next the the Run button you click to run the app). Then selection Edit Configurations > Debugger > Debug Type – T. Colligan Aug 14 '17 at 20:56
  • thanks, it was so annoying when it tried to copy some .so files to Android phone and other useless stuff for a very long time I just could not wait anymore... ADB itself isn't that fast and this C++ debugger makes it more worse. Why it can't work fast as it works on iOS? on iOS with Xcode (macOS) it copies app to iPhone fast even over Wi-Fi – user924 Sep 14 '18 at 07:59
16

enter image description here

You can select the "attach debugger to Android process icon", and choose the Java Debugger on the drop down list.

Insane Skull
  • 9,220
  • 9
  • 44
  • 63
Ameryzhu
  • 161
  • 1
  • 4