我在我的项目中使用第三方库,因为然后proguard发给我这些警告,我不能涉及该库,这里是我使用的库:Lollipin。如何解决这些proguard警告
警告我越来越
Warning:android.databinding.DataBindingUtil: can't find referenced class android.databinding.DataBinderMapper
Warning:android.databinding.ViewDataBinding: can't find referenced class android.databinding.DataBinderMapper
Warning:there were 43 unresolved references to classes or interfaces.
Warning:Exception while processing task java.io.IOException: Please correct the above warnings first.
我已经试过?
我已经编辑proguard-rules.pro
这样的:
-keeppackagenames com.github.orangegangsters.lollipin
仍然没有去!我也试图清理和重建也没有解决的项目。
这里的build.gradle:
apply plugin: 'com.android.application'
android {
compileSdkVersion 24
buildToolsVersion '24.0.2'
defaultConfig {
applicationId "com.example.teach"
minSdkVersion 15
targetSdkVersion 24
versionCode 27
versionName "5.0"
}
buildTypes {
release {
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:24.2.1'
compile('com.mikepenz:materialdrawer:[email protected]') {
transitive = true
}
compile ('com.github.orangegangsters:lollipin:[email protected]') {
transitive = true
}
compile 'com.google.android.gms:play-services-ads:9.6.0'
}
apply plugin: 'com.google.gms.google-services'
请帮我!谢谢!
没有它并没有奏效。仍然是相同的警告。 –