RN 执行打包 ./gradlew assembleRelease 时的报错和解决

报错1: 

/android/app/build/intermediates/res/merged/android_wqbook/release/drawable-xhdpi/node_modules_reactnavigation_src_views_assets_backicon.png:
 error: uncompiled PNG file passed as argument. Must be compiled first into .flat file

解决方案1 : 增加 gradle.properties 

org.gradle.configureondemand=true

记得 

cd android

./gradlew clean

其他解决方案:

https://www.jianshu.com/p/5f7aaeb54af0

猜你喜欢

转载自blog.csdn.net/qhexin/article/details/83348836
RN