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

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()
                ]
            }
        }
    }

Activity

  1. dodgex commented on May 30, 2019

    @dodgex
    Member

    I opened a PR to support current beta and alpha versions of AGP.

  2. prathamApp commented on Aug 30, 2019

    @prathamApp

    Same here. Not working for 3.5.0 but fortunately for 3.4.2

  3. WonderCsabo commented on Sep 1, 2019

    @WonderCsabo
    Member

    The fix is now available in the 4.7.0-SNAPSHOT build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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