onyx-intl / OnyxAndroidDemo

148 stars 40 forks source link

onyxsdk-base could not determine dependecies #86

Open zbouslikhin opened 2 years ago

zbouslikhin commented 2 years ago

Hello,

I'm trying to use onyxsdk-pen, which uses onyxsdk-base

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
> Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'.
   > Could not find pub.devrel:easypermissions:0.2.1.
     Required by:
         project :app > com.onyx.android.sdk:onyxsdk-base:1.6.19
   > Could not find com.tencent:mmkv:1.0.19.
     Required by:
         project :app > com.onyx.android.sdk:onyxsdk-base:1.6.19
Wiskerke commented 2 years ago

I had the same problem.

If you look at build.gradle file in the archive, it contains a dependency on jcenter:

https://github.com/onyx-intl/OnyxAndroidDemo/blob/005b4686dc285f33fecbecfd5c9863b2e8b462bf/build.gradle#L3-L8

Now in android studio, it gives a hint to replace this: image

However, mavenCentral does not contain those two dependencies. (It contains newer versions, but not those old versions.) So basically, make sure that jcenter() is present in the gradle file.