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

Gradle Build Error - Unable to Resolve Dependency for Appodeal SDK

Open hi-kuldeep opened this issue 1 year ago • 2 comments

Upon attempting to compile the app, we encountered the following error:

Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.

Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'. Could not find any version that matches com.appodeal.ads:sdk:3.2.1.+. Versions that do not match:

  • 3.0.1.1
  • 3.0.1.0 Required by: project :app

Our current environment setup is as follows:

React version: 18.2.0 React Native version: 0.73.0 React Native Appodeal version: 3.2.1 It appears that the specified version of the Appodeal SDK (3.2.1) is not being recognized during the compilation process. Despite specifying the version in our dependencies, the build process is unable to find a matching version of the SDK.

Screenshot 2024-03-13 at 12 45 00 PM

hi-kuldeep avatar Mar 22 '24 16:03 hi-kuldeep

I'm having the same issue. I followed the installation guide and I'm getting the same error.

I'm using Node version 18 and React Native 0.74.

I installed the latest version of react-native-appodeal,

but when I try with older versions, specifically 3.0.1,

I get other errors. How can I fix this?

aleRisposta42 avatar May 17 '24 10:05 aleRisposta42

I have the same error, it seems that this version of the Appodeal SDK does not exist.

edwardsifi avatar Jul 01 '24 00:07 edwardsifi

It worked when I added the repository into allprojects -> repositories instead of buildscript -> repositories 😄

FSPinho avatar Jul 25 '24 03:07 FSPinho