首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Android dagger 2不能在android studio 4.1中生成

Android dagger 2不能在android studio 4.1中生成
EN

Stack Overflow用户
提问于 2020-10-29 20:18:59
回答 1查看 153关注 0票数 0

粗体:这是我的Gradle配置,当我尝试使用android模拟器构建我的项目时,我没有捕捉到这个错误,这对我来说非常恼火,我不得不为这个问题做一些研发,就像有些人说使用falt而不是注释处理器,我也这样做了,但问题仍然没有解决。我正在使用android studio 4.1,试图找出注释处理器选项,但不会走运,所以请帮助解决这个问题,感谢很多开源社区。

click here for image

代码语言:javascript
复制
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-android'
apply plugin: 'com.google.gms.google-services'


android {

    compileSdkVersion 28
    defaultConfig {
        applicationId "org.rtspplr.app"
        minSdkVersion 21
        targetSdkVersion 28
        versionCode 106
        // Previous version svn+ssh://svn@52.0.53.255/RTSP/projects/android/MediaPlayer
        // last version which published on PlayMarket 4.4.3
        versionName "4.4.49"
        setProperty("archivesBaseName", "VXG_RTSPPlayer_$versionName-vc$versionCode")

        ndk {
            abiFilters 'x86', 'x86_64' , 'armeabi-v7a', 'arm64-v8a'
        }
        
    }

    signingConfigs {
        debug {
            storeFile file("../../signing_key/Debug/debug.keystore.jks") // need for develop google map
            keyAlias 'alias_name'
            keyPassword 'remember.me.again'
            storePassword 'remember.me'
        }
        release {
            storeFile project.file("../../signing_key/RTSPPlayer/sign/rtspplayer-release-key.keystore")
            storePassword 'remember.me'
            keyAlias 'alias_name'
            keyPassword 'remember.me.again'
            v1SigningEnabled true
            v2SigningEnabled true
        }
    }

    buildTypes {
        debug {
            buildConfigField "boolean", "IS_DEBUG", "true" // Had issues with BuildConfig.DEBUG, created IS_DEBUG to ensure functionality behaved as expected.
            minifyEnabled false
            multiDexEnabled true
            debuggable true
        }

        release {
            buildConfigField "boolean", "IS_DEBUG", "false"
            minifyEnabled false
            multiDexEnabled true
            debuggable false
            signingConfig signingConfigs.release
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }

/*  
    splits {
        abi {
            enable true
            reset()
            include 'armeabi-v7a'
            universalApk false
        }
    }
*/


    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
}

dependencies {

    implementation 'com.google.android.gms:play-services-ads:17.0.0'
    implementation 'androidx.legacy:legacy-support-v13:1.0.0'
    implementation 'androidx.appcompat:appcompat:1.1.0-alpha03'
    implementation 'com.google.android.material:material:1.1.0-alpha04'
    implementation 'com.jakewharton:butterknife:10.0.0'
    annotationProcessor 'com.jakewharton:butterknife-compiler:10.0.0'
    implementation 'androidx.annotation:annotation:1.1.0-alpha02'
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'androidx.constraintlayout:constraintlayout:2.0.0-alpha3'

    androidTestImplementation 'androidx.test:runner:1.1.2-alpha02'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0-alpha02'
    implementation 'androidx.recyclerview:recyclerview:1.1.0-alpha03'
    implementation project(':data')
    implementation project(':logic')
    implementation project(':add_cloud_camera')
    implementation project(':textinputs')
    implementation 'com.google.dagger:dagger:2.28'
    annotationProcessor 'com.google.dagger:dagger-compiler:2.28'
    implementation 'com.vxg.cloudsdk:cloudsdk:2.0.202'

    implementation 'com.github.bumptech.glide:glide:4.11.0'
    annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'
    implementation 'com.squareup.picasso:picasso:2.71828'
    //implementation project(':CloudSDK')
    //implementation 'io.vxg.media:components:2.0.112-alpha01'


    //implementation 'androidx.cardview:cardview:1.0.0'

    implementation 'io.reactivex.rxjava2:rxandroid:2.0.2'
    implementation "io.reactivex.rxjava2:rxjava:2.1.9"
    implementation 'com.google.code.gson:gson:2.8.5'

    implementation 'androidx.appcompat:appcompat:1.0.0-beta01'
    implementation 'androidx.legacy:legacy-support-v4:1.0.0-beta01'
    implementation 'com.google.android.gms:play-services-maps:17.0.0'
    implementation 'com.google.android.gms:play-services-location:17.0.0'
    implementation 'com.google.maps.android:android-maps-utils:0.4.4'
    //implementation 'commons-validator:commons-validator:1.6'
    implementation 'com.google.firebase:firebase-core:17.4.2'
    implementation 'com.google.firebase:firebase-messaging:20.2.0'
    implementation 'com.firebase:firebase-jobdispatcher:0.8.5'
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"

}
repositories {
    mavenCentral()
}
EN

回答 1

Stack Overflow用户

发布于 2021-05-28 22:28:23

File ->项目结构android SDK Location -> JDK Location ->选择您本地的jdk,而不是位于android studio中的jre。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/64590982

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档