,我试图上传我的Flutter应用程序在Google Play,当我写这个命令flutter build appbundle
我得到的错误,告诉我
我尝试在我的项目中编写此命令来构建grudle.aa文件:flutter build appbandel
,但我得到了这些错误:
Build failed with an exception.
* What went wrong:
Execution failed for task ':app:mergeReleaseResources'.
> Multiple task action failures occurred:
> A failure occurred while executing com.android.build.gradle.internal.res.Aapt2CompileRunnable
> Android resource compilation failed
ERROR: AAPT: com.weenbalaqee.weenbalaqee.app-main-19:/mipmap-mdpi/ic_launcher.png: error: failed to read PNG signature: file does not start with PNG signature.
C:\myfolder\Myproject\android\app\src\main\res\mipmap-mdpi\ic_launcher.png: error: file failed to compile.
> A failure occurred while executing com.android.build.gradle.internal.res.Aapt2CompileRunnable
> Android resource compilation failed
ERROR: AAPT: com.weenbalaqee.weenbalaqee.app-main-19:/mipmap-hdpi/ic_launcher.png: error: failed to read PNG signature: file does not start with PNG signature.
C:\myfolder\Myproject\android\app\src\main\res\mipmap-hdpi\ic_launcher.png: error: file failed to compile.
> A failure occurred while executing com.android.build.gradle.internal.res.Aapt2CompileRunnable
> Android resource compilation failed
ERROR: AAPT: com.weenbalaqee.weenbalaqee.app-main-19:/mipmap-xxhdpi/ic_launcher.png: error: failed to read PNG signature: file does not start with PNG signature.
C:\myfolder\Myproject\android\app\src\main\res\mipmap-xxhdpi\ic_launcher.png: error: file failed to compile.
> A failure occurred while executing com.android.build.gradle.internal.res.Aapt2CompileRunnable
> Android resource compilation failed
ERROR: AAPT: com.weenbalaqee.weenbalaqee.app-main-19:/mipmap-xxhdpi/ic_launcher.png: error: failed to read PNG signature: file does not start with PNG signature.
C:\myfolder\Myproject\android\app\src\main\res\mipmap-xxhdpi\ic_launcher.png: error: file failed to compile.
> A failure occurred while executing com.android.build.gradle.internal.res.Aapt2CompileRunnable
> Android resource compilation failed
ERROR: AAPT: com.weenbalaqee.weenbalaqee.app-main-19:/mipmap-xxxhdpi/ic_launcher.png: error: failed to read PNG signature: file does not start with PNG signature.
C:\myfolder\Myproject\main projects\WeenBlaqe\android\app\src\main\res\mipmap-xxxhdpi\ic_launcher.png: error: file failed to compile.
字符串
1条答案
按热度按时间o7jaxewo1#
似乎你的文件名是ic_launcher.png,但它是手动重命名或通过任何形式,它不是真实的png文件。
查看this网站,您可以使用此工具将所有ic_launcher文件转换为png。