adaptyteam / AdaptySDK-React-Native

React Native SDK for growing in-app subscriptions
https://docs.adapty.io/docs/quickstart
MIT License
122 stars 12 forks source link

Expo EAS Android build failure: Could not find io.adapty.internal:crossplatform:2.10.3 #115

Open stevennhnk113 opened 5 months ago

stevennhnk113 commented 5 months ago

Description

Description

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

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?
vladd-g commented 5 months ago

@stevennhnk113 thank you for the report! Could you please try this solution?

Also it looks similar to this issue

stevennhnk113 commented 5 months ago

Thanks for the help, but it is still not working and getting the exact same error.

vladd-g commented 5 months ago

@stevennhnk113 nothing else from the links above worked either, did it?

KristianLentino99 commented 5 months ago

I have the same problem with expo 49. Putting this has helped but I would like to avoid it honestly:

[
    "expo-build-properties",
    {
        "android": {
            "extraMavenRepos": [
                "../../node_modules/react-native-adapty/lib/android/localMaven"
            ]
        }
    }
]
stevennhnk113 commented 5 months ago

@vladd-g Unfortunately, none of the solution work. My project use Expo Managed, so some of the solutions are not applicable such as this example

Lets me know if you need more information.

mpanac commented 2 months ago

Any solution? I am having the same issue and none of the suggestions above helped me. I am using RN expo bare workflow

benimbolat commented 1 week ago

I had the same problem. Anyone found a solution?

mpanac commented 1 week ago

I couldn't make it work and the team refused to help so i had to switch to a revenueCat.

I had the same problem. Anyone found a solution?

stevennhnk113 commented 1 week ago

I had the same problem. Anyone found a solution?

I switched to revenueCat as well.

vladd-g commented 1 week ago

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

additionally, maybe it requires prebuilding at some stage