kezong / fat-aar-android

A gradle plugin that merge dependencies into the final aar file works with AGP 3.+

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Supporting AGP 4.2.0-alpha07+

powerserg17-bunch opened this issue · comments

Describe the issue
AGP version 4.2.0-alpha07+ fails with

Execution failed for task ':sdk-android:processReleaseManifest'.
> java.io.FileNotFoundException: /Users/powerserg/merging/sdk-android/build/intermediates/library_manifest/release/AndroidManifest.xml (No such file or directory)

AndroidManifest.xml is found in${mProject.buildDir.path}/intermediates/merged_manifest/${mVariant.name}/AndroidManifest.xml instead of ${mProject.buildDir.path}/intermediates/library_manifest/${mVariant.name}/AndroidManifest.xml.

Copying the entire plugin into buildSrc and manually changing the manifestOutput completely fixes the issue.
Found this issue, not sure if that's related, unfortunately I don't have supporting references to the changes in the AGP to tell that my solution is 100% appropriate. Please advise. Thank you.

Build Environment

  • Operating System: MacOS
  • Gradle Plugin Version: 4.2.0-beta06
  • Gradle Version: 6.7.1
  • Fat-aar Version: 1.3.5

Good job, Thanks for feedback.
This is not a big change, I hope you can pull request for this issue.