使用Android Studio 1.0.2,您将被迫使用Gradle 2.2.1。我正在尝试导入kickflip.io android示例(https://github.com/Kickflip/kickflip-android-example)。
我看到了这个错误:
Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the user guide chapter on the daemon at http://gradle.org/docs/2.2.1/userguide/gradle_daemon.html
Please read the following process output to find out more:
-----------------------
Error: Could not find or load main class 2.2.1
Gradle Wrapper:
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=http\://services.gradle.org/distributions/gradle-2.2.1-all.zip
顶级构建文件:
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.0.0'
classpath 'org.codehaus.groovy:groovy-backports-compat23:2.3.5'
}
}
allprojects {
repositories {
mavenCentral()
}
}
应用程序/的build.gradle:
buildscript {
repositories {
maven { url 'http://repo1.maven.org/maven2' }
}
}
android {
compileSdkVersion 19
buildToolsVersion "19.1"
defaultConfig {
minSdkVersion 18
targetSdkVersion 19
versionCode 2
versionName "1.1"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
}
dependencies {
compile 'com.android.support:support-v4:19.1.0'
compile 'com.squareup.picasso:picasso:2.2.0'
compile 'com.readystatesoftware.systembartint:systembartint:1.0.3'
compile 'io.kickflip:sdk:1.1.1'
}
我的错误报告非常长,所以不会发布,因为当我复制并粘贴格式时,格式会被破坏。非常感谢任何帮助。