博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
The SDK platform-tools version (27.0.1) is too old to check APIs compiled with API 28
阅读量:4094 次
发布时间:2019-05-25

本文共 1434 字,大约阅读时间需要 4 分钟。

参考:

项目报错:

在这里插入图片描述

Ctrl+F1查看:

The SDK platform-tools version (27.0.1) is too old to check APIs compiled with API 28; please update less... (Ctrl+F1) This check scans through all the Android API calls in the application and warns about any calls that are not available on all versions targeted by this application (according to its minimum SDK attribute in the manifest). If you really want to use this API and don't need to support older devices just set the minSdkVersion in your build.gradle or AndroidManifest.xml files. If your code is deliberately accessing newer APIs, and you have ensured (e.g. with conditional execution) that this code will only ever be called on a supported platform, then you can annotate your class or method with the @TargetApi annotation specifying the local minimum SDK to apply, such as @TargetApi(11), such that this check considers 11 rather than your manifest file's minimum SDK as the required API level.  If you are deliberately setting android: attributes in style definitions, make sure you place this in a values-vNN folder in order to avoid running into runtime conflicts on certain devices where manufacturers have added custom attributes whose ids conflict with the new ones on later platforms.  Similarly, you can use tools:targetApi="11" in an XML file to indicate that the element will only be inflated in an adequate context.

SDK platform与SDK platform-tools版本不一致,所以要升级

在这里插入图片描述

选中升级即可。

在这里插入图片描述

重启下android studio:

在这里插入图片描述

在这里插入图片描述

你可能感兴趣的文章
【NOIP2014】飞扬的小鸟
查看>>
IOS NSOperationQueue(线程 封装操作)
查看>>
Oracle 密码文件
查看>>
PHP基础知识
查看>>
数据库时间小技巧 - 取数据库中时间格式是12小时制的时间,如何显示成24小时制...
查看>>
Ubuntu14.04下安装docker
查看>>
PostgreSQl中 index scan 代价的进一步学习
查看>>
PLSQL中隐式打开cursor的小例子
查看>>
GNU make manual 翻译( 一百三十二)
查看>>
Openjudge jubeeeeeat
查看>>
bzoj 1208: [HNOI2004]宠物收养所
查看>>
洛谷 P3586 [POI2015]LOG
查看>>
noip2015 信息传递 强连通块
查看>>
对象交互
查看>>
JVM之GC算法
查看>>
分享15款很实用的 Sass 和 Compass 工具
查看>>
[dp]vijos1063 迎春舞会之集体舞
查看>>
Android之路-------传说中的大喇叭(广播接收器)
查看>>
JMeter对Oracle数据库进行压力测试
查看>>
mysql命令添加表字段
查看>>