You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 20, 2025. It is now read-only.
Open Android Studio and install recommended version
Build from Android Studio 3, it should ask you to update build tools, do so
Require an image in index.js
Run cd android && ./gradlew assembleRelease
Expected Behavior
The command ./gradlew assembleRelease should not fail.
Actual Behavior
Running ./gradlew assembleRelease when the image is required from the JS fails with:
/Users/almouro/bam/uefa/TestGradle3/android/app/build/intermediates/res/merged/release/drawable-mdpi/image.png: error: uncompiled PNG file passed as argument. Must be compiled first into .flat file.
error: failed parsing overlays.
If the image is not required, the command works fine.
This is due to a bug in /node_modules/react-native/react.gradle file and aapt2 used in Android Studio 3. RN Issue 17967 is a PR that is beign integrated to fix the issue but this fails when using codepush:
Received result Failure[value=org.gradle.initialization.ReportedException: org.gradle.internal.exceptions.LocationAwareException: Circular dependency between the following tasks:
:app:bundleProductionReleaseJsAndAssets
\--- :app:recordFilesBeforeBundleCommandProductionRelease
\--- :app:mergeProductionReleaseResources
\--- :app:bundleProductionReleaseJsAndAssets (*)