我的项目在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 Studio版本吗?这发生在我身上,但在更新后已修复。您将必须重新构建项目,并确保已设置新的目标gradle构建。
关于android - 从intellij 12导入项目到android studio beta,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24455267/