Code Monkey home page Code Monkey logo

Comments (8)

plecesne avatar plecesne commented on May 20, 2024 4

This is not a help forum but an issue tracker. Try stackoverflow or other similar platforms.

Sorry and thanks for your understanding!

from bundletool.

plecesne avatar plecesne commented on May 20, 2024

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.

junocc avatar junocc commented on May 20, 2024

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

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.

plecesne avatar plecesne commented on May 20, 2024

Is there a dex file in your Bundle? You can look by unzipping it and searching in the base/dex directory.

from bundletool.

plecesne avatar plecesne commented on May 20, 2024

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.

junocc avatar junocc commented on May 20, 2024

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.

arpitagarwal1301 avatar arpitagarwal1301 commented on May 20, 2024

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.

Jitendra194 avatar Jitendra194 commented on May 20, 2024

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)

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.