اذهب إلى المحتوى

السؤال

نشر
failure: build failed with an exception. * where: build file 'c:\users\attia with
us\ttabook_app\android\app\build.gradle' line: 77 * what went wrong: could not
compile build file 'c:\users\attia
with us\ttabook_app\android\app\build.gradle'. > startup failed: build file 'c:\users\attia with
us\ttabook_app\android\app\build.gradle': 77: expecting '}', found '' @ line 77, column 1. 1 error
* 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 26s running gradle
task 'assemblerelease'... 29.0s gradle task assemblerelease failed with exit code 1

ما الحل

أريد أستخراج ملف apk لرفعه علي جوجل بلاي 

Recommended Posts

  • 1
نشر

يمكننا إلغاء التحقق من تطابق نوع الملف مع المحتوى الفعلي للصورة بإضافة:

أرفقت 4 طرق للحل، كل منها لإصدار gradle مختلف، ..

apps's build.gradle =>

android {
    …
    buildTypes {
        release {
            crunchPngs false // or true            هذه
        }
    }
}

أو

android {
 ...
  aaptOptions {  
      cruncherEnabled = false  
  } 
}

 

أو

android {
...
  aaptOptions {
    useNewCruncher false
  }
....
}


أو

android {
    ...
    aaptOptions.useAaptPngCruncher = false
}

 

  • 0
نشر
بتاريخ 11 ساعات قال Wael Aljamal:

يقول الخطأ أن هنالك قوس ناقص بمكان الخطأ expecting '}', found '' @ line 77

ماهو السطر 77?

المشكلة فقط قوس ناقص في الملف build.gradle تأكدي من كتابته بطريقة سليمة

Building with sound null safety

Parameter format not correct -

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

        AAPT: C:\Users\Attia With Us\ttabook_app\android\app\src\main\res\mipmap-hdpi\ic_launcher.png: error: failed to read PNG signature: file does not start with PNG signature.

        C:\Users\Attia With Us\ttabook_app\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.tasks.Workers$ActionFacade     

      > Android resource compilation failed

        AAPT: C:\Users\Attia With Us\ttabook_app\android\app\src\main\res\mipmap-xhdpi\ic_launcher.png: error: failed to read PNG signature: file does not start with PNG signature.

        C:\Users\Attia With Us\ttabook_app\android\app\src\main\res\mipmap-xhdpi\ic_launcher.png: error:

file failed to compile.

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

      > Android resource compilation failed

        AAPT: C:\Users\Attia With Us\ttabook_app\android\app\src\main\res\mipmap-xxhdpi\ic_launcher.png:

error: failed to read PNG signature: file does not start with PNG signature.

        C:\Users\Attia With Us\ttabook_app\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.tasks.Workers$ActionFacade     

      > Android resource compilation failed

        AAPT: C:\Users\Attia With Us\ttabook_app\android\app\src\main\res\mipmap-xxxhdpi\ic_launcher.png: error: failed to read PNG signature: file does not start with PNG signature.

        C:\Users\Attia With Us\ttabook_app\android\app\src\main\res\mipmap-xxxhdpi\ic_launcher.png: error: file failed to compile.

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

      > Android resource compilation failed

        AAPT: C:\Users\Attia With Us\ttabook_app\android\app\src\main\res\mipmap-mdpi\ic_launcher.png: error: failed to read PNG signature: file does not start with PNG signature.

        C:\Users\Attia With Us\ttabook_app\android\app\src\main\res\mipmap-mdpi\ic_launcher.png: 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 2m 20s

Running Gradle task 'assembleRelease'... 143.4s

Gradle task assembleRelease failedwith exit code 1

دا اللي ظهر

انضم إلى النقاش

يمكنك أن تنشر الآن وتسجل لاحقًا. إذا كان لديك حساب، فسجل الدخول الآن لتنشر باسم حسابك.

زائر
أجب على هذا السؤال...

×   لقد أضفت محتوى بخط أو تنسيق مختلف.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   جرى استعادة المحتوى السابق..   امسح المحرر

×   You cannot paste images directly. Upload or insert images from URL.

  • إعلانات

  • تابعنا على



×
×
  • أضف...