Problem with find ANDROID_SDK_ROOT
See original GitHub issueIssue Description
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:
- Created 3 years ago
- Comments:5 (1 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
Yes, I have created a local.properties file in remote.
The problem was that explanation’s error saids:
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. ✌🏼