Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio 2.2.2 LLDB 2.2 update issue

Today I updated my android studio to version V-2.2.2. When I am trying to debug my android application with native code(app-native) I am always getting error message

C++ debugger package is missing or incompatible, do you want to fix it.

enter image description here

After updating to lldb 2.2 also I am getting same issue when I try to debug my native c++ code.

enter image description here

I am using gradle plug in 'com.android.tools.build:gradle-experimental:0.8.2' for building native ndk code. I have even updated ndk-bundle to latest version 13.0.3315539

Is anybody facing similar issue or able to resolve similar issue.

Thanks in advance.

like image 868
Swapnil Avatar asked Oct 21 '16 06:10

Swapnil


4 Answers

I resolved issue by performing following steps

  1. Go to android-sdk folder on your file System, Locate folder lldb and delete folder lldb. (

For safety purpose you can keep backup or rename folder.

) 2. Now from android studio Tools->Android->SDK Manager->SDK Tools and update lldb option. Click on Apply. It will download LLDB 2.2 3. Now try to debug C++ code and debugging is working fine as expected.

Issue was arising due to some conflict between older downloaded version LLDB 2.1 and newer LLDB version 2.2

like image 150
Swapnil Avatar answered Oct 21 '22 11:10

Swapnil


I got the same error with Android Studio 2.3 Beta 3. I tried all the solutions I could found but no one works. I used the Quick Fix Option by press Yes below. However, it then report failed to download LLDB 2.3.

I fixed this by selecting "Beta" channel in my Updates settings and then run Quick Fix Again. The channel was changed to Stable somehow. So it always failed to download LLDB 2.3

Hope this helps to people might having the same issue and found here.

Quick Fix OptionFailed To Download LLDB 2.3enter image description here

like image 35
Zhao Avatar answered Oct 21 '22 11:10

Zhao


Edit configurations... > Debugger > Choose Java as debug Type > Apply

like image 2
Beeing Jk Avatar answered Oct 21 '22 09:10

Beeing Jk


  1. Open SDK Manager and remove LLDB. (from Launch standalone SDK Manager)
  2. Close SDK Manager.
  3. Re-open SDK Manager and go to SDK Tools.
  4. Re-install LLDB
like image 1
oskarko Avatar answered Oct 21 '22 11:10

oskarko