1
0
mirror of https://github.com/mik3y/usb-serial-for-android synced 2025-06-09 00:46:11 +00:00

Destroyed Building From Source (markdown)

kai-morich 2019-10-07 07:14:05 +02:00
parent 7e3b03105d
commit c4e3d2567c

@ -1,37 +0,0 @@
Do you want to use usb-serial-for-android from source with your Android project? Read on.
## Developer Setup - Eclipse
**1.** Select File -> Import -> Existing Projects Into Workspace
![Step 1](http://i.imgur.com/Ke41Ni6.png)
**2.** Navigate to `usb-serial-for-android/` and continue.
![Step 2](http://i.imgur.com/0tQbCQq.png)
**3.** Ctrl-click on *your app* and select "Properties", then "Build Path".
**4.** In the "Projects" subtab, add "UsbSerialLibrary"
![Step 4](http://i.imgur.com/FRWeUxM.png)
**5.** In the "Order and Export" subtab, be sure "UsbSerialLibrary" is **checked**.
![Step 5](http://i.imgur.com/YQeO8EG.png)
**6.** Now click over to "Android" in the left panel, and in the Library section, press **Add**. Add UsbSerialLibrary.
![Step 6](http://i.imgur.com/tKau1yw.png)
That's it!
## Developer Setup - Gradle
With a copy of the source already copied into your project directory, add the following in your `build.gradle` file:
```
dependencies {
compile project(':usb-serial-for-android:usbSerialForAndroid')
}
```