Android Studio 2.2.2 LLDB 2.2 update issue

我们两清 提交于 2019-12-19 17:46:20

问题


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.

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

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.


回答1:


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




回答2:


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.




回答3:


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




回答4:


  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


来源:https://stackoverflow.com/questions/40169758/android-studio-2-2-2-lldb-2-2-update-issue

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!