AdaptySDK-React-Native: Expo EAS Android build failure: Could not find io.adapty.internal:crossplatform:2.10.3

Description

Description

  • I am adding Adapty package to my Expo Managed application and I am running into issue during running EAS build.

Details

Errors at step Run gradlew:

* 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 io.adapty.internal:crossplatform:2.10.3.

     Required by:

         project :app > project :react-native-adapty

* Try:

> Run with --stacktrace option to get the stack trace.

> Run with --info or --debug option to get more log output.

> Run with --scan to get full insights.

> Get more help at https://help.gradle.org.

BUILD FAILED in 3m 57s

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.3/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

15 actionable tasks: 15 executed

Error: Gradle build failed with unknown error. See logs for the "Run gradlew" phase for more information.

Notable error: Could not find io.adapty.internal:crossplatform:2.10.3

default build tools using by EAS:

Android gradle plugin: 8.1.1
Gradle: 8.3

dependencies:

{
  "dependencies": {
    "expo": "~50.0.14",
    "expo-build-properties": "~0.11.1",
    "expo-dev-client": "~3.3.11",
    "react": "18.2.0",
    "react-native": "0.73.6",
    "react-native-adapty": "^2.10.0",
  },
}

What I have tried

  • Downgrade Adapty package to 2.9.8

Version

v2.10.0

What platforms are you seeing the problem on?

Android

System info

Getting Permission denied, even with `sudo`. Possible due to using EXPO?

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Reactions: 1
  • Comments: 30 (14 by maintainers)

Most upvoted comments

Could you try it only for react-native-adapty?

Hi @vladd-g,

Thank you for your message. When I encountered this problem, I solved the problem by buying eas build. Today I tried again and my problem was solved with prebuild.

Thank you for everything

    "@adapty/react-native-ui": "^2.11.1",
    "react-native-adapty": "^2.11.3",
    "expo": "~51.0.36",    
    "react-native": "0.74.5",

Folder => android > build.gradle

 allprojects {
    repositories { 

         //... Other repositories
        maven { url '../../node_modules/@adapty/react-native-ui/android/localMaven' }
        maven { url '../../node_modules/react-native-adapty/lib/android/localMaven' }

      }
  }

@benimbolat @mpanac this one in your case didn’t help either? or this, like here?

additionally, maybe it requires prebuilding at some stage