首先,我已经阅读了所有其他解决方案帖子以及关于迁移到1.0的官方文档。到目前为止,没有一个有效。
错误:
应用Gradle插件
目前,这是我的build.gradle文件:
apply plugin: 'com.android.application'
我的另一个Gradle:
另外,我如何进行全新安装Android Studio 1.0,使其能够直接使用,而无需与之前的版本0.9有关?
错误:
Error:(23, 0) Gradle DSL method not found: 'classpath()'
Possible causes:<ul><li>The project 'SparkDatabase' may be using a version of Gradle that does not contain the method.
<a href="open.wrapper.file">Open Gradle wrapper file</a></li><li>The build file may be missing a Gradle plugin.
应用Gradle插件
目前,这是我的build.gradle文件:
apply plugin: 'com.android.application'
android {
compileSdkVersion 20
buildToolsVersion "20.0.0"
defaultConfig {
applicationId "ca.industrycorp.sparkdatabase"
minSdkVersion 19
targetSdkVersion 20
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'de.greenrobot:greendao:1.3.7'
compile 'de.greenrobot:greendao-generator:1.3.1'
compile files('libs/json-simple-1.1.1.jar')
compile files('libs/java-json.jar')
}
我的另一个Gradle:
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.0.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
另外,我如何进行全新安装Android Studio 1.0,使其能够直接使用,而无需与之前的版本0.9有关?