hum*_*que 0 android dagger dagger-2 android-studio-3.0
我实现了完整的匕首实现,如添加组件,提供,模块和Inject,最后我面临以下问题,请提出解决方案
Program type already present: dagger.internal.codegen.DaggerStreams$$Lambda$12
Run Code Online (Sandbox Code Playgroud)
这是gradle代码
android {
compileSdkVersion 27
defaultConfig {
applicationId "app.rxjavaexample.com.daggerexample"
minSdkVersion 15
targetSdkVersion 27
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:27.0.2'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
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'
implementation 'com.google.dagger:dagger:2.16'
implementation 'com.google.dagger:dagger-compiler:2.16'
implementation 'com.android.support:design:27.0.2'
annotationProcessor 'com.google.dagger:dagger-compiler:2.16'
implementation 'com.android.support:recyclerview-v7:27.0.2'
}
Run Code Online (Sandbox Code Playgroud)
删除此行:
implementation 'com.google.dagger:dagger-compiler:2.16'
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
154 次 |
| 最近记录: |