Git Product home page Git Product logo

Comments (3)

rubenmoral avatar rubenmoral commented on August 20, 2024

Hi @Prometheus89,

As you say, it seems that the JVM is using the Apache APIs included in the android-sdk-5.1.1.jar library instead of the standard ones. We provide the Android SDK for those users who want to extend or modify the XBee Java Library, since it is necessary in order to compile the project.

If you are not using Android, you don't need to include that library in the classpath, you just need to have the following ones: xbee-java-library-X.Y.Z.jar, rxtx-2.2.jar (with its native file), slf4j-api-1.7.12.jar and slf4j-nop-1.7.12.jar.

Hope this helps!

Regards,
Ruben

from xbee-java.

Prometheus89 avatar Prometheus89 commented on August 20, 2024

Hey Ruben,

thanks for the quick reply.
I am using Gradle for my dependencies and it turns out that android and the logging are transitive depencies that will be used automatically, even if I do not specify them. Usually this is a neat feature and makes the build files a lot sleeker, but in my case it makes it unnecessary hard. But I found a solution, I can specifically exclude transitive dependencies and now it works like a charm.

I don't know if you can change the transitive behaviour on your side. It might be worth thinking about it, because it can take a lot of time to figure out, that you might have dependency collisions with other packages you did not specifically included. (It took me about 2 days to figure that out)

Regards,
Prometheus

from xbee-java.

rubenmoral avatar rubenmoral commented on August 20, 2024

Glad to hear that! Yes, we will fix that behavior for the next release.

Sorry for the inconvenience.

Regards,
Ruben

from xbee-java.

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.