sakibguy / worked-issues

arget medi a[rpescriptionmedicie] &ssets[dr] (reeeverse._ax:p)
2 stars 0 forks source link

[ORG] SG-MYALICE: Execution failed for task ':app:compileFlutterBuildDevDebug' #49

Closed sakibguy closed 2 years ago

sakibguy commented 2 years ago

Problem

FAILURE: Build failed with an exception.

* Where:
Script 'D:\Android\flutter\flutter_windows_3.0.1-stable\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1156

* What went wrong:
Execution failed for task ':app:compileFlutterBuildDevDebug'.
> Process 'command 'D:\Android\flutter\flutter_windows_3.0.1-stable\flutter\bin\flutter.bat'' finished with non-zero exit value 1

* 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 1m 10s
Exception: Gradle task assembleDevDebug failed with exit code 1

Snap

1

sakibguy commented 2 years ago

----FAILED---- Effort 1

https://stackoverflow.com/questions/54552962/flutter-build-error-process-command-e-flutter-apps-flutter-bin-flutter-bat

steps

1- make sure flutter cmd added on env var and working from cmd prompt.

2- from studio -> invalidate caches -> invalidate cache & restart

3- close studio & start again

1

4-flutter clean'

1

didn't work Screenshot (13)

5- flutter pub upgrade --major-versions

Screenshot (14) Screenshot (15)

6- Build and run (studio green button)

Screenshot (16)

7- Studio solution

One or more plugins require a higher Android SDK version.
Fix this issue by adding the following to D:\Android\work\myalice_app\android\app\build.gradle:
android {
  compileSdkVersion 33
  ...
}

upgraded compile target 33

Screenshot (18)

8- flutter upgrade

Screenshot (19)

After cmd ended Screenshot (20)

8- flutter pub get (----SAME ERR----)

Screenshot (21)

sakibguy commented 2 years ago

----FAILED---- Effort 2

Follow same err solution: https://github.com/sakibguy/worked-issues/issues/40#issuecomment-1187187784

srchttps://stackoverflow.com/questions/54552962/flutter-build-error-process-command-e-flutter-apps-flutter-bin-flutter-bat 1- i deleted the pubspec.lock 2- flutter clean 3- flutter pub get

A- Install cmd-line tools by sdk manager B- flutter doctor (ensure all checked) C- flutter doctor --android-licenses

Screenshot (22)

Build & Run failed

Screenshot (23)

sakibguy commented 2 years ago

----FAILED---- Effort 3

https://stackoverflow.com/questions/66136279/how-to-solve-flutter-gradle-and-flutter-bat-errorscript-c-src-flutter-package

WAY1

The solution that worked for me was:

1-Delete pubspec.lock file 2-Do flutter pub get 3-Run the project

And it worked.

Failed Screenshot (24)

WAY2

Maybe this outdated but should help someone.

Yesterday I Just restarted my pc and got this issue. I tried to search for the solution to this problem but nothing works in my case.

Solution

Just delete your flutter folder (Flutter Source) and then reinstall it. Your problem will solve.

sakibguy commented 2 years ago

----FAILED---- Effort 4

https://github.com/flutter/flutter/issues/49507#issuecomment-670560212

sakibguy commented 2 years ago

Alternative solution

1 2

sakibguy commented 2 years ago

Fixed

Commit https://github.com/alice-labs/myalice_app/commit/5bc876323e85d2f7084c7f9818d24e5c0d2910eb