Skip to content
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
This repository was archived by the owner on Feb 26, 2023. It is now read-only.

AGP 3.5.0 - Could not find the AndroidManifest.xml file, using generation folder #2229

@YarikSOffice

Description

@YarikSOffice

Getting the same issue with #2128 using the latest Android Gradle Plugin 3.5.0.

Android Gradle Plugin version: 3.5.0-beta03
AndroidAnnotations version: 4.6.0
Android compile SDK version: 28
build.gradle:

    annotationProcessor "org.androidannotations:androidannotations:4.6.0"
    implementation "org.androidannotations:androidannotations-api:4.6.0"

Stacktrace in case of AA crash:

error: Could not find the AndroidManifest.xml file, using  generation folder [**/build/generated/ap_generated_sources/debug/out])

Temporary Workaround
Add the following code in build.gradle file for each module that uses AA library.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions