`doctor` reports AndroidSDK path as invalid before build-tools installation
See original GitHub issueThe 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
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (3 by maintainers)
Top 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 >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 FreeTop 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
Top GitHub Comments
@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:
@BhautikChudasama can you please tell me in which
bubblewrap
version did you run it?