Skip to content
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

Cannot resolve symbol 'GradleException'. \android\app\build.gradle #54939

Closed
PierreSchmits opened this issue Apr 16, 2020 · 3 comments
Closed
Labels
platform-android Android applications specifically tool Affects the "flutter" command-line tool. See also t: labels.

Comments

@PierreSchmits
Copy link

Started new Flutter project in Android Studio and did not change boiler plate code.
Project runs fine in emulator.
Created local GIT depository, selected all files and committed project.
I can explain/solve all errors in Code analysis EXCEPT for this one:

Error:(11, 15) Cannot resolve symbol 'GradleException' (See image below)

Image 1

Local.properties file (See image below)
Image 2

Flutter Doctor output (See Image below)
image 3

The same problem occurs in my customer project as well (same project settings).
I have been breaking my head for some time now but can't figure out what I am doing wrong?

Thanks for your help.

Pierre.

@VladyslavBondarenko
Copy link

Hi @PierreSchmits
I'm not sure is it the solution or rather a workaround - #29608 (comment)

@VladyslavBondarenko VladyslavBondarenko added platform-android Android applications specifically tool Affects the "flutter" command-line tool. See also t: labels. labels Apr 16, 2020
@VladyslavBondarenko VladyslavBondarenko changed the title GradleException error when trying to commit code to local Git. Cannot resolve symbol 'GradleException'. \android\app\build.gradle Apr 16, 2020
@PierreSchmits
Copy link
Author

Hi Vladyslav, Thank you very much for pointing me in this direction. I followed the process and the error is gone. You are right, it is probably a workaround but for now I will just add it to the project manually and hopefully it will be resolved in the future. Cheers, Pierre.

@github-actions
Copy link

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 flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
platform-android Android applications specifically tool Affects the "flutter" command-line tool. See also t: labels.
Projects
None yet
Development

No branches or pull requests

2 participants