Git Product home page Git Product logo

Comments (4)

newmanw avatar newmanw commented on May 19, 2024

Not sure this is an issue w/ plugin. But also not sure how deps of aar file are supposed to get pulled into the final APK, cause its not happening.

from android-maven-gradle-plugin.

dcendents avatar dcendents commented on May 19, 2024

Well the plugin simply adds support of the standard maven install task to android library projects so aar artifacts can be installed in your local maven repository.

A pom file should be generated along with it to list transitive dependencies.

Since maven transitive dependencies must come from a maven repository, the direct file dependencies you listed probably cannot be added to the pom. Maybe that's why it got added to the libs folder, not sure as when I use it all my dependencies always come from a repository.

Then in your android project (apk), you add a compile dependency to your aar artifact (using 'group:artifact:version:type') and it should automatically "pull" along the transitive dependencies, commons-lang in this case.

Hope this helps

from android-maven-gradle-plugin.

newmanw avatar newmanw commented on May 19, 2024

Thanks, still plugging away. For whatever reason I cannot get gradle to pull the transitive dependencies. Again seems like it should but it won't. Running APK throws classdefnotfound exceptions on commons-lang classes as they are not packed up in apk.

from android-maven-gradle-plugin.

dcendents avatar dcendents commented on May 19, 2024

Unless you can give me a concrete example of how your projects are setup (build scripts) it will be hard to help you

from android-maven-gradle-plugin.

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.