Comments (8)
This is not a help forum but an issue tracker. Try stackoverflow or other similar platforms.
Sorry and thanks for your understanding!
from bundletool.
The base module in your Android App Bundle does not have a dex file. Apps that don't have dex files need to have the attribute android:hasCode=false
set in the AndroidManifest.xml
See https://developer.android.com/guide/topics/manifest/application-element
from bundletool.
The base module in your Android App Bundle does not have a dex file. Apps that don't have dex files need to have the attribute
android:hasCode=false
set in the AndroidManifest.xmlSee https://developer.android.com/guide/topics/manifest/application-element
You right, but my base app generate dex file when I add the attribute android:hasCode=false in the AndroidManifest.xml.
My app can't find custom Application
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.xxxx" on path: DexPathList[[],nativeLibraryDirectories=[/data/app/xxx-56AGT5u1xEKyRT1ZB5-
from bundletool.
Is there a dex file in your Bundle? You can look by unzipping it and searching in the base/dex
directory.
from bundletool.
Do you use dexguard? Somebody on stackoverflow mentioned that they had the same issue as you and updating to the latest version of dexguard fixed it.
from bundletool.
Do you use dexguard? Somebody on stackoverflow mentioned that they had the same issue as you and updating to the latest version of dexguard fixed it.
Yes, I use Dexguard. You right! Ty
from bundletool.
Found the issue after 2 days of research :
If this happening only in the release then it is possible proguard issue .
Proguard removes the files from the dynamic module if it considers them not useful .
So , you have to modify the proguard keep rules .
-keep class whateverpackagename.** { *; }
from bundletool.
Found the issue after 2 days of research :
If this happening only in the release then it is possible proguard issue .
Proguard removes the files from the dynamic module if it considers them not useful .
So , you have to modify the proguard keep rules .
-keep class whateverpackagename.** { *; }
I've been getting the same issue where it says
Error: Module 'module1' has no dex files but the attribute 'hasCode' is not set to false in the AndroidManifest.xml.
I added -keep class whateverpackagename.* { *; } in the proguard rules but the issue still persists.
I'd appreciate any help regarding this.
from bundletool.
Related Issues (20)
- 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
- Bundletool does not recognize `android:installLocation="0"` HOT 1
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.