bundletool icon indicating copy to clipboard operation
bundletool copied to clipboard

Unable to add a jar dependency in android project

Open omkar-tenkale opened this issue 3 years ago • 2 comments

Describe the bug Cannot compile android project when bundletool is added as jar dependency


    implementation fileTree(include: ['*.jar'], dir: 'libs')
    implementation files('libs/bundletool-all-1.10.0.jar')

Stacktrace The given artifact contains a string literal with a package reference 'android.support.design.widget' that cannot be safely rewritten. Libraries using reflection such as annotation processors need to be updated manually to add support for androidx.

To Reproduce Steps to reproduce the behavior. Add the bundletool jar dependency in app module's build.gradle

Expected behavior App should compile and bundletool classes should be available to use

omkar-tenkale avatar Jun 04 '22 03:06 omkar-tenkale

i have the same problem, how to solve this?

David-Kuper avatar Sep 15 '22 12:09 David-Kuper

As per my research and attempts, it's close to impossible

omkar-tenkale avatar Sep 15 '22 18:09 omkar-tenkale

At the moment bundletool is not Android ready and can be run only inside JRE. There are no current plans to change it.

ymakhno avatar Nov 04 '22 00:11 ymakhno