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

SDK location not found. #50

Closed
HetalGohil opened this issue Dec 30, 2020 · 3 comments
Closed

SDK location not found. #50

HetalGohil opened this issue Dec 30, 2020 · 3 comments

Comments

@HetalGohil
Copy link

when i added this plugin it is giving error below:

FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring root project 'app_review'.

SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.

  • 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 6s

Exception: The plugin app_review could not be built due to the issue above.

@fartem
Copy link

fartem commented Jan 19, 2021

@HetalGohil What version of Gradle plugin (in build.gradle root file) are you using?

@alexobviously
Copy link

alexobviously commented Feb 19, 2021

I'm also getting this error as of today. My project was building just fine yesterday, but it's possible that I got a new version with pub upgrade.

edit: fixed this by using a new gradle wrapper vesion
for anyone else seeing this, go to android/app/gradle/wrapper/gradle-wrapper.properties and find a line that looks like:
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip and change 5.6.2 to 6.8.2 or whatever the newest version is, and also change the version in build.gradle (classpath 'com.android.tools.build:gradle:4.1.0' worked for me)

@rodydavis
Copy link
Member

issue not specific to this plugin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants