android-studio 的 sdk manager 中没有 LLDB
There is no LLDB in sdk manager in android-studio
我在我的 Manjaro 中使用 android studio 3.6.3 Linux 我正在尝试在 android studio 中使用 运行 c++ 为此我需要 LLDB 我重新安装了 andriod studio 但在 sdk 管理器中找不到 LLDB
我厌倦了并排安装 ndk 并得到了 NDK 未配置的错误
这是我的 ndk_locator_record.json 日志:
{
"messages": [
{
"level": "INFO",
"message": "android.ndkVersion from module build.gradle is not set"
},
{
"level": "INFO",
"message": "ndk.dir in local.properties is not set"
},
{
"level": "INFO",
"message": "ANDROID_NDK_HOME environment variable is not set"
},
{
"level": "INFO",
"message": "sdkFolder is /home/rijalboy/Android/Sdk"
},
{
"level": "INFO",
"message": "Because no explicit NDK was requested, the default version \u002720.0.5594570\u0027 for this Android Gradle Plugin will be used"
},
{
"level": "INFO",
"message": "Considering /home/rijalboy/Android/Sdk/ndk-bundle in SDK ndk-bundle folder"
},
{
"level": "INFO",
"message": "Considering /home/rijalboy/Android/Sdk/ndk/21.1.6352462 in SDK ndk folder"
},
{
"level": "INFO",
"message": "Rejected /home/rijalboy/Android/Sdk/ndk-bundle in SDK ndk-bundle folder because that location has no source.properties"
},
{
"level": "INFO",
"message": "Rejected /home/rijalboy/Android/Sdk/ndk/21.1.6352462 in SDK ndk folder because that NDK had version 21.1.6352462 which didn\u0027t match the requested version 20.0.5594570"
},
{
"level": "ERROR",
"message": "No version of NDK matched the requested version 20.0.5594570. Versions available locally: 21.1.6352462"
}
]
}
我找不到任何解决方案,请帮我解决这个问题。
您至少需要安装 official site 上记录的 "NDK (Side by Side)" 和 "CMake" 组件。
我刚刚安装了 NDK 21.1.6352462 并且确实安装了 lldb:
% rg --files -g '*lldb*'
toolchains/llvm/prebuilt/darwin-x86_64/lib64/liblldb.9.0.8svn.dylib
toolchains/llvm/prebuilt/darwin-x86_64/lib64/liblldb.dylib
toolchains/llvm/prebuilt/darwin-x86_64/bin/lldb-argdumper
toolchains/llvm/prebuilt/darwin-x86_64/lib/python2.7/site-packages/lldb/lldb-argdumper
toolchains/llvm/prebuilt/darwin-x86_64/lib/python2.7/site-packages/lldb/_lldb.so
toolchains/llvm/prebuilt/darwin-x86_64/lib64/clang/9.0.8/lib/linux/i386/lldb-server
toolchains/llvm/prebuilt/darwin-x86_64/lib64/clang/9.0.8/lib/linux/aarch64/lldb-server
toolchains/llvm/prebuilt/darwin-x86_64/lib64/clang/9.0.8/lib/linux/x86_64/lldb-server
toolchains/llvm/prebuilt/darwin-x86_64/lib64/clang/9.0.8/lib/linux/arm/lldb-server
您可能需要在 IDE 或构建过程中明确 configure this NDK。
我在我的 Manjaro 中使用 android studio 3.6.3 Linux 我正在尝试在 android studio 中使用 运行 c++ 为此我需要 LLDB 我重新安装了 andriod studio 但在 sdk 管理器中找不到 LLDB
我厌倦了并排安装 ndk 并得到了 NDK 未配置的错误 这是我的 ndk_locator_record.json 日志:
{
"messages": [
{
"level": "INFO",
"message": "android.ndkVersion from module build.gradle is not set"
},
{
"level": "INFO",
"message": "ndk.dir in local.properties is not set"
},
{
"level": "INFO",
"message": "ANDROID_NDK_HOME environment variable is not set"
},
{
"level": "INFO",
"message": "sdkFolder is /home/rijalboy/Android/Sdk"
},
{
"level": "INFO",
"message": "Because no explicit NDK was requested, the default version \u002720.0.5594570\u0027 for this Android Gradle Plugin will be used"
},
{
"level": "INFO",
"message": "Considering /home/rijalboy/Android/Sdk/ndk-bundle in SDK ndk-bundle folder"
},
{
"level": "INFO",
"message": "Considering /home/rijalboy/Android/Sdk/ndk/21.1.6352462 in SDK ndk folder"
},
{
"level": "INFO",
"message": "Rejected /home/rijalboy/Android/Sdk/ndk-bundle in SDK ndk-bundle folder because that location has no source.properties"
},
{
"level": "INFO",
"message": "Rejected /home/rijalboy/Android/Sdk/ndk/21.1.6352462 in SDK ndk folder because that NDK had version 21.1.6352462 which didn\u0027t match the requested version 20.0.5594570"
},
{
"level": "ERROR",
"message": "No version of NDK matched the requested version 20.0.5594570. Versions available locally: 21.1.6352462"
}
]
}
我找不到任何解决方案,请帮我解决这个问题。
您至少需要安装 official site 上记录的 "NDK (Side by Side)" 和 "CMake" 组件。
我刚刚安装了 NDK 21.1.6352462 并且确实安装了 lldb:
% rg --files -g '*lldb*'
toolchains/llvm/prebuilt/darwin-x86_64/lib64/liblldb.9.0.8svn.dylib
toolchains/llvm/prebuilt/darwin-x86_64/lib64/liblldb.dylib
toolchains/llvm/prebuilt/darwin-x86_64/bin/lldb-argdumper
toolchains/llvm/prebuilt/darwin-x86_64/lib/python2.7/site-packages/lldb/lldb-argdumper
toolchains/llvm/prebuilt/darwin-x86_64/lib/python2.7/site-packages/lldb/_lldb.so
toolchains/llvm/prebuilt/darwin-x86_64/lib64/clang/9.0.8/lib/linux/i386/lldb-server
toolchains/llvm/prebuilt/darwin-x86_64/lib64/clang/9.0.8/lib/linux/aarch64/lldb-server
toolchains/llvm/prebuilt/darwin-x86_64/lib64/clang/9.0.8/lib/linux/x86_64/lldb-server
toolchains/llvm/prebuilt/darwin-x86_64/lib64/clang/9.0.8/lib/linux/arm/lldb-server
您可能需要在 IDE 或构建过程中明确 configure this NDK。