Gradle同步失败:com.android.tools.idea.gradle.project.sync.idea.issues.SdkPlatformNotFoundException:模块:未找到'app'平台'android-29' [英] Gradle sync failed: com.android.tools.idea.gradle.project.sync.idea.issues.SdkPlatformNotFoundException: Module: 'app' platform 'android-29' not found
问题描述
在Ubuntu 20.04上安装了Android 4.1.出现以下错误:
Installed Android 4.1 on Ubuntu 20.04. Getting the following error:
Gradle同步失败:com.android.tools.idea.gradle.project.sync.idea.issues.SdkPlatformNotFoundException:模块:未找到"app"平台"android-29".
在打开SDK管理器时,出现以下屏幕:
On opening the SDK manager I get the following screen:
我也执行了 $ ANDROID_HOME/cmdline-tools/tools/bin/sdkmanager --licenses
该如何解决?
------编辑---------
------ edit ---------
这是"SDK平台"选项卡中显示的内容.取消选中隐藏过时的软件包";不会改变任何东西.
This is what shows in the SDK Platforms tab. Unchecking the "Hide Obsolete Packages" doesn't change anything.
推荐答案
正如错误所说.安装API级别为29的SDK平台.您需要切换到"SDK平台并安装正确的API级别:
As the error is saying. Install the SDK Platform with API Level 29. YOu need to switch to the tab " SDK Platforms and install the right API Level:
-----------编辑--------------
-----------edit--------------
也许您不小心更改了SDK的位置.
maybe you changed accidently your SDK location.
矿井位于 C:\ Users \ elmo \ AppData \ Local \ Android \ Sdk
注意:在Windows上使用它.
Pay attention: using it on windows.
这篇关于Gradle同步失败:com.android.tools.idea.gradle.project.sync.idea.issues.SdkPlatformNotFoundException:模块:未找到'app'平台'android-29'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!