Dears;
I can build normal APK for my project , But I can't build signed APK , the bellow error Appears;
AAPT2 aapt2-4.1.0-6503028-windows Daemon #4: Unexpected error during compile 'C:\Users\user\AndroidStudioProjects\MgeLast\app\src\main\res\mipmap-xxxhdpi\ic_launcher_round.png', attempting to stop daemon
I've tried to change the launcher icon but still the same problem
and suggestion ?
It is a known issue in 3.2 and 3.3 https://issuetracker.google.com/u/0/issues/117486770#comment17
add to your app gradle:
aaptOptions.cruncherEnabled = false aaptOptions.useNewCruncher = false
This allows build to go past this error.
If you have that drawable file in Drawable
folder then I think its a cache issue.Go to File->Invalidate Cache & Restart
. It will restart the android studio. try to build now.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.