Error: uncompiled PNG file passed as argument.

problem description

Android cannot be packaged
/ Users/XXXXXX/XXXXXX/android/app/build/intermediates/res/merged/release/drawable-xhdpi/node_modules_reactnativecalendars_src_calendar_img_previous.png: error: uncompiled PNG file passed as argument. due to problems with packaging. Must be compiled first into .flat file..
error: failed parsing overlays.

the environmental background of the problems and what methods you have tried

the android.enableAapt2=true problem is still unresolved.
has been studying all day, and the problem seems to have something to do with react-native-calendars.
failed to solve the problem after trying

what result do you expect? What is the error message actually seen?

I hope to solve this problem and have been struggling all day. Unable to package

Nov.25,2021

surprise specifically registers to reply to you. Android.enableAapt2=false; should be false, not true

Menu