GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Jar files not included in compiled aar on version 1.3.1+ · Issue #255 · kezong/fat-aar-android

Jar files not included in compiled aar on version 1.3.1+ #255

New issue
Copy link
New issue
Copy link
Open
Open
Jar files not included in compiled aar on version 1.3.1+#255
Copy link
Labels
bugSomething isn't working

Description

@kenshin171
kenshin171
opened on Dec 22, 2020
Issue body actions

Describe the issue
A clear and detailed description of what the issue is.

Build Environment

  • Operating System: MacOs Big Sur 11.1
  • Gradle Plugin Version: 4.1.1]
  • Gradle Version: 6.7.1
  • Fat-aar Version: 1.3.1, 1.3.3

Versions 1.3.1 and 1.3.3 seems to miss out bundling of the jar files into the aar.

I reverted to 1.2.19, and I can see the libs folder with my jar files inside the aar when I build the aar.

Version 1.2.19
image

Version 1.3.1 & 1.3.3
image

Reacted by WanghongLin

Activity

  1. kenshin171
    changed the title [-]Jar files not included in compiled aar fomr version 1.3.1+[/-] [+]Jar files not included in compiled aar on version 1.3.1+[/+] on Dec 22, 2020
  2. kezong commented on Dec 22, 2020

    @kezong
    kezong
    on Dec 22, 2020
    Owner
    More actions

    Is it set configurations.embed.transitive = true?
    change to:

    fataar {
        /**
         * If transitive is true, local jar module and remote library's dependencies will be embed.
         * If transitive is false, just embed first level dependency
         * Local aar project does not support transitive, always embed first level
         * Default value is false
         * @since 1.3.0
         */
        transitive = true
    }

    The 1.3.+ version is not compatible configurations.embed.transitive.
    It would be fixed in the next release.

  3. kenshin171 commented on Dec 22, 2020

    @kenshin171
    kenshin171
    on Dec 22, 2020
    Author
    More actions

    I did not have this config at all.
    Adding this makes no difference to the generated aar.
    My jar files are still not bundled inside.

    this is how i am including the jar files, in my app folders build.grade

      embed(name:'bcprov-jdk15on-167-shaded', ext:'jar')
      embed(name:'bcpkix-jdk15on-167-shaded', ext:'jar')
    

    in my project's build.gradle i have

    repositories {
    .... omitted......
     flatDir {
                dirs 'libs'
            }
    }
    
  4. Repository owner deleted a comment from on Dec 23, 2020
  5. mlsem commented on Feb 24, 2021

    @mlsem
    mlsem
    on Feb 24, 2021
    More actions

    Could you please show us an example on how to use

    fataar {
        /**
         * If transitive is true, local jar module and remote library's dependencies will be embed.
         * If transitive is false, just embed first level dependency
         * Local aar project does not support transitive, always embed first level
         * Default value is false
         * @since 1.3.0
         */
        transitive = true
    }

    it seems not working for me, i am putting this code in

    dependencies {
        implementation fileTree(dir: 'libs', include: ['*.jar'])
    
        fataar{
             transitive = true
        }.....

    is this the right way to use it ?

  6. kezong
    added
    bugSomething isn't working
    on Mar 30, 2021
  7. kezong
    added a commit that references this issue on Mar 30, 2021

    Fix the bug that jar cannot be merged when only jars are included in …

    869a020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402792 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.