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.

`doctor` reports AndroidSDK path as invalid before build-tools installation

See original GitHub issue

The command reports an error when the Android Sdk path is configured and correct, but build-tools hasn’t been installed yet.

Steps to reproduce the behavior:

  • Install Bubblewrap and download / unzip the Android SDK
  • Configure twa-manifest.json with the correct Android SDK
  • Run Bubblewrap

Expected behavior: doctor reports the Android SDK as correctly configured.

Actual behavior: It reports the Android SDK path is invalid.

OS: MacOS

Additional context doctor is checking for the build-tools directory, but that’s only created / installed after running sdkmanager, which Bubblewrap does automatically. See https://github.com/GoogleChromeLabs/bubblewrap/blob/master/packages/core/src/lib/androidSdk/AndroidSdkTools.ts#L62-L90

@chenlevy24

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
andrebancommented, Sep 23, 2020

@chenlevy24 validatePath() is checking for “tools”, but the error message still says “build-tools”.

There are two errors in @BhautikChudasama’s log. The first seems to come from this code, when validating the JDK path.

@BhautikChudasama if you change the JDK path and Android SDK path to an absolute path, instead of relative to the user home, does it change anything?

Eg:

{
  "jdkPath":"/home/BhautikChudasama/app/jdk8u265-b01/",
  "androidSdkPath":"/home/BhautikChudasama//app/android-cli/"
 }
0reactions
chenlevy24commented, Sep 23, 2020

@BhautikChudasama can you please tell me in which bubblewrap version did you run it?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error after running flutter doctor : Unable to locate Android SDK
1 Answer 1 · Click Tools > SDK Manager. · In the SDK Platforms tab, select Android 10 (29). · In the SDK...
Read more >
How to Fix “Failed to install the following Android SDK ...
Step 1: Navigate to %ANDROID_HOME%/tools/bin . %ANDROID_HOME% is the path to SDK. By default it is located at : C:\Users\UserName\AppData\Local ...
Read more >
Android SDK 29 “unable to install additional SDK platform ...
The simplest way to workaround this issue is to copy or move the Android SDK installed by the Hub to a different path...
Read more >
Throwing error ANDROID_HOME is not set - Appium Discuss
Hello @Pac_Chan , from your logs, it can correctly get the path you have set in your bash_profile, but it says it is...
Read more >
Known issues with Android Studio and Android Gradle Plugin
To fix this issue, upgrade your Android 11 emulator to version 9 or higher by navigating to Tools > SDK Manager. In 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