opentok / opentok-android-sdk-samples

Sample applications illustrating best practices using OpenTok Android SDK.
https://tokbox.com/developer/sdks/android/
MIT License
211 stars 169 forks source link

After Android Studio update to 4.2.2 -status code 403 from server #394

Closed gauravbvi17 closed 1 year ago

gauravbvi17 commented 3 years ago

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

adrienrx commented 3 years ago

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

baole commented 3 years ago

Same for me, opentok-android-sdk-v3 3.0.3 artifact doesn't exist on mavenCentral().

adrienrx commented 3 years ago

https://support.tokbox.com/hc/en-us/articles/360059402811-Android-SDK-available-through-maven-central

baole commented 3 years ago

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.

adrienrx commented 3 years ago

As a temporary solution, I have hosted that missing lib on a personal maven server.

tedyk commented 3 years ago

@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?

paulinabls commented 3 years ago

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? 🙏

xoliver commented 3 years ago

@adrienrx I second @paulinabls 's call

klapperkopp commented 3 years ago

Just FYI, we are working on this and will update here once we have a solution that is confirmed working and including simple instructions.

dharamvirsaini commented 3 years ago

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:-

tedyk commented 3 years ago

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
TripleFrog commented 3 years ago

@klapperkopp I'm getting the same error message as @tedyk, what's the timeline on seeing something from Vonage?

klapperkopp commented 3 years ago

I have tried @dharamvirsaini's solution above and it works for me. See screenshot for my config with relevant sections marked in blue.

Bildschirmfoto 2021-08-30 um 11 59 32

If this still doesn't work and your build.gradle files look differently, maybe it's possible to share them?

ajiehatajie commented 2 years ago

same issue

TripleFrog commented 2 years ago

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.

adrienrx commented 2 years ago

Oh sorry I missed this. Do you guys still need it ? Very very late to the party

baole commented 2 years ago

Yes, I do

adrienrx commented 2 years ago

opentok-android-sdk-v3-3.1.3.zip

baole commented 2 years ago

@adrienrx thank you! I meant a mavenized version.

adrienrx commented 2 years ago
    maven { url 'https://github.com/adrienrx/legacy-otk/raw/master'}

Let me know if this helps

hithaprani-pop commented 2 years ago

@adrienrx can you provide files for "opentok-android-sdk-v3:3.1.5"

adrienrx commented 2 years ago

Hmm I don't have this version on my local unfortunately @hithaprani-pop