我在我的項目中使用第三方庫,因爲然後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'
請幫我!謝謝!
沒有它並沒有奏效。仍然是相同的警告。 –