Comments (8)
I am getting the same error even not on RN 63.4 and even with a fresh install .
from react-native-adyen-payment.
**Steps to reproduce **
1 ) expo init adyenTest
2) minimal bare workflow
3) yarn add react-native-adyen-payment
4) yarn android
Following Error
Task :react-native-adyen-payment:compileDebugKotlin FAILED
w: Detected multiple Kotlin daemon sessions at build/kotlin/sessions
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.8/userguide/command_line_interface.html#sec:command_line_warnings
271 actionable tasks: 265 executed, 6 up-to-date
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: /Users/kashifjavaid/Desktop/AdyenTest/adyentest/node_modules/expo-application/android/src/main/java/expo/modules/application/ApplicationModule.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /Users/kashifjavaid/Desktop/AdyenTest/adyentest/node_modules/expo-constants/android/src/main/java/expo/modules/constants/ConstantsService.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /Users/kashifjavaid/Desktop/AdyenTest/adyentest/node_modules/expo-file-system/android/src/main/java/expo/modules/filesystem/FileSystemModule.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /Users/kashifjavaid/Desktop/AdyenTest/adyentest/node_modules/expo-file-system/android/src/main/java/expo/modules/filesystem/FileSystemModule.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
e: /Users/kashifjavaid/Desktop/AdyenTest/adyentest/node_modules/react-native-adyen-payment/android/src/main/java/com/rnlib/adyen/AdyenPaymentModule.kt: (240, 32): Type mismatch: inferred type is String? but String was expected
e: /Users/kashifjavaid/Desktop/AdyenTest/adyentest/node_modules/react-native-adyen-payment/android/src/main/java/com/rnlib/adyen/AdyenPaymentModule.kt: (521, 23): Type mismatch: inferred type is String? but String was expected
e: /Users/kashifjavaid/Desktop/AdyenTest/adyentest/node_modules/react-native-adyen-payment/android/src/main/java/com/rnlib/adyen/service/ComponentService.kt: (95, 33): Type mismatch: inferred type is PaymentComponentData? but PaymentComponentData was expected
e: /Users/kashifjavaid/Desktop/AdyenTest/adyentest/node_modules/react-native-adyen-payment/android/src/main/java/com/rnlib/adyen/ui/AdyenComponentActivity.kt: (107, 38): Type mismatch: inferred type is CallResult? but CallResult was expected
e: /Users/kashifjavaid/Desktop/AdyenTest/adyentest/node_modules/react-native-adyen-payment/android/src/main/java/com/rnlib/adyen/ui/AdyenComponentActivity.kt: (169, 46): Type inference failed. Expected type mismatch: inferred type is AdyenComponentConfiguration? but AdyenComponentConfiguration was expected
e: /Users/kashifjavaid/Desktop/AdyenTest/adyentest/node_modules/react-native-adyen-payment/android/src/main/java/com/rnlib/adyen/ui/AdyenComponentActivity.kt: (173, 68): Type inference failed. Expected type mismatch: inferred type is PaymentMethodsApiResponse? but PaymentMethodsApiResponse was expected
e: /Users/kashifjavaid/Desktop/AdyenTest/adyentest/node_modules/react-native-adyen-payment/android/src/main/java/com/rnlib/adyen/ui/AdyenComponentActivity.kt: (198, 20): Type inference failed. Expected type mismatch: inferred type is Intent? but Intent was expected
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ':react-native-adyen-payment:compileDebugKotlin'.
Compilation error. See log for more details
Package.json
{
"main": "index.js",
"scripts": {
"android": "react-native run-android",
"ios": "react-native run-ios",
"web": "expo start --web",
"start": "react-native start"
},
"dependencies": {
"expo": "~42.0.1",
"expo-splash-screen": "~0.11.2",
"expo-status-bar": "~1.0.4",
"expo-updates": "~0.8.1",
"react": "16.13.1",
"react-dom": "16.13.1",
"react-native": "~0.63.4",
"react-native-adyen-payment": "^1.8.3",
"react-native-gesture-handler": "~1.10.2",
"react-native-reanimated": "~2.2.0",
"react-native-screens": "~3.4.0",
"react-native-unimodules": "~0.14.5",
"react-native-web": "~0.13.12"
},
"devDependencies": {
"@babel/core": "^7.9.0"
},
"private": true
}
from react-native-adyen-payment.
I have tried opening the android project of this repo in android studio 4.1 and there are alot of errors when trying to compile android module ,
from react-native-adyen-payment.
Can you try with an older version of this dependency? I am personally still running on a fork of 1.6.1 that should be equal to 1.7.0 of the main repository (https://github.com/flyingfishtech/react-native-adyen-payment @master to be precise). That version does fully work.
Maybe one of the changes in 1.8.x broke something
from react-native-adyen-payment.
@ChielBruin Yeah Thanks , It works for api 29 and but get the same errors as you if if update it to sdk target 30.
from react-native-adyen-payment.
@mkharibalaji I am trying to run the android project inside src folder so i could fix the issues on android , but i am getting the following errors in android studio . Just made no sense . I am using android studio 4.1 . I tried to contact you help me get running so i could contribute and fix some of these issues . shall wait for your reply . I am kinda a stuck atm.
nfrom react-native-adyen-payment.
Hi,
same issue here with:
React native : 0.64.0
react-native-adyen-payment": 1.8.3
getting Task :react-native-adyen-payment:compileDebugKotlin FAILED
in Android. Not able to run the project.
Thanks
from react-native-adyen-payment.
i had this issue, i dont remember exactly what I did to resolve.
but here is my build.gradle file
buildscript {
ext {
buildToolsVersion = "30.0.2"
minSdkVersion = 21
compileSdkVersion = 30
targetSdkVersion = 30
ndkVersion = "21.3.6528147"
}
be sure you have this version of NDK installed
from react-native-adyen-payment.
Related Issues (20)
- [Android] 3DS2 Infinite Loading HOT 1
- iOS Example don't work
- stuck on "CVC is not the right length" HOT 1
- Adyen Error on paymentMethod
- crash on Huawei devices,
- Apple Pay HOT 9
- Cant hide showStoredPaymentMethod with BCMC on IOS HOT 2
- Apple Pay doesnt work HOT 5
- Plans to update for adyen-android 4.0.0? HOT 8
- Payment has error HOT 2
- UI for showing cardHolder name. HOT 1
- Could not find com.tencent.mm.opensdk:wechat-sdk-android-without-mta:5.1.6. HOT 7
- Android cannot link lib if MainApplication is Kotlin file
- Question: How to build AdyenPayment HOT 1
- Building Android for Expo EAS Crashing org.gradle.api.internal.artifacts.repositories.DefaultFlatDirArtifactRepository HOT 1
- React peer dependency version
- Linking failed even though I add manually to MainApplication.java HOT 1
- Question for AdyenPayment.initialize? HOT 12
- Question - Is it compatible with GraphQL api? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-adyen-payment.