gpt4 book ai didi

找不到 Android sdkmanager 工具

转载 作者:IT王子 更新时间:2023-10-29 07:06:13 28 4
gpt4 key购买 nike

enter image description here我这周刚开始使用 Ubuntu 18.0 LTS,从 Windows 切换过来,想重新安装 Android Studio 和 Flutter。我按照安装 Android Studio 所说的所有步骤进行操作,它适用于所有 SDK。但是,当我想安装 Flutter 时,它给出了异常:

Doctor summary (to see all details, run flutter doctor -v):
Unhandled exception:
Exception: Android sdkmanager tool not found (/usr/lib/android-sdk/tools/bin/sdkmanager).
Try re-installing or updating your Android SDK,
visit https://flutter.io/setup/#android-setup for detailed instructions.

如果需要,请询问堆栈跟踪。

我能找到的最接近的问题是:How to install SDK manager on linux ubuntu 16.04?但我无法真正理解如何按照说明进行操作。我可能需要您在说明中非常清楚,因为我是 Linux 平台的新手。

工具/包.xml :

<ns2:repository xmlns:ns2="http://schemas.android.com/repository/android/common/01"
xmlns:ns3="http://schemas.android.com/sdk/android/repo/addon2/01"
xmlns:ns4="http://schemas.android.com/sdk/android/repo/sys-img2/01"
xmlns:ns5="http://schemas.android.com/repository/android/generic/01"
xmlns:ns6="http://schemas.android.com/sdk/android/repo/repository2/01">
<license id="apache-2.0" type="text">Please refer to Apache v2.0 license</license>
<localPackage path="tools" obsolete="false">
<type-details xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="ns5:genericDetailsType"/>
<revision>
<major>25</major>
<minor>0</minor>
<micro>0</micro>
</revision>
<display-name>Android SDK Tools</display-name>
<uses-license ref="apache-2.0"/>
<dependencies>
<dependency path="platform-tools">
<min-revision>
<major>20</major>
</min-revision>
</dependency>
</dependencies>
</localPackage>
</ns2:repository>

Flutter doctor -v 输出:

[✓] Flutter (Channel beta, v0.7.3, on Linux, locale en_IN)
• Flutter version 0.7.3 at /home/andi/Downloads/flutter
• Framework revision 3b309bda07 (13 days ago), 2018-08-28 12:39:24 -0700
• Engine revision af42b6dc95
• Dart version 2.1.0-dev.1.0.flutter-ccb16f7282

[!] Android toolchain - develop for Android devices (Android SDK 28.0.2)
• Android SDK at /home/andi/Android/Sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.2
• ANDROID_HOME = /home/andi/Android/Sdk
• Java binary at: /home/andi/Downloads/android-studio-ide-173.4907809-linux/android-studio/jre/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses

[✓] Android Studio (version 3.1)
• Android Studio at /home/andi/Downloads/android-studio-ide-173.4907809-linux/android-studio
• Flutter plugin version 28.0.1
• Dart plugin version 173.4700
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)

[!] Connected devices
! No devices available

! Doctor found issues in 2 categories.

最佳答案

我在我的 KUbuntu 上安装后遇到了这个问题。

您需要打开 AndroidStudio 然后转到 工具 -> SDK 管理器 然后转到 SDK 工具 选项卡,取消选中选项 Hide Obsolete Packages

您会看到Android SDK Tools (Obsolete)选项,勾选后继续下载安装。

See the screenshot here

关于找不到 Android sdkmanager 工具,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52256569/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com