You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I want to run "set ANDROID_HOME = $(bamboo.ANDROID_HOME) gradlew writeProjectInfo" script in a task bu I got "SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable." error. I write "sdk.dir = C=\\Users\\myName\\AppData\\Local\\Android\\Sdk" in my local.properties file in my project bu it does not worked. What is the reason if this error? How can I fix?
While writing a programme or setting up a project, there may be a lot of errors in the code. For example, the path to the project's local.properties file is not set.
The file Local.properties is missing from the project folder, and your sdk path is not configured in an environment variable.
This error message can also be caused by several lines in the local.properties file. Refer to https://kodlogs.net/330/sdk-location-not-found-define-location-with-sdk-dir-in-the-local-properties#why
set ANDROID_HOME = $(bamboo.ANDROID_HOME) gradlew writeProjectInfoI'm asking that because there is a mix between Windows and Linux way of treating variables. Windows variables should be evaluated like:
%BAMBOO_<MY_VAR>%so on a windows agents it would be:
set ANDROID_HOME = %BAMBOO_ANDROID_HOME% gradlew writeProjectInfo
sdk.dir = C:/Users/myName/AppData/Local/Android/SdkJava applications usually interpret forward slashes as path separators too and this will save you from using extra characters. It was also strange to me that you had a an equal sign "=" instead of a colon ":", maybe just a typo.
Please notice that I'm not an expert on gradle, but I'm trying to give you some tips so you can move on.