Bubblewrap CLI错误:无法找到或加载主类com.android.sdklib.tool.sdkmanager.SdkManagerCli [英] Bubblewrap CLI error: Could not find or load main class com.android.sdklib.tool.sdkmanager.SdkManagerCli

查看:148
本文介绍了Bubblewrap CLI错误:无法找到或加载主类com.android.sdklib.tool.sdkmanager.SdkManagerCli的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用Bubblewrap构建我的应用程序时,由于安装Android SDK工具时出现问题,我不断收到这个令人讨厌的错误,但并不能让我继续:

When building my app with bubblewrap, I kept getting this annoying error wouldn't let me continue because there was a problem installing Android SDK tools:

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的内容:

And the content of config.json within .bubblewrap:

{
    "jdkPath": "C:/Users/Me/.bubblewrap/openjdk",
    "androidSdkPath": "C:/Users/Me/.bubblewrap/cmdline-tools"
}

更多信息:

  • Windows 10 v2004:

  • Windows 10 v2004:

Windows内部版本号:19041.388

Windows Build Number: 19041.388

气泡包装版本:1.4.1

Bubblewrap version: 1.4.1

注意: 不久前,我问了此问题,但是我在其他地方找到了解决方案./p>

Note: I asked this question here, a while back, but I found a solution elsewhere.

推荐答案

进行了大量搜索,但我终于找到了解决方案:

It took a great deal of searching, but I finally found a solution:

我通过安装@krayanni在此帖子来自其他回购.

I solved the problem by installing an earlier version of Android SDK tools as suggested by @krayanni in this post from a different repo.

我认为最新版本"6200805"存在一些问题,即使我遇到了同样的问题.

I think latest version '6200805' has some issue, even I got the same problem.

解决方案:使用较旧的sdkmanager版本,请在下面找到较旧版本的链接.

Solution: Use the older sdkmanager version, please find below links for older version.

Windows无需安装程序: https://dl.google .com/android/repository/sdk-tools-windows-4333796.zip

Windows no installer: https://dl.google.com/android/repository/sdk-tools-windows-4333796.zip

MacOSX: https://dl.google.com/android/repository/sdk-tools-darwin-4333796.zip

Linux: https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip

但是,显然,如果您使用7zip而不是默认的Windows提取程序来解压缩文件,则应该可以正常工作.我还没有尝试过.

However, apparently if you unzip the files with 7zip instead of the default windows extractor, it should work fine. I haven't tried this though.

更多信息在这里

这篇关于Bubblewrap CLI错误:无法找到或加载主类com.android.sdklib.tool.sdkmanager.SdkManagerCli的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆