Ошибка:
Код: Выделить всё
Error:(23, 0) Gradle DSL method not found: 'classpath()'
Possible causes:[*]The project 'SparkDatabase' may be using a version of Gradle that does not contain the method.
[url=open.wrapper.file]Open Gradle wrapper file[/url][*]The build file may be missing a Gradle plugin.
В настоящее время это мой build.gradle:
примените плагин: «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')
}
Код: Выделить всё
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()
}
}
Подробнее здесь: https://stackoverflow.com/questions/286 ... -classpath
Мобильная версия