react-native-tiktok icon indicating copy to clipboard operation
react-native-tiktok copied to clipboard

Android: Could not find opensdk-oversea-external-0.2.0.2 dependency

Open oye-eduardo opened this issue 2 years ago • 3 comments

Hello,

I'm using: RN: 0.71.2 react-native-tiktok: 1.1.1

And when I try to compile the android app, I get this error:

Could not determine the dependencies of task ':app:processStagingDebugResources'. Could not resolve all task dependencies for configuration ':app:stagingDebugRuntimeClasspath'. Could not find com.bytedance.ies.ugc.aweme:opensdk-oversea-external:0.2.0.2. Searched in the following locations: - https://oss.sonatype.org/content/repositories/snapshots/com/bytedance/ies/ugc/aweme/opensdk-oversea-external/0.2.0.2/opensdk-oversea-external-0.2.0.2.pom - https://repo.maven.apache.org/maven2/com/bytedance/ies/ugc/aweme/opensdk-oversea-external/0.2.0.2/opensdk-oversea-external-0.2.0.2.pom - file:/<<PROJECT_REPO_DIR>>/node_modules/jsc-android/dist/com/bytedance/ies/ugc/aweme/opensdk-oversea-external/0.2.0.2/opensdk-oversea-external-0.2.0.2.pom - https://dl.google.com/dl/android/maven2/com/bytedance/ies/ugc/aweme/opensdk-oversea-external/0.2.0.2/opensdk-oversea-external-0.2.0.2.pom - https://www.jitpack.io/com/bytedance/ies/ugc/aweme/opensdk-oversea-external/0.2.0.2/opensdk-oversea-external-0.2.0.2.pom

I have tried already with all of this repo's versions and none are working.

Please your help, I don't know if I am missing something!!

Thanks

oye-eduardo avatar Jul 19 '23 20:07 oye-eduardo

Hi @oye-eduardo! Try to add

maven { url "https://artifact.bytedance.com/repository/AwemeOpenSDK" } to repositories section in your project`s build.gradle. It solved the issue for me.

Step 2 from here: https://developers.tiktok.com/doc/getting-started-android-quickstart?enter_method=left_navigation

vasyl-i avatar Jul 20 '23 10:07 vasyl-i

Hi @vahutson thanks for your reply, I tried it but still no luck.

Now I get:

Could not determine the dependencies of task ':app:compileStagingDebugJavaWithJavac'. Could not resolve all task dependencies for configuration ':app:stagingDebugCompileClasspath'. Could not find com.bytedance.ies.ugc.aweme:opensdk-oversea-external:0.2.0.2. Required by: project :app

I even created an android project from scratch, and added the repo and did both steps 1 and 2 from the android quickstart, and with the same result

oye-eduardo avatar Jul 20 '23 14:07 oye-eduardo

A quick fix for this is to add the following to your project's build.gradle:

allprojects {
    repositories {
        maven { url "https://artifact.bytedance.com/repository/AwemeOpenSDK" }
    }
}

More elegant would be to fix the issue within this library ofcourse, but this will allow you to at least get going.

GunnarAK avatar Dec 12 '23 08:12 GunnarAK