Giter VIP home page Giter VIP logo

Comments (4)

mrmans0n avatar mrmans0n commented on July 17, 2024

Yes, that happens because the project is not packaged as a jar file, but as an apklib instead.

We've still haven't implemented the deployments for gradle native format 'aar', which acts as a substitute to the apklib format. Also, the gradle-android-plugin doesn't seem to support apklib yet, though you can see their progress in this thread: jvoegele/gradle-android-plugin#100 (not much now, just people asking for it).

We will build aar packages in the future, we just didn't had time yet.

from smart-location-lib.

mrmans0n avatar mrmans0n commented on July 17, 2024

Anyway, you could download the source code from the library project in your app and reference it from gradle with its directory in the filesystem. It should work.

from smart-location-lib.

aleksandrmelnyk avatar aleksandrmelnyk commented on July 17, 2024

HI Nacho,

yup, referencing sources works. just in case someone else would need it:
dependencies {
compile fileTree(dir: 'libs', include: '.jar')
fileTree(dir: 'libs/src', include: '__/
.java')
}

and under libs/src I put com/mobivery/greent/smartlocation.

Thanks.

from smart-location-lib.

aleksandrmelnyk avatar aleksandrmelnyk commented on July 17, 2024

Aplogozes for my previous comment. Approach with sources doesn't work.
What I did:

  1. edit pom.xml to compile JAR library
    SmartLocation Library
    jar
  2. run maven install (maven 3 required), it shown some s3 exceptions, but build succeded
  3. went to .m2/repositories folder, find the JAR and copied it my app libs folder.

After that gradle started to see the lib.

from smart-location-lib.

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.