Exception : Gradle task assembleDebug failed with exit code 1 in Flutter Error

preview_player
Показать описание
Solution 1 : Open Android Studio
Android Studio show Automatically Gradle Update Required simply click Update

Solution 2 : Try with this Command : flutter pub upgrade

Solution 3 :
I had the same problem after cloning a flutter project from github .
It usually happens with projects that were created in other machines.
To fix this on Android Studio on MAC, Follow these steps.

Open your Android Studio preferences ( Command + ) and go to Languages and Frameworks Dart

Check "Enable Dart support for the project your_project_name"

In "Dart SDK path" click in "…" and navigate to flutter SDK directory. Under that directory you'll find "bin cache dart-sdk". This is the dart sdk path you should use.

Click "Apply"

flutter packages get

flutter run
Рекомендации по теме
Комментарии
Автор

Exception has occurred.
_AssertionError
what is the solution

muhammadadilnaeem
Автор

when you don't speak English, why you write your video title in English? at least write ('your language') at the end of the title.

Neman
Автор

how to solve this?


FAILURE: Build failed with an exception.

* What went wrong:
Gradle could not start your build.
> Could not create service of type using
> Timeout waiting to lock file hash cache It is currently in use by another Gradle instance.
Owner PID: 6148

aishikbandyopadhyay
Автор

Process 'command 'C:\flutter\bin\flutter.bat'' finished with non-zero exit value 1 sir This Earror Short out.

HpVideoStatus
Автор

After following this step. My error is not solved.

NishaKumari-tzhi
Автор

bhai problem solve kr hi rhe ho to pura kro na
lauch_background.xml vali file na mile hme toh ..

yashofficial
Автор

No ideo folder found in that android folder

apnaatmos
Автор

BUILD FAILED in 1s
Exception: Gradle task assembleDebug failed with exit code 1 .. not solve so plz any one help

vinaykumargaur
Автор

Exception: Gradle task assembleDebug failed with exit code 1
what is the solution

MohitKumar-srwo
Автор

hi i have one error

Could not open proj generic class cache for build file plz help me

abhijeetsain
Автор

Hello sir ..mjhe ek Problem ho rahi hai Please help me

Vishwajeetsingh
Автор

hi sir I have one error i can’t solve it

ggll
Автор

Pta ni kasy Kar gay ho yr samj hi ni ahi

afaq
Автор

ye error aa rai hai mere ko Execution failed for task > A failure occurred while executing > Compilation error. See log for more details

v.c.s
Автор

why the hak titel english and you speak hindu :/

GigsDz
Автор

This is happen to me most of the time.

jagarajenloganathan