question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problem with find ANDROID_SDK_ROOT

See original GitHub issue

Hi,

I have 2 machines:

  • Server Linux Ubuntu with android environment
  • Laptop MacBookPro

when I run ./gradlew build from laptop it connects with ubuntu and start build but crash with this error:

note: I tried to do error instrucctions but does’t work :S

regards and thanks for your help.

MacBook-Pro-de-Santiago:projectAndroid santi$ ./gradlew build

> Configure project :
Here's Mirakle 1.3.2. All tasks will be executed on santiPc.

> Task :executeOnRemote

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':app'.
> SDK location not found. Define location with an ANDROID_SDK_ROOT environment variable or by setting the sdk.dir path in your project's local properties file at '/Users/santi/Desarrollo/android/projectAndroid/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 0s

> Configure project :app
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)

> Task :mirakle FAILED
Total time : 1.316 secs
Task uploadToRemote took: 0.436 secs
Task executeOnRemote took: 0.726 secs
Task downloadFromRemote took: 0.129 secs
4 actionable tasks: 4 executed

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Adambl4commented, May 28, 2020

Yes, local.properties is ignored 'cause there is little chance it will have the same sense for remote machine like for your local one.

I will point to this issue in docs somehow.

1reaction
santiihoyoscommented, May 27, 2020

@santiihoyos how did you fix this issue? I have set this on the mac still having the issue. Did u remove or add local.properties file?

Yes, I have created a local.properties file in remote.

The problem was that explanation’s error saids:

SDK location not found. Define location with an ANDROID_SDK_ROOT environment variable or by setting the sdk.dir path in your project’s local properties file at ‘{MAC_ROUTE_TO_MY_PROJECT}/local.properties’.

And my project already had that file in local project (on mac) but rsync didn’t upload it. I had to create it manually. I think that error explanation should said something like ‘{REMOTE_ROUTE_OF_PROJECT}/local.properties’.

regards and thanks. ✌🏼

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android SDK Root folder not found - Stack Overflow
from your Android Studio go to File > Settings > System Settings > Android SDK > edit then locate your Android SDK from...
Read more >
How to Fix "SDK location not found" in Android Studio?
The most common error related to Android SDK is “SDK location not found“. This message pops up stating that the location of Android...
Read more >
Specify a path to Android SDK root folder - Katalon Docs
By default, the Android SDK root folder is located at ~/.katalon/tools/androidsdk. You can rename or move your Android SDK root folder to another...
Read more >
ERR_SDK_NOT_FOUND: No valid Android SDK root found ...
Version: 1.6.0 Description: I have defined my sdk location using this command on the cmd set ANDROID_SDK_ROOT=D:\Android\sdk set ...
Read more >
Throwing error ANDROID_HOME is not set - Appium Discuss
Original error: Could not find aapt Please set the ANDROID_HOME environment variable with the Android SDK root directory path. (WARNING: The server did...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found