本文介绍了compileSdkVersion与sdk版本匹配,但“不支持的Gradle版本"与sdk版本匹配.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在您的app/build.gradle中具有以下规格
With the following specs in thee app/build.gradle
compileSdkVersion 25 buildToolsVersion "25.0.3" defaultConfig { applicationId "ir.iiscenter.shub" minSdkVersion 16 targetSdkVersion 25 versionCode 25 versionName "2.6.7" vectorDrawables.useSupportLibrary = true testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" }并安装了sdk 25(Android 7)
And the sdk 25 (Android 7) installed
我通过运行构建APK"得到以下错误
I get the following error by running "Build APK"
The project is using an unsupported version of Gradle. Please point to a supported Gradle version in the project's Gradle settings or in the project's Gradle wrapper (if applicable.)我该如何解决?
推荐答案转到Android Studio的菜单并访问File-> Project Structure,然后转到Project标签并将数据更改为:
Go to menu of your Android Studio and access File->Project Structure then go to Project label and change data to:
Gradle version: 4.4 Android Plugin Version: 3.1.2 Android Plugin Repository: google(), jcenter Default Library Repository: google(), jcenter按Ok键,然后清理并重建项目,可能会使缓存无效并重新启动.
Press Ok and then clean and rebuild project, maybe invalidate caches and restarting before.
更多推荐
compileSdkVersion与sdk版本匹配,但“不支持的Gradle版本"与sdk版本匹配.
发布评论