Comments (17)
@plecesne can't find com.android.bundle.* packages
Did you add any dependencies?
from bundletool.
The default build task will build the jar without dependencies. For the standalone tool, you want to execute the executableJar
task.
from bundletool.
thank you
from bundletool.
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.
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:
what mistakes with my steps ? @plecesne
from bundletool.
Look at my answer here: #54 (comment)
from bundletool.
Look at my answer here: #54 (comment)
good answer, still does not help me.
from bundletool.
Have you added all three source folders in the module? Can you show me a screenshot of how you've configured this?
from bundletool.
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 ?
from bundletool.
Make sure java
and proto
are selected as "Source Folders".
from bundletool.
It still doesn't work :(
from bundletool.
Yeah, sorry, missing the generated files:
And for tests, add the source, and add a dependency on main:
from bundletool.
Yeah, sorry, missing the generated files:
And for tests, add the source, and add a dependency on main:
Thanks , it worked. In addition to this, there are some places to pay attention to.
- source code does not contains
build
folder, you need run./gradlew executableJar
to generate it. - you must remove all config from
bundletool-master
first in configuration panel, otherwise you cannot addbuild
folder tomain
.
from bundletool.
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.
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.
@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.
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)
- Error: Module 'myzip' is missing mandatory file 'manifest/AndroidManifest.xml' HOT 2
- bundletool build-apks failed when minsdk<21 HOT 1
- [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
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.