Android dagger 2未在Android studio 4.1中生成

Android dagger 2未在Android studio 4.1中生成,android,android-studio,dagger-2,Android,Android Studio,Dagger 2,Bold:这是我的Gradle配置,当我尝试使用android emulator构建我的项目时,而不是捕捉到这个错误,这对我来说非常烦人。我必须针对这个问题进行一些研发,就像有些人说使用falt而不是注释处理器一样。我也这样做,但问题仍然没有解决。我正在使用AndroidStudio4.1试图找到注释处理器选项,但不需要运气,所以请帮助解决这个问题,感谢许多开源社区 文件->项目结构->SDK位置->JDK位置->选择您的本地JDK而不是android studio中的jre。您应该使用kap

Bold:这是我的Gradle配置,当我尝试使用android emulator构建我的项目时,而不是捕捉到这个错误,这对我来说非常烦人。我必须针对这个问题进行一些研发,就像有些人说使用falt而不是注释处理器一样。我也这样做,但问题仍然没有解决。我正在使用AndroidStudio4.1试图找到注释处理器选项,但不需要运气,所以请帮助解决这个问题,感谢许多开源社区


文件->项目结构->SDK位置->JDK位置->选择您的本地JDK而不是android studio中的jre。

您应该使用
kapt
(Kotlin annotation processor)而不是
annotationProcessor
我已经使用了kapt,但仍然存在相同的错误。
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()
}