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.

Buck can't find ANDROID_SDK even though it's set

See original GitHub issue

I’m following the Android version of the getting started guide and I’m having trouble. I just built buck from source, but then when I try to build the Android sample it fails saying I need to set ANDROID_SDK. The problem is I already have that set. Pretty confused about what could be happening.

Let me know if you need more info.

$ git clone https://github.com/fbsamples/bucksamples.git
Cloning into 'bucksamples'...
remote: Counting objects: 499, done.
remote: Total 499 (delta 0), reused 0 (delta 0), pack-reused 499
Receiving objects: 100% (499/499), 969.56 KiB | 739.00 KiB/s, done.
Resolving deltas: 100% (138/138), done.
$ cd bucksamples/cross-platform-scale-2015-demo/
$ buck build demo_app_android
Using watchman.
[-] PROCESSING BUCK FILES...FINISHED 0.1s [100%] 🐳  New buck daemon
[+] DOWNLOADING... (0.00 B/S, TOTAL: 0.00 B, 0 Artifacts)
[+] BUILDING...1.1s [42%] (6/14 JOBS, 5 UPDATED, 3 [21.4%] CACHE MISS)
 |=> IDLE
 |=> IDLE
 |=> IDLE
 |=> IDLE
 |=> IDLE
 |=> IDLE
 |=> IDLE
 |=> IDLE
BUILD FAILED: Must set ANDROID_SDK to point to the absolute path of your Android SDK directory.
$ echo $ANDROID_SDK
/usr/local/Cellar/android-sdk/24.1.1_1
$

It even shows that it found it in the log from that run:

buck-out//log/buck-1.log:[2017-01-13 11:42:12.434][debug][command:48c30408-7d14-41ff-8a52-ea09260d3488][tid:44][com.facebook.buck.json.ProjectBuildFileParser] Starting buck.py command: [...] ANDROID_SDK=/usr/local/Cellar/android-sdk/24.1.1_1 [...]

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
sdwilshcommented, Jan 13, 2017

No problem. My usual trick is to ls $ANDROID_SDK and that will fail if it’s the wrong path 😃

0reactions
JoelMarceycommented, Jan 13, 2017

@bishopmatthew Ah – I didn’t notice that either. Good catch!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Flutter does not find android sdk - Stack Overflow
If you don't find the proper SDK path then,. Open Android Studio; Go to Tools; Go to SDK Manager; You will find the...
Read more >
Unity can't find Android SDK
In Android Studio in the SDK manager the path to the SDK is listed under D:\Programs\AndroidSDK2, I copied the path into Unity but...
Read more >
Buck: .buckconfig
This specifies the absolute path to the Android SDK that all Android code in the project should be built against. The default is...
Read more >
Set up the Android 12 SDK
Install the SDK · Click Tools > SDK Manager. · In the SDK Platforms tab, select Android 12. · In the SDK Tools...
Read more >
How to Set Up a New Android Tablet - aslanpelet.com
Tablet manufacturers may add custom set up options with ... Fire Tablet How to Get Google Assistant for PC How to Install the...
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