Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
stevennhnk113 opened this issue Apr 2, 2024 · 6 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@stevennhnk113
Copy link

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?
@stevennhnk113 stevennhnk113 added the bug Something isn't working label Apr 2, 2024
@vladd-g
Copy link
Contributor

vladd-g commented Apr 2, 2024

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

Also it looks similar to this issue

@stevennhnk113
Copy link
Author

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

  • I have a monorepo setup, so I gave this a try:
"android": {
  "extraMavenRepos": [
    "$rootDir/../../../node_modules/react-native-adapty/lib/android/localMaven"
  ]
}
  • I also tried this as well:
"android": {
  "extraMavenRepos": [
    "./node_modules/react-native-adapty/lib/android/localMaven"
  ]
}

@vladd-g
Copy link
Contributor

vladd-g commented Apr 4, 2024

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

@KristianLentino99
Copy link

KristianLentino99 commented Apr 4, 2024

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
Copy link
Author

@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.

@vladd-g vladd-g added help wanted Extra attention is needed and removed bug Something isn't working labels Apr 25, 2024
@MartinGambit
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

5 participants