美文网首页
androidstudio3.0 dagger2 和butt

androidstudio3.0 dagger2 和butt

作者: 特矫情的二表哥 | 来源:发表于2018-05-22 19:04 被阅读0次

    如题:遇到一些错误,我们gradle 应该怎么配置:

         project  build.gradle下
    
    
                         dependencies {
                                classpath 'com.android.tools.build:gradle:3.0.1'
                                classpath 'com.jakewharton:butterknife-gradle-plugin:8.4.0'
                                }
    
    
    
     app   build.gradle 下
                          apply plugin: 'com.android.application'
                          apply plugin: 'com.jakewharton.butterknife'
    
                      dependencies {
    
                                              implementation fileTree(dir: 'libs', include: ['*.jar'])
                                              implementation 'com.android.support:appcompat-v7:26.0.0-beta1'
                                              implementation 'com.android.support.constraint:constraint-layout:1.0.2'
                          
    
    
                                              testImplementation 'junit:junit:4.12'
                                              androidTestImplementation 'com.android.support.test:runner:0.5'
                                              androidTestImplementation 'com.android.support.test.espresso:espresso-core:2.2.2'
    
                                                //dagger
                                              annotationProcessor 'com.google.dagger:dagger-compiler:2.5'
                                                implementation 'com.google.dagger:dagger:2.5'
                                                //    provided 'javax.annotation:jsr250-api:1.0'
                                                provided 'org.glassfish:javax.annotation:10.0-b28'
    
                                          //butterknife
                                              implementation 'com.jakewharton:butterknife:8.4.0'
                                                annotationProcessor 'com.jakewharton:butterknife-compiler:8.4.0'

    相关文章

      网友评论

          本文标题:androidstudio3.0 dagger2 和butt

          本文链接:https://www.haomeiwen.com/subject/edykjftx.html