【发布时间】:2020-12-11 00:59:14
【问题描述】:
在使用bubblewrap 构建我的应用时,我不断收到这个恼人的错误,因为安装Android SDK 工具时出现问题:
C:\Users\Me\Desktop\app>bubblewrap build
,-----. ,--. ,--. ,--.
| |) /_,--.,--| |-.| |-.| |,---.,--. ,--,--.--.,--,--.,---.
| .-. | || | .-. | .-. | | .-. | |.'.| | .--' ,-. | .-. |
| '--' ' '' | `-' | `-' | \ --| .'. | | \ '-' | '-' '
`------' `----' `---' `---'`--'`----'--' '--`--' `--`--| |-'
`--'
Installing Android Build Tools. Please, read and accept the license agreement
build Installing Build Tools
Error: Could not find or load main class com.android.sdklib.tool.sdkmanager.SdkManagerCli
cli ERROR undefined
C:/Users/Me/.bubblewrap 中.bubblewrap 目录的结构:
.bubblewrap/
┣ cmdline-tools/
┃ ┗ tools/
┣ openjdk/
┃ ┣ bin/
┃ ┣ include/
┃ ┣ jre/
┃ ┣ lib/
┃ ┣ sample/
┃ ┣ ASSEMBLY_EXCEPTION
┃ ┣ LICENSE
┃ ┣ release
┃ ┣ src.zip
┃ ┗ THIRD_PARTY_README
┗ config.json
以及 .bubblewrap 中 config.json 的内容:
{
"jdkPath": "C:/Users/Me/.bubblewrap/openjdk",
"androidSdkPath": "C:/Users/Me/.bubblewrap/cmdline-tools"
}
更多信息:
-
Windows 10 v2004:
-
Windows 内部版本号:19041.388
-
Bubblewrap 版本:1.4.1
注意: 不久前我问过this question here,但我在别处找到了解决方案。
【问题讨论】:
标签: android android-sdk-tools bubblewrap