使用泄漏金丝雀构建错误

时间:2015-11-24 22:15:40

标签: memory-leaks leakcanary

执行我的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'

}

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

1 个答案:

答案 0 :(得分:1)

设置compileSdkVersion 21.这将使' android:Theme.Material'可用于你的应用程序。