My react-native project has a 10mb image that I import through “require” with TypeScript.
When building the Android package, an error occurs with message:
> Task :app:mergeReleaseResources
AAPT2 aapt2-8.2.1-10154469-windows Daemon #1 Failed to shutdown within timeout
java.util.concurrent.TimeoutException: AAPT2 aapt2-8.2.1-10154469-windows Daemon #1: Failed to shut down within 30 seconds. Forcing shutdown
I think this problem is caused by the large size of the picture. Is there any good solution?
There are ways to get rid of the resource file size limit or there are better ways to solve this problem