-
Notifications
You must be signed in to change notification settings - Fork 26.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Something is wrong with Gradle #37391
Comments
When you open a .gradle file in a Flutter project, Andropid Studio should display "Open for Editing in Android Studio" on the top right of the window. |
Yess.. When I open it by clicking "Open for Editing in Android Studio" , error is not visible.. |
This is kind of annoying. Will is be resolved soon? |
anyone found solution for this? |
I don't understand exactly the problem, but I think you should start upgrading the plugins version, as suggested by Android Studio:
Gradle plugin should have the same version of Android Studio, 3.5.1 if you're on the latest build, otherwise upgrade it... |
Do you had running flutter doctor ???? i discover some issue |
I have same problem. I get this error because I edit android module without open it first using AS in another tab (Tools -> Flutter -> Open Android module..). Then I have a solution, just restart and kill the chache in your Android Studio (File -> Invalidate Chache / Restart). It fixed for me, I hope you too |
same problem here, it's help me: #29608 2nd solution comment |
I found the solution by updating the Gradle to latest version I think 5.2.X not sure, Flutter by default comes with gradle verstion 4.X.X just updated it to latest version and then found another some Kotlin error apeared after that u can solve it by copying it to Stack Overflow easily and that was pretty much everything. "Just Update gradle and its plugins" |
If it still doesn't work,then check this |
have you solved it? please guide me |
Replace GradleException(...) with FileNotFoundException(..) in the build.gradle in your app directory, the error(Cannot resolve symbol 'GradleException') disappeared in my case |
Did not help in my case. Any kind of exception is having this issue. |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
OKay... Im new to flutter and android studio as well..
Now my problem is,
Say if I'm gonna open a ' New Flutter project ',
The project opens successfully.
but when I go to 'build.gradle' in app directory, It shows 2 errors.
(displayed in the screenshot below..)
and the same error is in 'settings.gradle' file too..
But when i run it, It shows no errors.
I've completed learning basic front end development stuffs, That error did not affect anything when learning those. But I need to clear this error to start connecting flutter with firebase.
flutter doctor - no issues
I think something is wrong with gradle.
Please help !
The text was updated successfully, but these errors were encountered: