【问题标题】:Error building with leak canary使用泄漏金丝雀构建错误
【发布时间】:2015-11-24 22:15:39
【问题描述】:

在进行 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'

}

这个库的构建太旧了?

【问题讨论】:

    标签: memory-leaks leakcanary


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 2016-06-01
      • 2016-02-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-09-04
      相关资源
      最近更新 更多