mkharibalaji / react-native-adyen-payment

React Native Adyen Payment
https://mkharibalaji.github.io/react-native-adyen-payment/
MIT License
35 stars 35 forks source link

Could not find com.tencent.mm.opensdk:wechat-sdk-android-without-mta:5.1.6. #68

Open akhilsanker opened 2 years ago

akhilsanker commented 2 years ago

Hi,

I am following error while running it on Android:

Could not resolve all files for configuration ':app:debugRuntimeClasspath'. Could not find com.tencent.mm.opensdk:wechat-sdk-android-without-mta:5.1.6. Required by: project :app > project :react-native-adyen-payment > com.adyen.checkout:drop-in:3.6.4 > com.adyen.checkout:wechatpay-base:3.6.4 Could not find io.michaelrocks:paranoid-core:0.2.4. Required by: project :app > project :react-native-adyen-payment > com.adyen.checkout:drop-in:3.6.4 > com.adyen.checkout:3ds2:3.6.4 > com.adyen.threeds:adyen-3ds2:2.1.0-rc07

My environment details is as follows:

"react-native-adyen-payment": "^1.8.3", "react": "17.0.2", "react-native": "0.66.2", Android Studio: 2020.3 AI-203.7717.56.2031.7784292, AVD: Android 12

Thanks.

disko998 commented 2 years ago

@akhilsanker Same here any solution so far?

phil-lui commented 2 years ago

This may due to jcenter deprecation issue

Maven repository com.tencent.mm.opensdk:wechat-sdk-android-without-mta

I found that 5.1.6 exists in jcenter only. It seems cannot get the package from jcenter.

the wechat dependency is from Adyen. I checked the dependency of this repo and found the adyen dependency is 3.6.4, and the latest version is 4.4.0 already.

I think the dependency need to be upgraded to solve this issue. Even 3.8.3 still using wechat sdk 5.1.6.

Also this issue need to be reopened?

phil-lui commented 2 years ago

Workaround: download jar from jcenter directly instead of using gradle to pull package from jcenter

Maven repository com.tencent.mm.opensdk:wechat-sdk-android-without-mta:5.1.6 @ jcenter

Gp2mv3 commented 2 years ago

I can confirm that we have to upgrade the dependency com.adyen.checkout:drop-in unfortunately, we have to upgrade it to 4.X.X which breaks the whole code of this package.

Jcenter is already deprecated for a long time and is currently having issues so it's important to be ready for its complete shutdown by upgrading the package.

Gp2mv3 commented 2 years ago

The issue comes from jcenter being down. The solution is currently (as the package still needs the wechat SDK and the paranoid-core which comes from center) to download those in jar and put them in your android/app/libs folder.

An update of the Adyen SDK is needed if we want to remove those jar includes.

akhilsanker commented 2 years ago

Hi @Gp2mv3 ,

Thanks for the response. But I am unable to download the jar from this:

Workaround: download jar from jcenter directly instead of using gradle to pull package

Maven repository com.tencent.mm.opensdk:wechat-sdk-android-without-mta:5.1.6 @ jcenter

Is there something that I am missing?

Also currently in my project, there is no lib folder in android/app/, so the workaround will be like I need to download the jar file and create a new folder android/app/libs and paste the downloaded file in that folder. Please correct me if I am wrong.

Thanks.