2

I tried adding the BLE SDK from Samsung into my Android Studio project. I followed the instructions from this post, but I still get errors.

In my project folder I created a libs directory, where I put the samsung_ble_sdk_200.jar. I right clicked the file in Android Studio and chose to make a library out of it, and this shows in the project settings as okay. In my build.gradle I edited the dependencies section to

dependencies {
    compile ('com.android.support:support-v4:13.0.0', 'libs/samsung_ble_sdk_200.jar')
}

and rebuild the project. I then get the error

Gradle: A problem occurred evaluating project ':S4BLE'.
> The description libs/samsung_ble_sdk_200.jar is invalid

Any ideas?

Community
  • 1
  • 1
chwi
  • 2,663
  • 2
  • 34
  • 62

1 Answers1

-1

Maybe you can follow the instructions in chapter 8 in this document.

Click here (invalid link)

Be also sure of the .classpath file is not hidden in your project folder, when adding your .jar file. It can typically be the issue.

Prakash Nadar
  • 2,505
  • 1
  • 17
  • 20
user2521732
  • 68
  • 1
  • 6
  • unfortunately I can't. The UI in Android Studio for changing these preferences does not yet affect the actual build, so it has to be done manually by editing the apropriate build files. – chwi Aug 22 '13 at 07:39