UE 5.6 Android package error,Caused by: java.lang.IllegalStateException: can’t find target file AndroidManifest file://Intermediate/Android/arm64/gradle/app/build/intermediates/merged_manifests/debug/AndroidManifest.xml, but the androidmanifest file is already here in ../merged_manifests/debug/processDebugMainManifest/AndroidManifest.xml
Hello there @user_f042d1e692ad4d77a2bccdc1b54937d1cfa22344e4e45ebcd8e260 !
Considering the lines included in your log:
file://Intermediate/Android/arm64/gradle/app/build/intermediates/merged_manifests/debug/AndroidManifest.xml
…/merged_manifests/debug/processDebugMainManifest/AndroidManifest.xml
This means your build is looking for AndroidManifest.xml in the wrong location, thus creating a conflict. The logical solution would be to either modify the gradle script to look for the correct location, or simply copy the file to the location the build is expecting.
Other possible causes relate to components versions, or cache conflicts. Please check the following:
- Check Engine/Build/Android/Java/gradle/wrapper/gradle-wrapper.properties
- Verify the proper Android Gradle Plugin version in build.gradle, then try regenerating project files
- To clear your cache, delete entire Intermediate/Android and Binaries/Android folders. After that, rebuild your solution