harryjph / android-bluetooth-serial

A library for Android to simplify basic serial communication over Bluetooth, for example when communicating with Arduinos.
Apache License 2.0
176 stars 60 forks source link

Importing Library #9

Closed johngerving closed 3 years ago

johngerving commented 4 years ago

I know this is a dumb question, but I'm pretty new to this. How would I import this library into Android Studio?

harryjph commented 4 years ago

Hi! It's explained in the Readme

In your root build.gradle file you need to add maven { url 'https://jitpack.io' } to the repositories section.

In the build.gradle file under your app directory (unless you renamed it) you need to add:

implementation 'com.github.harry1453:android-bluetooth-serial:v1.1'

// RxJava is also required.
implementation 'io.reactivex.rxjava2:rxjava:2.1.12'
implementation 'io.reactivex.rxjava2:rxandroid:2.0.2'

To the repositories section

harryjph commented 3 years ago

Closing due to inactivity.