【发布时间】:2014-08-18 18:24:30
【问题描述】:
我的项目在 intelij 中运行良好,我想在 android studio beta 中尝试它,但是在导入它时 android studio 说
Error:The project is using an unsupported version of Gradle. Please use version 1.10.
Please point to a supported Gradle version in the project's Gradle settings or in the project's Gradle wrapper (if applicable.)
<a href="fixGradleElements">Fix Gradle wrapper and re-import project</a><br><a href="openGradleSettings">Gradle settings</a>
这是我的 build.gradle 文件:
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.12+'
}
}
apply plugin: 'android'
dependencies {
compile files('libs/android-support-v4.jar')
//compile files('libs/GoogleAdMobAds.jar')
compile files('libs/libGoogleAnalyticsV2')
compile files('libs/google-play-services.jar')
compile files 'com.android.support:appcompat-v7:+'
}
android {
compileSdkVersion 17
buildToolsVersion "17.0.0"
defaultConfig {
minSdkVersion 7
targetSdkVersion 16
}
}
以前在 intelij 中我一直在使用 com.android.tools.build:gradle:.5+,我想这不再受支持。所以我想知道我需要的正确设置是什么?当我按建议的快速修复时,建议将其更改为 .12+,然后导致“无法找到对 Android Gradle 插件的任何引用”。有什么建议吗?
【问题讨论】:
标签: android intellij-idea gradle android-studio build.gradle