how to fix Android Annotations 4.6.0 compile with android Studio 3.5 and 3.5.0 gradle

Mohammed Hemaid :

I updated Android studio to 3.5 but there is a problem when I use android annotations

Gradle may disable incremental compilation as the following annotation processors are not incremental: jetified-androidannotations-4.6.0.jar (org.androidannotations:androidannotations:4.6.0).
Consider setting the experimental feature flag android.enableSeparateAnnotationProcessing=true in the gradle.properties file to run annotation processing in a separate task and make compilation incremental

I've put android.enableSeparateAnnotationProcessing=true in the gradle.properties file

Here is a Gradel app Here is a Grade build

but it's say that

INFO: The option setting 'android.enableSeparateAnnotationProcessing=true' is experimental and unsupported. The current default is 'false'.

Could not find the AndroidManifest.xml file

Mojtaba :

I had almost the same problem and couldn't build my app after updating android studio and gradle to 3.5 but according to this answer I added this to my defaultConfig{} in app gradle and problem solved!

javaCompileOptions {
        annotationProcessorOptions {
            arguments = [
                    "androidManifestFile": "$projectDir/src/main/AndroidManifest.xml".toString()
            ]
        }
    }

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=139294&siteId=1