AdaptySDK-React-Native
AdaptySDK-React-Native copied to clipboard
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?
@stevennhnk113 thank you for the report! Could you please try this solution?
Also it looks similar to this issue
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"
]
}
@stevennhnk113 nothing else from the links above worked either, did it?
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"
]
}
}
]
@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.
Any solution? I am having the same issue and none of the suggestions above helped me. I am using RN expo bare workflow
I had the same problem. Anyone found a solution?
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?
I had the same problem. Anyone found a solution?
I switched to revenueCat as well.
@benimbolat @mpanac this one in your case didn't help either? or this, like here?
additionally, maybe it requires prebuilding at some stage
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' }
}
}