Lg0gs / react-native-tiktok

MIT License
48 stars 32 forks source link

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

Open oye-eduardo opened 1 year ago

oye-eduardo commented 1 year ago

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:

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

vasyl-i commented 1 year ago

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

oye-eduardo commented 1 year ago

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

GunnarAK commented 9 months ago

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.