opentok-android-sdk-samples
opentok-android-sdk-samples copied to clipboard
After Android Studio update to 4.2.2 -status code 403 from server
Could not GET 'http://tokbox.bintray.com/maven/com/opentok/android/v3/opentok-android-sdk-v3/3.1.3/opentok-android-sdk-v3-3.1.3.pom'. Received status code 403 from server: Forbidden Disable Gradle 'offline mode' and sync project
bintray has closed, you need to remove the repo tokbox.bintray.com and replace it by mavenCentral(). See here https://tokbox.com/developer/sdks/android/#creating-your-own-app-using-the-opentok-android-sdk
Same for me, opentok-android-sdk-v3 3.0.3 artifact doesn't exist on mavenCentral().
https://support.tokbox.com/hc/en-us/articles/360059402811-Android-SDK-available-through-maven-central
From https://support.tokbox.com/hc/en-us/articles/360059402811-Android-SDK-available-through-maven-central
If you are using a version 2.16.x or older, please note that those old SDKs could depend on additional binaries that may not be available in Maven. We recommend that you download locally the required binaries to prevent any interruption to your development and testing processes but also plan to migrate to the latest version of the SDK. The latest versions include major performance improvements and bug fixes.
The recommendation to dowload locally seems awkward. Gradle warns if you put a .aar locally. If you put it in maven's cache, it doesn't work with CI tools.
As a temporary solution, I have hosted that missing lib on a personal maven server.
@adrienrx , I have a project that uses Salesforce SDK, which has a dependency on "opentok-android-sdk:2.16.3", which in turn seems to depends on "opentok-android-sdk-v3", version 3.1.3.
The latest version available in MavenCentral for "opentok-android-sdk" is 2.20.1, and I'm unable to find "opentok-android-sdk-v3", version 3.1.3 anywhere.
Would you know a place where I can download that while I wait for Salesforce to update to the latest opentok sdk?
Same here, we're heavily dependent on opentok-android-sdk-v3. :/
@adrienrx would it possible to share either a link or just an .aar file? 🙏
@adrienrx I second @paulinabls 's call
Just FYI, we are working on this and will update here once we have a solution that is confirmed working and including simple instructions.
I just downloaded the 2.16.1 .aar file from here:- https://s3.amazonaws.com/artifact.tokbox.com/rel/android-sdk-webrtc/opentok-android-sdk-2.16.1.zip and I was able to build and run the basic sample. Hope the below steps would help in resolving the v3 dependencies issue:-
-
In Android Studio, create libs folder under app level directory and paste the .aar file in it.
-
Modify the app level's build.gradle file and add implementation fileTree(include: ['*.aar'], dir: 'libs') inside the dependencies section. Please see the snapshot of what modified build.gradle file looks like.
-
Clean and build the project and it should work.
I tried the approach from @dharamvirsaini , but wasn't able to get a successful build. My dependency is on opentok-android-sdk-2.16.3, which I downloaded from https://s3.amazonaws.com/artifact.tokbox.com/rel/android-sdk-webrtc/opentok-android-sdk-2.16.3.zip, and updated the build.gradle to use the local aar file. Clean build still resulted in a failure that reported the need for v3 library file:
[10:39:09]: ▸ FAILURE: Build failed with an exception.
[10:39:09]: ▸ * What went wrong:
[10:39:09]: ▸ Could not resolve all files for configuration ':app:releaseCompileClasspath'.
[10:39:09]: ▸ > Could not find com.opentok.android.v3:opentok-android-sdk-v3:3.1.3.
[10:39:09]: ▸ Required by:
[10:39:09]: ▸ project :app > com.opentok.android:opentok-android-sdk:2.16.3
@klapperkopp I'm getting the same error message as @tedyk, what's the timeline on seeing something from Vonage?
I have tried @dharamvirsaini's solution above and it works for me. See screenshot for my config with relevant sections marked in blue.
If this still doesn't work and your build.gradle files look differently, maybe it's possible to share them?
same issue
Because we build and deploy using DevOps, we require the need to attach to a Maven repository to accomplish this and are unable to manually add files.
Oh sorry I missed this. Do you guys still need it ? Very very late to the party
Yes, I do
@adrienrx thank you! I meant a mavenized version.
maven { url 'https://github.com/adrienrx/legacy-otk/raw/master'}
Let me know if this helps
@adrienrx can you provide files for "opentok-android-sdk-v3:3.1.5"
Hmm I don't have this version on my local unfortunately @hithaprani-pop