# Problem: Integrating InfluxDB into android

**URL:** <https://community.influxdata.com/t/problem-integrating-influxdb-into-android/13380>\
**Category:** Systems\
**Tags:** influxdb, influxdata, client-libraries, iot\
**Created:** [March 10, 2020, 4:11pm UTC](https://community.influxdata.com/t/problem-integrating-influxdb-into-android/13380 "2020-03-10T16:11:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shobhit.gupta](https://avatars.discourse-cdn.com/v4/letter/s/db5fbb/32.png) [@shobhit.gupta](https://community.influxdata.com/u/shobhit.gupta)\
**Post date:** [March 10, 2020, 4:11pm UTC](https://community.influxdata.com/t/problem-integrating-influxdb-into-android/13380/1 "2020-03-10T16:11:36Z")

</div>

Hello !!  
As I am developing an application on Android using Java (Java1.8). I would like to connect to InfluxDB on a remote server. Refer from InfluxAPI documentation, I am using influxdb-java library and using android min api level 22.  
The problem is while connecting to the InfluxData server, it crashes and show errors:

> I/art: Rejecting re-init on previously-failed class java.lang.Class\<org.influxdb.impl.-$$Lambda$InfluxDBImpl$fFpZuhSxlxar1tU5\_rdnRDDDF2k\>  
> Rejecting re-init on previously-failed class java.lang.Class\<org.influxdb.impl.-$$Lambda$InfluxDBImpl$fFpZuhSxlxar1tU5\_rdnRDDDF2k\>

> Caused by: java.lang.ClassNotFoundException: Didn’t find class “java.util.concurrent.atomic.LongAdder” on path: DexPathList[[zip file “/data/app/com.ohs\_engineering.smartsenscloud-1/base.apk”],nativeLibraryDirectories=[/vendor/lib, /system/lib]]  
> at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)

> Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available

Kindly help!! Moreover, Is it possible to integrate InfluxDB into android or is there any other way? Kindly let me know.

---

<div class="post-metadata">

**Author:** ![Anaisdg](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/anaisdg/32/6401_2.png) [@Anaisdg](https://community.influxdata.com/u/Anaisdg)\
**Post date:** [March 10, 2020, 6:34pm UTC](https://community.influxdata.com/t/problem-integrating-influxdb-into-android/13380/2 "2020-03-10T18:34:26Z")

</div>

Hello @shobhit.gupta,  
Welcome! I’m not sure I can be of much help personally, but I’ll ask around. However, perhaps something in this android accelerometer2influx could be useful to you?

> **[GitHub - CorpGlory/accelerometer2influx: Android add for sending...](https://github.com/CorpGlory/accelerometer2influx)**
>
> Android add for sending accelerometer data in influxdb - GitHub - CorpGlory/accelerometer2influx: Android add for sending accelerometer data in influxdb

---

<div class="post-metadata">

**Author:** ![shobhit.gupta](https://avatars.discourse-cdn.com/v4/letter/s/db5fbb/32.png) [@shobhit.gupta](https://community.influxdata.com/u/shobhit.gupta)\
**Post date:** [March 12, 2020, 8:29am UTC](https://community.influxdata.com/t/problem-integrating-influxdb-into-android/13380/3 "2020-03-12T08:29:04Z")

</div>

Thank you for your reply. Yes, it is little useful to me.
