找不到带有哈希字符串"android-P"的目标 [英] Failed to find target with hash string 'android-P'

查看:119
本文介绍了找不到带有哈希字符串"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屋!

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