GithubHelp home page GithubHelp logo

Comments (6)

Larpon avatar Larpon commented on May 31, 2024

@erich0123 - thanks for your report.

The output of ./vab doctor reveals that it looks like you need to install both platform API level 21 and build-tools 30.0.2 to your SDK located in /home/erich/Android/Sdk/ before you can use them.

These can be installed with:
./vab install "platforms;android-21,build-tools;30.0.2"

If they are already installed, there might be a bug. In that case can you please post the output of:
ls -al /home/erich/Android/Sdk/platforms/
and
ls -al /home/erich/Android/Sdk/build-tools/

from vab.

erich0123 avatar erich0123 commented on May 31, 2024

@Larpon

ls -al /home/erich/Android/Sdk/platforms

total 16
drwxr-xr-x  4 erich erich 4096 Feb 26 12:57 .
drwxr-xr-x 17 erich erich 4096 Feb 26 12:48 ..
drwxrwxr-x  5 erich erich 4096 Feb 26 12:57 android-21
drwxr-xr-x  6 erich erich 4096 Sep 15 19:29 android-30

ls -al /home/erich/Android/Sdk/build-tools/

total 16
drwxr-xr-x  4 erich erich 4096 Feb 26 13:00 .
drwxr-xr-x 17 erich erich 4096 Feb 26 12:48 ..
drwxrwxr-x  5 erich erich 4096 Feb 26 13:00 24.0.3
drwxr-xr-x  6 erich erich 4096 Sep 15 19:27 30.0.2

from vab.

Larpon avatar Larpon commented on May 31, 2024

@erich0123
Thanks. That's highly strange 😄

Your setup seems a bit "exotic" (sdkmanager is out of the SDK) - can you please try and build vab with:
v -d debug_sdk vab.v

Then post the output of:
./vab --list-apis && ./vab --list-build-tools
?

If your setup has the tools split up from the SDK root that might be the reason.
In that case the most "bullet-proof" method would currently be to run:

export ANDROID_SDK_ROOT=/home/erich/Android/Sdk

In your terminal before each session.
The ANDROID_SDK_ROOT env has highest preference when selecting the SDK.

from vab.

erich0123 avatar erich0123 commented on May 31, 2024

@Larpon Thanks, that worked!

Here's the output of ./vab --list-apis && ./vab --list-build-tools

android.sdk.root found by adb in "/usr/lib/android-sdk"
android.sdk.root found SDK in "/usr/lib/android-sdk"
android.sdk.root found by adb in "/usr/lib/android-sdk"
android.sdk.root found SDK in "/usr/lib/android-sdk"
android.sdk.root found by adb in "/usr/lib/android-sdk"
android.sdk.root found SDK in "/usr/lib/android-sdk"
android.sdk.root found by adb in "/usr/lib/android-sdk"
android.sdk.root found SDK in "/usr/lib/android-sdk"
android.sdk.root found by adb in "/usr/lib/android-sdk"
android.sdk.root found SDK in "/usr/lib/android-sdk"
android.sdk.root found by adb in "/usr/lib/android-sdk"
android.sdk.root found SDK in "/usr/lib/android-sdk"
android.sdk.root found by adb in "/usr/lib/android-sdk"
android.sdk.root found SDK in "/usr/lib/android-sdk"
android.sdk.root found by adb in "/usr/lib/android-sdk"
android.sdk.root found SDK in "/usr/lib/android-sdk"
android.sdk.root found SDK in hardcoded paths at "/home/erich/Android/Sdk"
android.sdk.root found SDK in hardcoded paths at "/home/erich/Android/Sdk"
android.sdk.root found SDK in hardcoded paths at "/home/erich/Android/Sdk"
android.sdk.root found SDK in hardcoded paths at "/home/erich/Android/Sdk"
android.sdk.root found SDK in hardcoded paths at "/home/erich/Android/Sdk"
android.sdk.root found SDK in hardcoded paths at "/home/erich/Android/Sdk"
android.sdk.root found SDK in hardcoded paths at "/home/erich/Android/Sdk"
android.sdk.root found SDK in hardcoded paths at "/home/erich/Android/Sdk"
android.sdk.root found SDK in hardcoded paths at "/home/erich/Android/Sdk"
android.sdk.root found SDK in hardcoded paths at "/home/erich/Android/Sdk"
30
29
21
android.sdk.root found by adb in "/usr/lib/android-sdk"
android.sdk.root found SDK in "/usr/lib/android-sdk"
android.sdk.root found by adb in "/usr/lib/android-sdk"
android.sdk.root found SDK in "/usr/lib/android-sdk"
android.sdk.root found by adb in "/usr/lib/android-sdk"
android.sdk.root found SDK in "/usr/lib/android-sdk"
android.sdk.root found by adb in "/usr/lib/android-sdk"
android.sdk.root found SDK in "/usr/lib/android-sdk"
android.sdk.root found by adb in "/usr/lib/android-sdk"
android.sdk.root found SDK in "/usr/lib/android-sdk"
android.sdk.root found by adb in "/usr/lib/android-sdk"
android.sdk.root found SDK in "/usr/lib/android-sdk"
android.sdk.root found by adb in "/usr/lib/android-sdk"
android.sdk.root found SDK in "/usr/lib/android-sdk"
android.sdk.root found by adb in "/usr/lib/android-sdk"
android.sdk.root found SDK in "/usr/lib/android-sdk"
android.sdk.root found SDK in hardcoded paths at "/home/erich/Android/Sdk"
android.sdk.root found SDK in hardcoded paths at "/home/erich/Android/Sdk"
android.sdk.root found SDK in hardcoded paths at "/home/erich/Android/Sdk"
android.sdk.root found SDK in hardcoded paths at "/home/erich/Android/Sdk"
android.sdk.root found SDK in hardcoded paths at "/home/erich/Android/Sdk"
android.sdk.root found SDK in hardcoded paths at "/home/erich/Android/Sdk"
android.sdk.root found SDK in hardcoded paths at "/home/erich/Android/Sdk"
android.sdk.root found SDK in hardcoded paths at "/home/erich/Android/Sdk"
android.sdk.root found SDK in hardcoded paths at "/home/erich/Android/Sdk"
android.sdk.root found SDK in hardcoded paths at "/home/erich/Android/Sdk"
30.0.2
24.0.3

from vab.

Larpon avatar Larpon commented on May 31, 2024

@erich0123 alright thanks for testing this scenario. I'll think about if we should change the order of how SDK paths are detected based on your feedback.

I'll close this issue for now then 🙂

from vab.

ipaz12 avatar ipaz12 commented on May 31, 2024

@erich0123

from vab.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.