Comments (3)
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.
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.
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)
- Library is now crippled with Android dependencies HOT 3
- Receive Timeout doubt HOT 6
- Android code is not compatible with some XBee/USB adapters HOT 1
- XCTU IndexOutOfBounds
- Digi Xbee communication error HOT 11
- Getting InterfaceNotOpenException while sending data HOT 10
- XBee 3 Compatibility HOT 2
- Reading Device Info and channels HOT 3
- what's up with rxtx and rxtx-native HOT 3
- Remote_DIO_Error_XBP9B-DMUT-002
- DataListener not working but PacketListener does HOT 2
- Invalid Operating mode Exception HOT 1
- Trouble with Java Runtime Error - Problem with DLL file? HOT 1
- java.lang.IllegalArgumentException: rxtx.native: Invalid module name: 'native' is not a Java identifier HOT 1
- RXTX Version MIsmatch
- xbee-java crashing with newer java versions HOT 3
- Uncaught exception: java.lang.IllegalArgumentException: 64-bit address cannot be unknown. HOT 3
- DiscoverDevicesSample
- Feature Request: Connecting to IP Gateway
- Xbee RR Java Library issue
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xbee-java.