Git Product home page Git Product logo

Comments (9)

kvafy avatar kvafy commented on May 3, 2024

Thank you for reporting this issue.

Bundletool uses temporary files to store intermediate results, so it is possible that the OS performed a clean-up during bundletool execution. Is this a persistent issue or a one-off? Is the system possibly low on disk space?

from bundletool.

yperess avatar yperess commented on May 3, 2024

This happens 100% of the time

from bundletool.

plecesne avatar plecesne commented on May 3, 2024

I believe the issue is that the directory /home/yperess/workspace/myapp/build/outputs/apk/release/ does not exist, so bundletool is unable to write the file there.
Could you confirm?

from bundletool.

plecesne avatar plecesne commented on May 3, 2024

In the lack of follow up, I'll close the issue. Feel free to reopen if it this wasn't what I suggested.

from bundletool.

gerpanobanano avatar gerpanobanano commented on May 3, 2024

I believe the issue is that the directory /home/yperess/workspace/myapp/build/outputs/apk/release/ does not exist, so bundletool is unable to write the file there.
Could you confirm?

@plecesne I had the same issue reported by @yperess.
I just want to confirm that fixing the path in the --output flag made the command to compile and my .apks has been generated.
My mistake was thinking that writing an unexisting folder in the --output flag would automatically create that folder for me.

from bundletool.

plecesne avatar plecesne commented on May 3, 2024

Note that this will be fixed in next version of bundletool.

from bundletool.

tutipeti avatar tutipeti commented on May 3, 2024

Sorry for reviving an old issue - @plecesne could you please confirm that this has indeed been fixed? It seems I'm having the same problem right now with version 1.2.0.

Bundletool failed on our CI but was working fine for me locally, and the only difference I see between the two is that the parent folder doesn't exist yet on CI.

from bundletool.

ymakhno avatar ymakhno commented on May 3, 2024

Yes, it should be fixed already and if output directory doesn't exist you should see in logs the following message "Output directory ... does not exist, creating it."

https://github.com/google/bundletool/blob/master/src/main/java/com/android/tools/build/bundletool/commands/BuildApksCommand.java#L650

from bundletool.

tutipeti avatar tutipeti commented on May 3, 2024

@ymakhno thanks a lot! You made me realise that I'm hijacking the wrong issue here. Bundletool failed for me when creating the aab, not when building the apks. :(

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.