安装了新的Android Studio 1.0.2。打开kickflip.io android示例(https://github.com/Kickflip/kickflip-android-example)的现有android项目时出现以下错误:
Failed to create parent directory 'C:\Program Files\Android\Android Studio\gradle\gradle- 2.2.1\daemon' when creating directory 'C:\Program Files\Android\Android Studio\gradle\gradle-2.2.1\daemon\2.2.1'
我的用户变量设置如下:
ADB C:\Android SDK\platform-tools\
ANDROID_HOME C:\Android SDK\
GRADLE_HOME C:\Program Files\Android\Android Studio\gradle\gradle-2.2.1
MAVEN_HOME C:\Program Files\maven\
PATH C:\Android SDK\tools\,C:\Android SDK\platform-tools\
settings.gradle:
include ':app'
的build.gradle:
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.0.0+'
}
}
allprojects {
repositories {
mavenCentral()
}
}
应用程序/的build.gradle:
apply plugin: 'android'
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'
}
ADS现在打开一个新错误:
Cause: org/codehaus/groovy/runtime/typehandling/ShortTypeHandling