• 1400/10/30

مشکل هنگام خروجی :

سلام موقع خروجی گرفتن این ارور ها رو میده 

 

FAILURE: 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.tasks.Workers$ActionFacade        

     > Android resource compilation failed

       C:\Users\Mascom\Desktop\saad_app\android\app\src\main\res\mipmap-hdpi\ic_launcher.png: AAPT: error: failed to read PNG signature: file does not start with PNG signature.

 

       C:\Users\Mascom\Desktop\saad_app\android\app\src\main\res\mipmap-hdpi\ic_launcher.png: AAPT: error: file failed to compile.

 

  > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade        

     > Android resource compilation failed

       C:\Users\Mascom\Desktop\saad_app\android\app\src\main\res\mipmap-xhdpi\ic_launcher.png: AAPT: error: failed to read PNG signature: file does not start with PNG signature.

 

       C:\Users\Mascom\Desktop\saad_app\android\app\src\main\res\mipmap-xhdpi\ic_launcher.png: AAPT: error: file failed to compile.

 

  > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade        

     > Android resource compilation failed

       C:\Users\Mascom\Desktop\saad_app\android\app\src\main\res\mipmap-xxhdpi\ic_launcher.png: AAPT: error: failed to read PNG signature: file does not start with PNG signature.

 

       C:\Users\Mascom\Desktop\saad_app\android\app\src\main\res\mipmap-xxhdpi\ic_launcher.png: AAPT: error: file failed to compile.

 

  > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade        

     > Android resource compilation failed

       C:\Users\Mascom\Desktop\saad_app\android\app\src\main\res\mipmap-xxxhdpi\ic_launcher.png: AAPT: error: failed to read PNG signature: file does not start with PNG signature.

 

       C:\Users\Mascom\Desktop\saad_app\android\app\src\main\res\mipmap-xxxhdpi\ic_launcher.png: AAPT: error: file failed to compile.

 

  > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade        

     > Android resource compilation failed

       C:\Users\Mascom\Desktop\saad_app\android\app\src\main\res\mipmap-mdpi\ic_launcher.png: AAPT: error: failed to read PNG signature: file does not start with PNG signature.

 

       C:\Users\Mascom\Desktop\saad_app\android\app\src\main\res\mipmap-mdpi\ic_launcher.png: AAPT: error: file failed to compile.

 

 

* Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

 

* Get more help at https://help.gradle.org

 

BUILD FAILED in 28s

Running Gradle task 'assembleRelease'...                           31.2s

Gradle task assembleRelease failed with exit code 1

PS C:\Users\Mascom\Desktop\saad_app>  

 

Session contents restored from 1/20/2022 at 12:57:38 AM  

 

Copyright (C) Microsoft Corporation. All rights reserved.

 

Try the new cross-platform PowerShell https://aka.ms/pscore6

 

PS C:\Users\Mascom\Desktop\saad_app> flutter build apk --release

 

Building with sound null safety  

 

 

FAILURE: 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.tasks.Workers$ActionFacade        

     > Android resource compilation failed

       C:\Users\Mascom\Desktop\saad_app\android\app\src\main\res\mipmap-hdpi\ic_launcher.png: AAPT: error: failed to read PNG signature: file does not start with PNG signature.

 

       C:\Users\Mascom\Desktop\saad_app\android\app\src\main\res\mipmap-hdpi\ic_launcher.png: AAPT: error: file failed to compile.

 

  > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade        

     > Android resource compilation failed

       C:\Users\Mascom\Desktop\saad_app\android\app\src\main\res\mipmap-xhdpi\ic_launcher.png: AAPT: error: failed to read PNG signature: file does not start with PNG signature.

 

       C:\Users\Mascom\Desktop\saad_app\android\app\src\main\res\mipmap-xhdpi\ic_launcher.png: AAPT: error: file failed to compile.

 

  > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade        

     > Android resource compilation failed

       C:\Users\Mascom\Desktop\saad_app\android\app\src\main\res\mipmap-xxhdpi\ic_launcher.png: AAPT: error: failed to read PNG signature: file does not start with PNG signature.

 

       C:\Users\Mascom\Desktop\saad_app\android\app\src\main\res\mipmap-xxhdpi\ic_launcher.png: AAPT: error: file failed to compile.

 

  > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade        

     > Android resource compilation failed

       C:\Users\Mascom\Desktop\saad_app\android\app\src\main\res\mipmap-xxxhdpi\ic_launcher.png: AAPT: error: failed to read PNG signature: file does not start with PNG signature.

 

       C:\Users\Mascom\Desktop\saad_app\android\app\src\main\res\mipmap-xxxhdpi\ic_launcher.png: AAPT: error: file failed to compile.

 

  > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade        

     > Android resource compilation failed

       C:\Users\Mascom\Desktop\saad_app\android\app\src\main\res\mipmap-mdpi\ic_launcher.png: AAPT: error: failed to read PNG signature: file does not start with PNG signature.

 

       C:\Users\Mascom\Desktop\saad_app\android\app\src\main\res\mipmap-mdpi\ic_launcher.png: AAPT: error: file failed to compile.

 

 

* Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

 

* Get more help at https://help.gradle.org

 

BUILD FAILED in 4m 11s

Running Gradle task 'assembleRelease'...                          257.6s

Gradle task assembleRelease failed with exit code 1

  • 1400/10/30
  • ساعت 12:48

سلام دوست گلم ، احتمالا آیکون هارو اشتباه ریختی داره به آیکون ها گیر میده !

یا مسیرشو اشتباه ریختی یا فرمت عکسا خرابه !

مسیر باید به عنوان مثل این شکلی باشه : 

C:\Users\Mohammad\Desktop\todo_app\android\app\src\main\res

فرمت عکسا هم png باشه !


logo-enamadlogo-samandehi