I have a react native app which runs properly.But when i try to build apk with the command gradlew assembleRelease
it shows the following error.
Exception in thread "ForkJoinPool.commonPool-worker-1" java.lang.IllegalStateException: AAPT Process manager cannot be shut down while daemons are in use
My png images are fine and already tried invalidate cache/Restart in android studio. But still shows the same error. Tried android.enableAapt2=false
too but seems like its deprecated. Don't know what the problem is.
I'm using:
- Build tool version 28.0.3
- Build Gradle 3.2.1