我尝试使用以下build.gradle文件编译一个android项目:
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.6.+'
}
}
apply plugin: 'android'
repositories {
maven {
url 'https://github.com/Goddchen/mvn-repo/raw/master/'
}
mavenCentral()
}
android {
compileSdkVersion 18
buildToolsVersion "18.1.1"
defaultConfig {
minSdkVersion 8
targetSdkVersion 18
}
}
dependencies {
compile 'com.android.support:appcompat-v7:18.0.+'
compile 'com.android.support:support-v4:18.0.+'
compile 'com.google.android.gms:play-services:3.2.+'
compile 'com.facebook.android:facebook:3.5.+'
compile 'com.android:volley:1.0'
compile 'org.jraf:android-switch-backport:1.0'
}
Run Code Online (Sandbox Code Playgroud)
但是这失败了以下错误:
:TestProject:processDebugResources
/home/lukas/apps/Splots_test/apps/TestProject/build/res/all/debug/values/values.xml:1622: error: Error: No resource found that matches the given name: attr 'switchStyle'.
:TestProject:processDebugResources FAILED
FAILURE: Build failed with an exception.
* What went …Run Code Online (Sandbox Code Playgroud) android android-appcompat gradle android-studio android-gradle-plugin