1

进行 gradle 同步时出现泄漏金丝雀错误:

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Material'.

我的构建:

compileSdkVersion 17
buildToolsVersion "21.1.2"

defaultConfig {
    applicationId "com.assistek.ediary"
    minSdkVersion 12
    targetSdkVersion 12
}


dependencies {
compile 'joda-time:joda-time:2.4'
compile 'joda-time:joda-time:2.4'
compile 'joda-time:joda-time:2.2'
compile files('libs/android-support-v13.jar')
compile files('libs/commons-collections-3.2.1.jar')
compile files('libs/commons-lang-2.6.jar')
compile files('libs/commons-net-2.2.jar')
compile files('libs/ksoap2-android-assembly-2.6.0-jar-with-dependencies.jar')
debugCompile 'com.squareup.leakcanary:leakcanary-android:1.3.1'
releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.3.1'

}

这个图书馆的建筑太旧了?

4

1 回答 1

1

设置 compileSdkVersion 21。这将使您的应用程序可以使用“android:Theme.Material”。

于 2015-12-15T19:15:53.647 回答