Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build-bundle without further details #219

Closed
fsodic opened this issue May 11, 2021 · 5 comments
Closed

build-bundle without further details #219

fsodic opened this issue May 11, 2021 · 5 comments

Comments

@fsodic
Copy link

fsodic commented May 11, 2021

Describe the bug
the output just Error: null without any additional inform. And i was search article in Google but no related with my case

Bundletool version(s) affected
Version: 1.6.0

Stacktrace

Error: null
java.lang.NullPointerException
        at java.nio.file.Files.provider(Unknown Source)
        at java.nio.file.Files.notExists(Unknown Source)
        at com.android.tools.build.bundletool.commands.BuildBundleCommand.execute(BuildBundleCommand.java:260)
        at com.android.tools.build.bundletool.BundleToolMain.main(BundleToolMain.java:72)
        at com.android.tools.build.bundletool.BundleToolMain.main(BundleToolMain.java:48)

To Reproduce

java -jar bt.jar build-bundle --modules=zipfile.zip --output=bundle-out.aab

Expected behavior
I want to stick with the build with the command line without using android studio to make it easier. This is the last step (before signing) I've been looking for this whole year.

Environment:
OS: Windows 10 (19042.928).

Additional context
Add any other context about the problem here.

@ymakhno
Copy link

ymakhno commented May 17, 2021

Fixed in 1.6.1.

@ymakhno ymakhno closed this as completed May 17, 2021
@fsodic
Copy link
Author

fsodic commented May 19, 2021

Fixed in 1.6.1.

@ymakhno is v1.6.1 work with -0 ?

android {
    aaptOptions {
        noCompress 'png', 'mp3'
    }
}

My mp3 files still compress and the sound of apps won't play

@ymakhno
Copy link

ymakhno commented May 19, 2021

General answer is yes, it supports uncompressed files.

To investigate further please provide a sample project to reproduce the issue.

@fsodic
Copy link
Author

fsodic commented May 19, 2021

Uploading 20210520-033859.mp4…

The sound still compressed and wan't play 😊

@fsodic
Copy link
Author

fsodic commented May 21, 2021

{
  "compression": {
    "uncompressedGlob": ["res/raw/**", "assets/**.uncompressed"]
  }
}

just add buildconfig
Now, finally i can build from command line ^_^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants