Open Dev-Wiki opened 5 years ago
project application build gradle config:
apply plugin: 'com.android.application'
apply plugin: 'me.tatarka.retrolambda'
android {
compileSdkVersion 28
defaultConfig {
applicationId "net.devwiki.demo"
minSdkVersion 15
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
// implementation 'com.jakewharton.rxbinding2:rxbinding:2.2.0'
// implementation "com.jakewharton.rxbinding2:rxbinding-appcompat-v7:2.2.0"
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}
if use rxbinding, project compile failed
JakeWharton say :
Remove the Retrolamba plugin–it disables desugaring in D8/R8.
see : https://github.com/JakeWharton/RxBinding/issues/490#event-2041804513
when i add rxbinding2 :
if i remove rxbingding, project work right. how resolve it? thinks~