Could not find co.paystack.android:paystack:3.0.12
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
how do you resolve this issue?
@tolu360 Are you seeing this? Please come to our rescue
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'
@tolu360 any update on this?
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'