本文介绍了错误:未编译的PNG文件作为参数传递.必须先编译成.flat文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在react-native中,我正在尝试根据其说明.但是,当我执行此 ./gradlew assembleRelease 命令时,它显示了此错误.错误详细信息.

In react-native, I am trying to generate signed APK following their instructions. But when I execute this ./gradlew assembleRelease command it shows me this error. Error details.

我的平台:

  • 操作系统:Windows 10
  • 节点:8.9.1
  • npm:5.5.1
  • 反应:16.3.2
  • 本机:0.55

有人可以告诉我,为什么我会收到此错误吗?

Can anybody tell me, why I am getting this error?

我在此处 android/gradle.properties 中添加 android.enableAapt2 = false .显然,我读到这只是一个临时解决方案.没办法用其他解决方案解决吗?

I got a solution here by adding android.enableAapt2=false into android/gradle.properties. Apparently, I read that it's only a temporary solution. No way to solve it with others solutions?

推荐答案

android/gradle.properties

这篇关于错误:未编译的PNG文件作为参数传递.必须先编译成.flat文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-04 11:18