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

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

Open
tons613 opened this issue Oct 21, 2021 · 5 comments
Open

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

tons613 opened this issue Oct 21, 2021 · 5 comments

Comments

@tons613
Copy link

tons613 commented Oct 21, 2021

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

@Chinedu25
Copy link

how do you resolve this issue?

@natemartins
Copy link

natemartins commented Apr 19, 2022

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

@Vincent-presh
Copy link

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'

@ckOfor
Copy link

ckOfor commented Nov 30, 2022

@tolu360 any update on this?

@ckOfor
Copy link

ckOfor commented Nov 30, 2022

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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants