Hey guys I facing this issue trying to use the react-native-purchases-ui, when I tri to build running npx expo run:android I receiving this error.
My packages:
"expo": "~51.0.28",
"@expo/config": "~9.0.0",
"@babel/core": "^7.20.0",
"react-native": "0.74.5",
"react-native-purchases": "^8.0.1",
"react-native-purchases-ui": "^8.0.1",
My build config:
"expo-build-properties",
{
"ios": {
"useFrameworks": "static"
},
"android": {
"compileSdkVersion": 34,
"targetSdkVersion": 34,
"buildToolsVersion": "34.0.0",
"minSdkVersion": 24,
"enableProguardInReleaseBuilds": true,
"enableShrinkResourcesInReleaseBuilds": true,
"enablePngCrunchInReleaseBuilds": true
}
}
]
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':app:processDebugResources'.
> Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath'.
> Could not resolve com.revenuecat.purchases:purchases-hybrid-common-ui:13.0.1.
Required by:
project :app > project :react-native-purchases-ui
> Could not resolve com.revenuecat.purchases:purchases-hybrid-common-ui:13.0.1.
> Could not get resource 'https://oss.sonatype.org/content/repositories/snapshots/com/revenuecat/purchases/purchases-hybrid-common-ui/13.0.1/purchases-hybrid-common-ui-13.0.1.pom'.
> Could not GET 'https://oss.sonatype.org/content/repositories/snapshots/com/revenuecat/purchases/purchases-hybrid-common-ui/13.0.1/purchases-hybrid-common-ui-13.0.1.pom'.
> Got socket exception during request. It might be caused by SSL misconfiguration
> Connect to 127.0.0.1:9090 [/127.0.0.1] failed: Connection refused
> Could not resolve com.revenuecat.purchases:purchases-hybrid-common-ui:13.0.1.
> Could not get resource 'https://repo.maven.apache.org/maven2/com/revenuecat/purchases/purchases-hybrid-common-ui/13.0.1/purchases-hybrid-common-ui-13.0.1.pom'.
> Could not GET 'https://repo.maven.apache.org/maven2/com/revenuecat/purchases/purchases-hybrid-common-ui/13.0.1/purchases-hybrid-common-ui-13.0.1.pom'.
> Got socket exception during request. It might be caused by SSL misconfiguration
> Connect to 127.0.0.1:9090 [/127.0.0.1] failed: Connection refused
> Could not resolve com.revenuecat.purchases:purchases-hybrid-common-ui:13.0.1.
> Could not get resource 'https://dl.google.com/dl/android/maven2/com/revenuecat/purchases/purchases-hybrid-common-ui/13.0.1/purchases-hybrid-common-ui-13.0.1.pom'.
> Could not GET 'https://dl.google.com/dl/android/maven2/com/revenuecat/purchases/purchases-hybrid-common-ui/13.0.1/purchases-hybrid-common-ui-13.0.1.pom'.
> Got socket exception during request. It might be caused by SSL misconfiguration
> Connect to 127.0.0.1:9090 [/127.0.0.1] failed: Connection refused
> Could not resolve com.revenuecat.purchases:purchases-hybrid-common-ui:13.0.1.
> Could not get resource 'https://www.jitpack.io/com/revenuecat/purchases/purchases-hybrid-common-ui/13.0.1/purchases-hybrid-common-ui-13.0.1.pom'.
> Could not GET 'https://www.jitpack.io/com/revenuecat/purchases/purchases-hybrid-common-ui/13.0.1/purchases-hybrid-common-ui-13.0.1.pom'.
> Got socket exception during request. It might be caused by SSL misconfiguration
> Connect to 127.0.0.1:9090 [/127.0.0.1] failed: Connection refused
> Could not resolve com.revenuecat.purchases:purchases-hybrid-common-ui:13.0.1.
> Could not get resource 'https://dl.google.com/dl/android/maven2/com/revenuecat/purchases/purchases-hybrid-common-ui/13.0.1/purchases-hybrid-common-ui-13.0.1.pom'.
> Could not GET 'https://dl.google.com/dl/android/maven2/com/revenuecat/purchases/purchases-hybrid-common-ui/13.0.1/purchases-hybrid-common-ui-13.0.1.pom'.
> Got socket exception during request. It might be caused by SSL misconfiguration
> Connect to 127.0.0.1:9090 [/127.0.0.1] failed: Connection refused
> Could not resolve com.revenuecat.purchases:purchases-hybrid-common-ui:13.0.1.
> Could not get resource 'https://repo.maven.apache.org/maven2/com/revenuecat/purchases/purchases-hybrid-common-ui/13.0.1/purchases-hybrid-common-ui-13.0.1.pom'.
> Could not GET 'https://repo.maven.apache.org/maven2/com/revenuecat/purchases/purchases-hybrid-common-ui/13.0.1/purchases-hybrid-common-ui-13.0.1.pom'.
> Got socket exception during request. It might be caused by SSL misconfiguration
> Connect to 127.0.0.1:9090 [/127.0.0.1] failed: Connection refused
> Could not resolve com.revenuecat.purchases:purchases-hybrid-common-ui:13.0.1.
> Could not get resource 'https://www.jitpack.io/com/revenuecat/purchases/purchases-hybrid-common-ui/13.0.1/purchases-hybrid-common-ui-13.0.1.pom'.
> Could not GET 'https://www.jitpack.io/com/revenuecat/purchases/purchases-hybrid-common-ui/13.0.1/purchases-hybrid-common-ui-13.0.1.pom'.
> Got socket exception during request. It might be caused by SSL misconfiguration
> Connect to 127.0.0.1:9090 [/127.0.0.1] failed: Connection refused
> Could not resolve androidx.compose.ui:ui-android:1.5.4.
Required by:
project :app > project :react-native-purchases-ui
> Could not resolve androidx.compose.ui:ui-android:1.5.4.
> Could not get resource 'https://oss.sonatype.org/content/repositories/snapshots/androidx/compose/ui/ui-android/1.5.4/ui-android-1.5.4.pom'.
> Could not GET 'https://oss.sonatype.org/content/repositories/snapshots/androidx/compose/ui/ui-android/1.5.4/ui-android-1.5.4.pom'.
> Got socket exception during request. It might be caused by SSL misconfiguration
> Connect to 127.0.0.1:9090 [/127.0.0.1] failed: Connection refused
> Could not resolve androidx.compose.ui:ui-android:1.5.4.
> Could not get resource 'https://repo.maven.apache.org/maven2/androidx/compose/ui/ui-android/1.5.4/ui-android-1.5.4.pom'.
> Could not GET 'https://repo.maven.apache.org/maven2/androidx/compose/ui/ui-android/1.5.4/ui-android-1.5.4.pom'.
> Got socket exception during request. It might be caused by SSL misconfiguration
> Connect to 127.0.0.1:9090 [/127.0.0.1] failed: Connection refused
> Could not resolve androidx.compose.ui:ui-android:1.5.4.
> Could not get resource 'https://dl.google.com/dl/android/maven2/androidx/compose/ui/ui-android/1.5.4/ui-android-1.5.4.pom'.
> Could not GET 'https://dl.google.com/dl/android/maven2/androidx/compose/ui/ui-android/1.5.4/ui-android-1.5.4.pom'.
> Got socket exception during request. It might be caused by SSL misconfiguration
> Connect to 127.0.0.1:9090 [/127.0.0.1] failed: Connection refused
> Could not resolve androidx.compose.ui:ui-android:1.5.4.
> Could not get resource 'https://www.jitpack.io/androidx/compose/ui/ui-android/1.5.4/ui-android-1.5.4.pom'.
> Could not GET 'https://www.jitpack.io/androidx/compose/ui/ui-android/1.5.4/ui-android-1.5.4.pom'.
> Got socket exception during request. It might be caused by SSL misconfiguration
> Connect to 127.0.0.1:9090 [/127.0.0.1] failed: Connection refused
> Could not resolve androidx.compose.ui:ui-android:1.5.4.
> Could not get resource 'https://dl.google.com/dl/android/maven2/androidx/compose/ui/ui-android/1.5.4/ui-android-1.5.4.pom'.
> Could not GET 'https://dl.google.com/dl/android/maven2/androidx/compose/ui/ui-android/1.5.4/ui-android-1.5.4.pom'.
> Got socket exception during request. It might be caused by SSL misconfiguration
> Connect to 127.0.0.1:9090 [/127.0.0.1] failed: Connection refused
> Could not resolve androidx.compose.ui:ui-android:1.5.4.
> Could not get resource 'https://repo.maven.apache.org/maven2/androidx/compose/ui/ui-android/1.5.4/ui-android-1.5.4.pom'.
> Could not GET 'https://repo.maven.apache.org/maven2/androidx/compose/ui/ui-android/1.5.4/ui-android-1.5.4.pom'.
> Got socket exception during request. It might be caused by SSL misconfiguration
> Connect to 127.0.0.1:9090 [/127.0.0.1] failed: Connection refused
> Could not resolve androidx.compose.ui:ui-android:1.5.4.
> Could not get resource 'https://www.jitpack.io/androidx/compose/ui/ui-android/1.5.4/ui-android-1.5.4.pom'.
> Could not GET 'https://www.jitpack.io/androidx/compose/ui/ui-android/1.5.4/ui-android-1.5.4.pom'.
> Got socket exception during request. It might be caused by SSL misconfiguration
> Connect to 127.0.0.1:9090 [/127.0.0.1] failed: Connection refused
* 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 49s
20 actionable tasks: 4 executed, 16 up-to-date
Error: /Users/marco/WebstormProjects/linguado-mobile-1/android/gradlew app:assembleDebug -x lint -x test --configure-on-demand --build-cache -PreactNativeDevServerPort=8081 -PreactNativeArchitectures=arm64-v8a,armeabi-v7a exited with non-zero code: 1