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

build failure on my machine #2

Closed
michielbdejong opened this issue Mar 21, 2024 · 2 comments
Closed

build failure on my machine #2

michielbdejong opened this issue Mar 21, 2024 · 2 comments

Comments

@michielbdejong
Copy link
Member

I get this:

michiel-2:Android-Solid-Services michiel$ ./gradlew assembleDebug
Downloading https://services.gradle.org/distributions/gradle-8.2-bin.zip
............10%............20%............30%.............40%............50%............60%............70%.............80%............90%............100%

Welcome to Gradle 8.2!

Here are the highlights of this release:
 - Kotlin DSL: new reference documentation, assignment syntax by default
 - Kotlin DSL is now the default with Gradle init
 - Improved suggestions to resolve errors in console output

For more details see https://docs.gradle.org/8.2/release-notes.html

Starting a Gradle Daemon (subsequent builds will be faster)

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
> Could not determine the dependencies of null.
   > SDK location not found. Define a valid SDK location with an ANDROID_HOME environment variable or by setting the sdk.dir path in your project's local properties file at '/Users/michiel/gh/pondersource/Android-Solid-Services/local.properties'.

* 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 21s

Should I download https://developer.android.com/studio ?

@michielbdejong
Copy link
Member Author

Ah, https://stackoverflow.com/a/19986294/680454 was useful. I'm now going through the Android Studio setup wizard, and then I'll try:

export ANDROID_HOME=/Users/{YOUR_USER_NAME}/Library/Android/sdk

@michielbdejong
Copy link
Member Author

OK, problem fixed!

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

1 participant