Git Product home page Git Product logo

Comments (17)

TamilanPeriyasamy avatar TamilanPeriyasamy commented on May 3, 2024 2

@plecesne can't find com.android.bundle.* packages
Did you add any dependencies?

from bundletool.

plecesne avatar plecesne commented on May 3, 2024

The default build task will build the jar without dependencies. For the standalone tool, you want to execute the executableJar task.

from bundletool.

wopeiseqi avatar wopeiseqi commented on May 3, 2024

thank you

from bundletool.

plecesne avatar plecesne commented on May 3, 2024

I just tried the following command and it built successfully.

./gradlew executableJar 

What command are you running? And what exception are you getting? Did you modify the build.gradle?

from bundletool.

aishang5wpj avatar aishang5wpj commented on May 3, 2024

I just tried the following command and it built successfully.

./gradlew executableJar 

What command are you running? And what exception are you getting? Did you modify the build.gradle?

this command worked for me, and I got a jar file bundletool-all.jar in directory bundletool-master/build/libs/.

./gradlew executableJar

but what should I do if I want to debug the project ? I import it into IntelliJ IDEA CE and create an application configuration for it , then I run it , it shows me the message bellow:

Error:(18, 36) java: 程序包com.android.bundle.Targeting不存在
Error:(19, 61) java: 程序包com.android.bundle.Targeting.TextureCompressionFormat不存在
Error:(20, 36) java: 程序包com.android.bundle.Targeting不存在
Error:(27, 38) java: 找不到符号
  符号:   类 TextureCompressionFormatAlias
  位置: 类 com.android.tools.build.bundletool.model.utils.TextureCompressionUtils
Error:(40, 44) java: 找不到符号
  符号:   类 TextureCompressionFormatTargeting
  位置: 类 com.android.tools.build.bundletool.model.utils.TextureCompressionUtils
Error:(53, 7) java: 找不到符号
  符号:   类 TextureCompressionFormatAlias
  位置: 类 com.android.tools.build.bundletool.model.utils.TextureCompressionUtils
Error:(52, 18) java: 找不到符号
  符号:   类 TextureCompressionFormatTargeting
  位置: 类 com.android.tools.build.bundletool.model.utils.TextureCompressionUtils

this is my configuration:

image

what mistakes with my steps ? @plecesne

from bundletool.

plecesne avatar plecesne commented on May 3, 2024

Look at my answer here: #54 (comment)

from bundletool.

aishang5wpj avatar aishang5wpj commented on May 3, 2024

Look at my answer here: #54 (comment)

good answer, still does not help me.

from bundletool.

plecesne avatar plecesne commented on May 3, 2024

Have you added all three source folders in the module? Can you show me a screenshot of how you've configured this?

from bundletool.

aishang5wpj avatar aishang5wpj commented on May 3, 2024

Have you added all three source folders in the module? Can you show me a screenshot of how you've configured this?

sure. here is my configuration, is this right ?

image

from bundletool.

plecesne avatar plecesne commented on May 3, 2024

Make sure java and proto are selected as "Source Folders".

bundletool-project

from bundletool.

aishang5wpj avatar aishang5wpj commented on May 3, 2024

It still doesn't work :(

image
image

from bundletool.

plecesne avatar plecesne commented on May 3, 2024

Yeah, sorry, missing the generated files:

bundletool-main

And for tests, add the source, and add a dependency on main:

bundletool-test0
bundletool-test

from bundletool.

aishang5wpj avatar aishang5wpj commented on May 3, 2024

Yeah, sorry, missing the generated files:

bundletool-main

And for tests, add the source, and add a dependency on main:

bundletool-test0
bundletool-test

Thanks , it worked. In addition to this, there are some places to pay attention to.

  1. source code does not contains build folder, you need run ./gradlew executableJar to generate it.
  2. you must remove all config from bundletool-master first in configuration panel, otherwise you cannot add build folder to main.

image

from bundletool.

plecesne avatar plecesne commented on May 3, 2024

Great, we should add this to the CONTRIBUTING files possibly.
Feel free to send the pull request if you're interested in helping out, otherwise I'll add it at some point myself :)

from bundletool.

aishang5wpj avatar aishang5wpj commented on May 3, 2024

Great, we should add this to the CONTRIBUTING files possibly.
Feel free to send the pull request if you're interested in helping out, otherwise I'll add it at some point myself :)

I am happy to do this, but I am worried that I am not doing well, maybe you are more suitable. LOL

from bundletool.

Shihab-BD avatar Shihab-BD commented on May 3, 2024

@plecesne I tried to run the source also, same "com.android.bundle" package not found. Is it coming from any dependency. Got no idea anyway.

from bundletool.

plecesne avatar plecesne commented on May 3, 2024

Follow the instructions from this thread, in particular make sure you ran gradlew and that you added the generated sources to the source folders.

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.