找不到带有哈希字符串"android-P"的目标 [英] Failed to find target with hash string 'android-P'
问题描述
我正在关注此教程页面
我得到他们在该页面上说的完全相同的错误
and i get the exact same error that they say in that page
在以下位置找不到带有哈希字符串"android-P"的目标:D:\ Development \ Android \ Sdk 安装缺少的平台并同步项目
Failed to find target with hash string 'android-P' in: D:\Development\Android\Sdk Install missing platform(s) and sync project
当我点击
安装缺少的平台并同步项目 错误显示为
所有软件包均无法下载!以下软件包不可用:
-Package ID平台; android-P
All packages are not available for download! The following packages are not available:
- Package id platforms;android-P
我已经安装了几乎所有要求ANDROID的SDK-P.
I have installed almost all the SDK it asks for ANDROID - P.
推荐答案
,您正在尝试查找与版本"android-p"相对应的SDK.
看一下您的build.gradle文件:
android {
compileSDKVersion 'android-p'
..........
}
you're trying to find a SDK that corresponds to the version "android-p".
Have a look at your build.gradle file:
android {
compileSDKVersion 'android-p'
..........
}
将其更改为
android {
compileSDKVersion 28
..........
}
请注意,版本28只是一个示例,您可以使用任何版本.
change it to
android {
compileSDKVersion 28
..........
}
note that the version 28 is just one example, you could be using any version.
应该为您完成的工作.
这篇关于找不到带有哈希字符串"android-P"的目标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!