简体   繁体   English

反应本机版本Apk构建错误

[英]React native Release Apk Building Error

I'll build my react native project it build success, but whenever i will try to build release Apk It's give error 我将构建我的React Native项目,它会构建成功,但是每当我尝试构建发行版Apk时,都会出错

error: uncompiled PNG file passed as argument. Must be compiled first into .flat file..

在此处输入图片说明

Try this... 尝试这个...

in your gradle.properties file add these lines 在gradle.properties文件中添加以下行

android.enableAapt2=false

This is the known issue of react-navigation library. 这是react-navigation库的已知问题 As a workaround you need to add this line to gradle.properties file: 解决方法是, gradle.properties添加到gradle.properties文件中:

android.enableAapt2=false

and clean all previous build files using: 并使用以下命令清除所有以前的构建文件:

./gradlew clean

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM