Android: Could not find opensdk-oversea-external-0.2.0.2 dependency
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
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
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
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.