I have a currently running Android application which uses OpenTok SDK version 2.8.
that is 'opentok-android-sdk-2.5.0.jar'
.
Due to some known issue, i have to update it to the latest version of OpenTok that is opentok-android-sdk-2.8.1
.
In the previous version of the OpenTok SDK, there used to be one *.jar
file and two *.so
files.
However, in this version the *.jar
and *.so
files have been replaced by a single *.aar
file.
What i tried:
I removed both *.so
files fron JNILibs
directory and the *.jar
file from the libs
directory of the project structure. Further i removed the below line from gradle.build of apps:
compile files('libs/opentok-android-sdk-2.5.0.jar')
As specified in the below link, under the read me section:
https://github.com/opentok/opentok-android-sdk-samples
I added the below two lines in my gradle.build under app in th respective positions: That is, under 'repositories' i added:
maven { url "http://tokbox.bintray.com/maven" }
And then under 'dependencies' i added:
compile 'com.opentok.android:opentok-android-sdk:2.8.+'
And then when i Sync
my project, i get the below error:
Error:(61, 13) Failed to resolve: com.opentok.android:opentok-android-sdk:2.8.+
Show in File
Show in Project Structure dialog
Further i also tried:
How to manually include external aar package using new Gradle Android Build System
But i was still getting errors like only jar files can be added like that.
I also tried: https://www.youtube.com/watch?v=dpuJPoXkFG4
If anyone has upgraded from any *.jar
library to *.aar
library, kindly specify the procedure here or send me a reference for the same.
Thanks in advance.