1. 程式人生 > >RN 執行打包 ./gradlew assembleRelease 時的報錯和解決

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