1

I'm attempting to generate a signed APK for my react-native project. I've received the error message error: "uncompiled PNG file passed as argument. Must be compiled first into .flat file.."

How do I resolve this issue? I've looked at this question and have also tried adding android.enableAapt2=false to the gradle-wrapper.properties file.

I have also tried manually creating a debug build as instructed here:

Finally, I noticed that there's a key component missing in the rn documentation

The first step is to

keytool -genkey -v -keystore my-release-key.keystore -alias my-key-alias -keyalg RSA -keysize 2048 -validity 10000

However, I did not see anywhere about specifying the location for the my-release-key.keystore file. I was not able to get this to work until I used

keytool -genkey -v -keystore d:\my_private_key.keystore -alias my_key_alias -keyalg RSA -keysize 2048 -validity 10000
VK1
  • 1,676
  • 4
  • 28
  • 51

1 Answers1

0
android.enableAapt2=false

should be placed inside gradle.properties NOT gradle-wrapper.properties!

VK1
  • 1,676
  • 4
  • 28
  • 51