react-native-paystack icon indicating copy to clipboard operation
react-native-paystack copied to clipboard

Could not find co.paystack.android:paystack:3.0.12

Open tons613 opened this issue 4 years ago • 5 comments

I keep getting this error when i tried to rebuild after installing the package.

"react-native": "0.65.1" "react-native-paystack": "^3.4.0"

Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:checkDebugAarMetadata'.

Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
Could not find co.paystack.android.design.widget:pinpad:1.0.1.
Searched in the following locations:
- https://repo.maven.apache.org/maven2/co/paystack/android/design/widget/pinpad/1.0.1/pinpad-1.0.1.pom
- file:/C:/Users/tons6/.m2/repository/co/paystack/android/design/widget/pinpad/1.0.1/pinpad-1.0.1.pom
- file:/C:/laragon/www/PyramidApp/2/mypyramids/node_modules/react-native/android/co/paystack/android/design/widget/pinpad/1.0.1/pinpad-1.0.1.pom
- file:/C:/laragon/www/PyramidApp/2/mypyramids/node_modules/jsc-android/dist/co/paystack/android/design/widget/pinpad/1.0.1/pinpad-1.0.1.pom
- https://dl.google.com/dl/android/maven2/co/paystack/android/design/widget/pinpad/1.0.1/pinpad-1.0.1.pom
- https://www.jitpack.io/co/paystack/android/design/widget/pinpad/1.0.1/pinpad-1.0.1.pom
Required by:
project :app > project :react-native-paystack
Could not find co.paystack.android:paystack:3.0.12.
Searched in the following locations:
- https://repo.maven.apache.org/maven2/co/paystack/android/paystack/3.0.12/paystack-3.0.12.pom
- file:/C:/Users/tons6/.m2/repository/co/paystack/android/paystack/3.0.12/paystack-3.0.12.pom
- file:/C://node_modules/react-native/android/co/paystack/android/paystack/3.0.12/paystack-3.0.12.pom
- file:/C:/
/node_modules/jsc-android/dist/co/paystack/android/paystack/3.0.12/paystack-3.0.12.pom
- https://dl.google.com/dl/android/maven2/co/paystack/android/paystack/3.0.12/paystack-3.0.12.pom
- https://www.jitpack.io/co/paystack/android/paystack/3.0.12/paystack-3.0.12.pom
Required by:
project :app > project :react-native-paystack

  • 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 2m 4s

tons613 avatar Oct 21 '21 06:10 tons613

how do you resolve this issue?

Chinedu25 avatar Jan 28 '22 02:01 Chinedu25

@tolu360 Are you seeing this? Please come to our rescue

natemartins avatar Apr 19 '22 07:04 natemartins

The dependencies have been updated, What I did was to change the version

implementation 'co.paystack.android.design.widget:pinpad:1.0.8' implementation 'co.paystack.android:paystack:3.1.3'

Vincent-presh avatar Nov 12 '22 17:11 Vincent-presh

@tolu360 any update on this?

ckOfor avatar Nov 30 '22 09:11 ckOfor

You can fix this by using a patch package, the issue is that node_modules/react-native-paystack/android/build.gradle is using old packages so change the versions and you will be fine, then use patch package so you don't have to do it every time you install packages.

To fix this edit node_modules/react-native-paystack/android/build.gradle on line 44 and 45 @tons613 let me know how it goes. @Vincent-presh thanks for sharing.

-    implementation 'co.paystack.android.design.widget:pinpad:1.0.1'
-    implementation 'co.paystack.android:paystack:3.0.12'   
+    implementation 'co.paystack.android.design.widget:pinpad:1.0.8'
+    implementation 'co.paystack.android:paystack:3.1.3'

ckOfor avatar Nov 30 '22 10:11 ckOfor