Comments (11)
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.
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.
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.
@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.
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.
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.
Is adb
present in your ANDROID_HOME
directory under platform-tools
? Also, is it executable?
from bundletool.
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
from bundletool.
Does running $ANDROID_HOME/platform-tools/adb devices
also work?
from bundletool.
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.
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)
- [BUG] Error: Module 'base' is missing mandatory file 'manifest/AndroidManifest.xml'. HOT 1
- Add bundletool to winget
- The App bundle is not a valid zip file HOT 1
- Unable to sign apk HOT 2
- Unable to sign APK due to FileAlreadyExistsException HOT 5
- com.android.tools.build.bundletool.model.exceptions.InvalidBundleException: Invalid dex file indices, expecting file 'classes?.dex' but found 'classes2.dex'. HOT 2
- Does it make the opposite? HOT 1
- the aab upload to Google Play, size counting issue HOT 1
- Error: Module 'base' is missing mandatory file 'manifest/AndroidManifest.xml'. HOT 2
- How does `bundletool build-apks` generate the versionCode for the APKs? HOT 3
- Returns immediately on command line without any info
- Size differs between bundletool and apkanalyzer.
- Unable to install dynamic feature modules with max sdk in manifest
- Set splittypes
- Please ignore
- Option NOT To Sign The APK Even If Debug Keystore Is Present
- Bundletool Package using 2 versions of AAPT2 Proto
- bundletool leaves 100s of KB of META-INF metadata in output APKs
- Bundletool does not recognize `android:installLocation="0"` HOT 1
- Installation of the app failed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bundletool.