Error: Google Play requires that apps target API level 26 or higher. 两种解决办法

Android Studio和SDK升级到最新3.6.1后出现的

 

两种解决办法:

 

1)在targetSdkVersion 上面一行加注释:(我也感觉不可思议,但是信不信随你)

//noinspection ExpiredTargetSdkVersion

第二种:

Error: Google Play requires that apps target API level 26 or higher. 两种解决办法

 

出错信息如下:

Task :app:lintVitalRelease
E:\work\projects\BluetoothControl\app\build.gradle:23: Error: Google Play requires that apps target API level 26 or higher.
[ExpiredTargetSdkVersion]
targetSdkVersion 24
~~~~~~~~~~~~~~~~~~~

Explanation for issues of type "ExpiredTargetSdkVersion":
As of the second half of 2018, Google Play requires that new apps and app
updates target API level 26 or higher.

Configuring your app to target a recent API level ensures that users
benefit from significant security and performance improvements, while still
allowing your app to run on older Android versions (down to the
minSdkVersion).

To update your targetSdkVersion, follow the steps from "Meeting Google Play
requirements for target API level",
https://developer.android.com/distribute/best-practices/develop/target-sdk.
html

https://support.google.com/googleplay/android-developer/answer/113469#targetsdk
https://support.google.com/googleplay/android-developer/answer/113469#targetsdk
https://developer.android.com/distribute/best-practices/develop/target-sdk.html

1 errors, 0 warnings


最后奉劝大家一点
直接转账或者先确认收货的那种绝对的不靠谱,被骗钱是小事,不能毕业了是大事。

定制讲解加:QQ:884563046 微信:bishe666
包讲解、包抽检、可过后付费、可淘宝交易
微信二维码:
为你提供计算机专业毕业设计题目大全集推荐-计算机毕业论文选题