Git Product home page Git Product logo

Comments (11)

gajendrakumartwinwal avatar gajendrakumartwinwal commented on May 3, 2024 1

No this command is not working but after making below changes it is working fine.

Thanks for such a quick response.
Solved:

Before change:
export ANDROID_HOME=/Users/Gajendra/Library/Android/sdk/platform-tools
export PATH=$PATH:${ANDROID_HOME}

After change:
export ANDROID_HOME=/Users/Gajendra/Library/Android/sdk
export PATH=$PATH:${ANDROID_HOME}/platform-tools

from bundletool.

tdobek avatar tdobek commented on May 3, 2024

Hi Saurabh,

Thanks for reporting the issue.

Could you confirm which adb version are you using ?
And by it happening sometimes - do you mean the Nexus 6P issue sometimes goes away?

Tom

from bundletool.

keyboardsurfer avatar keyboardsurfer commented on May 3, 2024

Your screen density and sdk version captured in the nexus6p.json seem to be off for the device in question.

But the main cause for the error is this line:

List of APKs is empty: the main APK must be specified.

It seems like you've created an empty .apks file.
You can check that there's actual apks in the .apks file by unzipping it.

from bundletool.

saurabhkpatel avatar saurabhkpatel commented on May 3, 2024

@tdobek: Yes, It went away after some time, it seems that problem with the command bundletool get-device-spec.
Anyways, I'll keep an eye on it and report it later if I face the similar issue.

from bundletool.

tdobek avatar tdobek commented on May 3, 2024

We've improved the get-device-spec error handling in 0.4.2, so whenever this issue reoccurs, you should be notified to retry the command. Closing this issue.

from bundletool.

gajendrakumartwinwal avatar gajendrakumartwinwal commented on May 3, 2024

Getting error:
even i have added ANDROID_HOME in enviourment variables

LOG---

> Error: Unable to determine the location of ADB. Please set the --adb flag or define ANDROID_HOME environment variable.
> com.android.tools.build.bundletool.exceptions.CommandExecutionException: Unable to determine the location of ADB. Please set the --adb flag or define ANDROID_HOME environment variable.
> at com.android.tools.build.bundletool.commands.InstallApksCommand.lambda$null$1(InstallApksCommand.java:108)
> at java.util.Optional.orElseThrow(Optional.java:290)
> at com.android.tools.build.bundletool.commands.InstallApksCommand.lambda$fromFlags$2(InstallApksCommand.java:106)
> at java.util.Optional.orElseGet(Optional.java:267)
> at com.android.tools.build.bundletool.commands.InstallApksCommand.fromFlags(InstallApksCommand.java:101)
> at com.android.tools.build.bundletool.commands.InstallApksCommand.fromFlags(InstallApksCommand.java:90)
> at com.android.tools.build.bundletool.BundleToolMain.main(BundleToolMain.java:87)
> at com.android.tools.build.bundletool.BundleToolMain.main(BundleToolMain.java:44)

from bundletool.

plecesne avatar plecesne commented on May 3, 2024

Is adb present in your ANDROID_HOME directory under platform-tools? Also, is it executable?

from bundletool.

gajendrakumartwinwal avatar gajendrakumartwinwal commented on May 3, 2024

Yes it is presented in platform-tools and even i am able to run command
adb devices

Which is working fine

But when i use this with bundletool it does not work.
See the screenshot
screen shot 2018-10-04 at 5 31 55 pm

from bundletool.

plecesne avatar plecesne commented on May 3, 2024

Does running $ANDROID_HOME/platform-tools/adb devices also work?

from bundletool.

gajendrakumartwinwal avatar gajendrakumartwinwal commented on May 3, 2024

No this command is not working but after making below changes it is working fine.

Thanks for such a quick response.
Solved:

Before change:
export ANDROID_HOME=/Users/Gajendra/Library/Android/sdk/platform-tools
export PATH=$PATH:${ANDROID_HOME}

After change:
export ANDROID_HOME=/Users/Gajendra/Library/Android/sdk
export PATH=$PATH:${ANDROID_HOME}/platform-tools

Off the track question but why it is working now?

from bundletool.

plecesne avatar plecesne commented on May 3, 2024

The ANDROID_HOME variable should be set to the path to the root of the Android SDK, not platform-tools or any of the other subdirectories.

from bundletool.

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.