compileSdkVersion与sdk版本匹配,但“不支持的Gradle版本"与sdk版本匹配.

编程入门 行业动态 更新时间:2024-10-25 20:30:12
本文介绍了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版本匹配.

本文发布于:2023-10-18 23:58:40,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1505807.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:版本   不支持   sdk   compileSdkVersion   Gradle

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!