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

[BUG] flutter_stripe build fail after version update #1755

Open
antoniechan opened this issue May 6, 2024 · 6 comments
Open

[BUG] flutter_stripe build fail after version update #1755

antoniechan opened this issue May 6, 2024 · 6 comments
Labels
needs triage Needs triage

Comments

@antoniechan
Copy link

antoniechan commented May 6, 2024

I am getting the following error

e: Supertypes of the following classes cannot be resolved. Please make sure you have the required dependencies in the classpath:
    class com.facebook.react.bridge.ReactApplicationContext, unresolved supertypes: ReactContext
Adding -Xextended-compiler-checks argument might provide additional information.

e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/flutter/stripe/StripeSdkCardFormPlatformView.kt:12:37 Unresolved reference: ThemedReactContext
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/flutter/stripe/StripeSdkCardFormPlatformView.kt:30:40 Unresolved reference: StripeSdkModule
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/flutter/stripe/StripeSdkCardFormPlatformView.kt:34:59 Unresolved reference: ThemedReactContext
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/flutter/stripe/StripeSdkCardPlatformView.kt:9:37 Unresolved reference: ThemedReactContext
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/flutter/stripe/StripeSdkCardPlatformView.kt:25:28 Unresolved reference: StripeSdkModule
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/flutter/stripe/StripeSdkCardPlatformView.kt:28:33 Unresolved reference: ThemedReactContext
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/CardFieldView.kt:15:37 Unresolved reference: ThemedReactContext
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/CardFieldView.kt:35:30 Unresolved reference: ThemedReactContext
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/CardFieldView.kt:60:49 Unresolved reference: showSoftKeyboard
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/CardFieldView.kt:66:47 Unresolved reference: showSoftKeyboard
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/CardFieldView.kt:70:47 Unresolved reference: hideSoftKeyboard
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/CardFieldViewManager.kt:7:37 Unresolved reference: ThemedReactContext
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/CardFieldViewManager.kt:16:32 Unresolved reference: ThemedReactContext
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/CardFieldViewManager.kt:73:49 Unresolved reference: ThemedReactContext
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/CardFieldViewManager.kt:74:26 Unresolved reference: StripeSdkModule
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/CardFieldViewManager.kt:74:74 Unresolved reference: StripeSdkModule
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/CardFieldViewManager.kt:79:22 Variable expected
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/CardFieldViewManager.kt:86:26 Unresolved reference: StripeSdkModule
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/CardFieldViewManager.kt:86:78 Unresolved reference: StripeSdkModule
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/CardFieldViewManager.kt:87:22 Variable expected
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/CardFieldViewManager.kt:92:26 Unresolved reference: StripeSdkModule
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/CardFieldViewManager.kt:92:78 Unresolved reference: StripeSdkModule
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/CardFieldViewManager.kt:96:56 Unresolved reference: ThemedReactContext
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/CardFormView.kt:14:37 Unresolved reference: ThemedReactContext
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/CardFormView.kt:33:29 Unresolved reference: ThemedReactContext
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/CardFormView.kt:105:26 Unresolved reference: showSoftKeyboard
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/CardFormView.kt:112:24 Unresolved reference: showSoftKeyboard
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/CardFormView.kt:117:24 Unresolved reference: hideSoftKeyboard
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/CardFormViewManager.kt:7:37 Unresolved reference: ThemedReactContext
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/CardFormViewManager.kt:13:32 Unresolved reference: ThemedReactContext
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/CardFormViewManager.kt:70:49 Unresolved reference: ThemedReactContext
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/CardFormViewManager.kt:71:26 Unresolved reference: StripeSdkModule
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/CardFormViewManager.kt:71:74 Unresolved reference: StripeSdkModule
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/CardFormViewManager.kt:76:22 Variable expected
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/CardFormViewManager.kt:83:26 Unresolved reference: StripeSdkModule
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/CardFormViewManager.kt:83:78 Unresolved reference: StripeSdkModule
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/CardFormViewManager.kt:84:22 Variable expected
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/CardFormViewManager.kt:89:26 Unresolved reference: StripeSdkModule
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/CardFormViewManager.kt:89:78 Unresolved reference: StripeSdkModule
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/GooglePayButtonView.kt:8:37 Unresolved reference: ThemedReactContext
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/GooglePayButtonView.kt:16:48 Unresolved reference: ThemedReactContext
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/GooglePayButtonView.kt:48:7 Overload resolution ambiguity: 
public constructor GooglePayJsonFactory(context: Context, isJcbEnabled: Boolean = ...) defined in com.stripe.android.GooglePayJsonFactory
public constructor GooglePayJsonFactory(googlePayConfig: GooglePayConfig, isJcbEnabled: Boolean = ...) defined in com.stripe.android.GooglePayJsonFactory
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:22:46 Unresolved reference: AddressSheetView
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:24:39 Unresolved reference: createError
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:60:27 Unresolved reference: createError
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:60:39 Unresolved reference: ErrorType
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:74:21 Unresolved reference: PaymentSheetException
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:75:27 Unresolved reference: createError
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:75:39 Unresolved reference: ErrorType
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:79:7 Unresolved reference: buildPaymentSheetAppearance
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:80:21 Unresolved reference: PaymentSheetAppearanceException
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:81:27 Unresolved reference: createError
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:81:39 Unresolved reference: ErrorType
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:86:7 Unresolved reference: AddressSheetView
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:91:50 Type mismatch: inferred type is ReactApplicationContext but Context? was expected
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:100:11 Unresolved reference: createError
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:100:23 Unresolved reference: PaymentSheetErrorType
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:102:11 Unresolved reference: createError
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:102:23 Unresolved reference: PaymentSheetErrorType
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:111:30 Unresolved reference: createError
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:111:42 Unresolved reference: PaymentSheetErrorType
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:115:34 Unresolved reference: createError
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:115:46 Unresolved reference: PaymentSheetErrorType
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:118:34 Unresolved reference: createError
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:118:46 Unresolved reference: PaymentSheetErrorType
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:123:13 Unresolved reference: removeFragment
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:132:28 Unresolved reference: StripeSdkModule
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:132:55 Unresolved reference: getNativeModule
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:132:55 Cannot access 'ReactContext' which is a supertype of 'com.facebook.react.bridge.ReactApplicationContext'. Check your module classpath for missing or conflicting dependencies
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:132:71 Unresolved reference: StripeSdkModule
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:274:17 Cannot access 'ReactContext' which is a supertype of 'com.facebook.react.bridge.ReactApplicationContext'. Check your module classpath for missing or conflicting dependencies
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:274:17 Unresolved reference: currentActivity
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:285:13 Cannot access 'ReactContext' which is a supertype of 'com.facebook.react.bridge.ReactApplicationContext'. Check your module classpath for missing or conflicting dependencies
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:285:13 Unresolved reference: currentActivity
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:298:50 Type mismatch: inferred type is ReactApplicationContext but Context? was expected
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:329:27 Unresolved reference: createError
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:329:39 Unresolved reference: ErrorType
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:358:14 Unresolved reference: createError
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:358:26 Unresolved reference: PaymentSheetErrorType
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:384:13 Unresolved reference: PaymentSheetException
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:384:13 An annotation argument must be a compile-time constant
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:390:24 Unresolved reference: PaymentSheetException
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:400:18 Unresolved reference: PaymentSheetException
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:411:20 Unresolved reference: PaymentSheetException
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/customersheet/CustomerSheetFragment.kt:16:47 Unresolved reference: ReactNativeCustomerAdapter
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/customersheet/CustomerSheetFragment.kt:34:33 Unresolved reference: ReactNativeCustomerAdapter
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/customersheet/CustomerSheetFragment.kt:72:27 Unresolved reference: createError
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/customersheet/CustomerSheetFragment.kt:72:39 Unresolved reference: ErrorType
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/customersheet/CustomerSheetFragment.kt:76:27 Unresolved reference: createError
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/customersheet/CustomerSheetFragment.kt:76:39 Unresolved reference: ErrorType
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/customersheet/CustomerSheetFragment.kt:81:7 Unresolved reference: buildPaymentSheetAppearance
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/customersheet/CustomerSheetFragment.kt:82:21 Unresolved reference: PaymentSheetAppearanceException
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/customersheet/CustomerSheetFragment.kt:83:27 Unresolved reference: createError
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/customersheet/CustomerSheetFragment.kt:83:39 Unresolved reference: ErrorType
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/customersheet/CustomerSheetFragment.kt:103:30 Unresolved reference: it
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/customersheet/CustomerSheetFragment.kt:125:32 Unresolved reference: createError
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/customersheet/CustomerSheetFragment.kt:125:44 Unresolved reference: ErrorType
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/customersheet/CustomerSheetFragment.kt:132:89 Unresolved reference: ErrorType
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/customersheet/CustomerSheetFragment.kt:170:18 Cannot access 'ReactContext' which is a supertype of 'com.facebook.react.bridge.ReactApplicationContext'. Check your module classpath for missing or conflicting dependencies
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/customersheet/CustomerSheetFragment.kt:170:18 Unresolved reference: currentActivity
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/customersheet/CustomerSheetFragment.kt:182:14 Cannot access 'ReactContext' which is a supertype of 'com.facebook.react.bridge.ReactApplicationContext'. Check your module classpath for missing or conflicting dependencies
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/customersheet/CustomerSheetFragment.kt:182:14 Unresolved reference: currentActivity
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/customersheet/CustomerSheetFragment.kt:199:29 Unresolved reference: createError
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/customersheet/CustomerSheetFragment.kt:199:41 Unresolved reference: ErrorType
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/customersheet/CustomerSheetFragment.kt:206:93 Unresolved reference: ErrorType
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/customersheet/CustomerSheetFragment.kt:211:25 Unresolved reference: createError
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/customersheet/CustomerSheetFragment.kt:211:37 Unresolved reference: CreateTokenErrorType
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/customersheet/CustomerSheetFragment.kt:220:14 Unresolved reference: createError
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/customersheet/CustomerSheetFragment.kt:220:26 Unresolved reference: ErrorType
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/customersheet/CustomerSheetFragment.kt:255:8 Unresolved reference: ReactNativeCustomerAdapter
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/customersheet/CustomerSheetFragment.kt:266:11 Type mismatch: inferred type is ReactApplicationContext but Context was expected
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/customersheet/CustomerSheetFragment.kt:276:11 Type mismatch: inferred type is ReactApplicationContext but Context was expected
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.1.1/android/src/main/kotlin/com/reactnativestripesdk/customersheet/CustomerSheetFragment.kt:282:14 Unresolved reference: ReactNativeCustomerAdapter

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':stripe_android:compileDebugKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
   > Compilation error. See log for more details

* 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 14s
Error: Gradle task assembleDebug failed with exit code 1

This is after updating flutter_stripe to version 10.1.1.
I am already targeting to SDK version 34, below is my app\build.gradle

plugins {
    id "com.android.application"
    id "kotlin-android"
    id "dev.flutter.flutter-gradle-plugin"
    id "com.google.gms.google-services"
}

def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
    localPropertiesFile.withReader('UTF-8') { reader ->
        localProperties.load(reader)
    }
}

def keystoreProperties = new Properties()
def keystorePropertiesFile = rootProject.file('key.properties')
if (keystorePropertiesFile.exists()) {
    keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
}

//def flutterRoot = localProperties.getProperty('flutter.sdk')
//if (flutterRoot == null) {
//    throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
//}

def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
if (flutterVersionCode == null) {
    flutterVersionCode = '1'
}

def flutterVersionName = localProperties.getProperty('flutter.versionName')
if (flutterVersionName == null) {
    flutterVersionName = '1.0'
}

//apply plugin: 'com.android.application'
//apply plugin: 'com.google.gms.google-services'
//apply plugin: 'kotlin-android'
//apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"

android {
    compileSdkVersion 34
    ndkVersion flutter.ndkVersion

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }

    kotlinOptions {
        jvmTarget = '1.8'
    }

    sourceSets {
        main.java.srcDirs += 'src/main/kotlin'
    }

    defaultConfig {
        // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
        applicationId "com.hidden"
        // You can update the following values to match your application needs.
        // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
        minSdkVersion 28
        targetSdkVersion 34
        versionCode flutterVersionCode.toInteger()
        versionName flutterVersionName
        multiDexEnabled true
    }

    signingConfigs {
        release {
            keyAlias keystoreProperties['keyAlias']
            keyPassword keystoreProperties['keyPassword']
            storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
            storePassword keystoreProperties['storePassword']
        }
    }
    buildTypes {
        release {
            signingConfig signingConfigs.release
        }
    }

}

flutter {
    source '../..'
}

dependencies {
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.9.22"
    implementation 'androidx.multidex:multidex:2.0.1'
    implementation(platform("com.google.firebase:firebase-bom:32.1.1"))
    implementation 'com.google.firebase:firebase-analytics'
    implementation("com.google.firebase:firebase-auth-ktx")
    implementation("com.google.firebase:firebase-auth")
    implementation("com.google.firebase:firebase-firestore")
    implementation "androidx.activity:activity:1.6.0-alpha05"
    implementation 'com.google.android.recaptcha:recaptcha:18.4.0'
}

I have also tried to add the android\app\src\main\kotlin\androidx\compose\ui\platform\LocalSoftwareKeyboardController.kt as below but it still does not work

package androidx.compose.ui.platform

import androidx.compose.runtime.Composable

// Used by Stripe Android SDK
// Work around for https://github.com/stripe/stripe-android/issues/7184
// This existed as Experimental in Compose 1.5, but was moved to a val in in Compose 1.6
@Suppress("unused")
object LocalSoftwareKeyboardController {
    val current
        @Composable
        get() = LocalSoftwareKeyboardController.current
}

Can anyone please help me? It is very frustrating and annoying that I cannot do anything to update my app because of build fail now

@antoniechan antoniechan added the needs triage Needs triage label May 6, 2024
@remonh87
Copy link
Member

remonh87 commented May 16, 2024

did you upgrade the project to java 17? Also kotlin version must be 1.8.10 and gradle should be gradle8. See also: https://github.com/flutter-stripe/flutter_stripe/blob/main/example/android/app/build.gradle

@richardhfj
Copy link

I was using 10.1.1, and saw that there was a new update for 10.2.0
i updated to 10.2.0 and am getting the same error as above. I used flutter clean, invalidate cache/restart in Android Studio, but I am still getting
Execution failed for task ':stripe_android:compileDebugKotlin'.

A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction

I tried to downgrade back down to 10.1.1, but it is still producing the same error
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentLauncherFragment.kt:13:39 Unresolved reference: createError
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentLauncherFragment.kt:14:39 Unresolved reference: createMissingActivityError
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentLauncherFragment.kt:139:27 Unresolved reference: createError
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentLauncherFragment.kt:139:39 Unresolved reference: ErrorType
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentLauncherFragment.kt:142:25 Unresolved reference: createMissingActivityError
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentLauncherFragment.kt:185:27 Unresolved reference: createError
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentLauncherFragment.kt:185:39 Unresolved reference: ConfirmPaymentErrorType
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentLauncherFragment.kt:189:27 Unresolved reference: createError
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentLauncherFragment.kt:189:39 Unresolved reference: ConfirmPaymentErrorType
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentLauncherFragment.kt:199:25 Unresolved reference: createError
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentLauncherFragment.kt:199:37 Unresolved reference: ConfirmSetupIntentErrorType
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentLauncherFragment.kt:216:33 Unresolved reference: createError
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentLauncherFragment.kt:216:45 Unresolved reference: ConfirmSetupIntentErrorType
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentLauncherFragment.kt:218:33 Unresolved reference: createError
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentLauncherFragment.kt:218:45 Unresolved reference: ConfirmSetupIntentErrorType
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentLauncherFragment.kt:223:29 Unresolved reference: createError
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentLauncherFragment.kt:223:41 Unresolved reference: ConfirmSetupIntentErrorType
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentLauncherFragment.kt:226:29 Unresolved reference: createError
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentLauncherFragment.kt:226:41 Unresolved reference: ConfirmSetupIntentErrorType
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentLauncherFragment.kt:229:29 Unresolved reference: createError
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentLauncherFragment.kt:229:41 Unresolved reference: ConfirmSetupIntentErrorType
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentLauncherFragment.kt:240:25 Unresolved reference: createError
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentLauncherFragment.kt:240:37 Unresolved reference: ConfirmPaymentErrorType
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentLauncherFragment.kt:257:33 Unresolved reference: createError
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentLauncherFragment.kt:257:45 Unresolved reference: ConfirmPaymentErrorType
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentLauncherFragment.kt:259:33 Unresolved reference: createError
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentLauncherFragment.kt:259:45 Unresolved reference: ConfirmPaymentErrorType
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentLauncherFragment.kt:264:29 Unresolved reference: createError
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentLauncherFragment.kt:264:41 Unresolved reference: ConfirmPaymentErrorType
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentLauncherFragment.kt:267:29 Unresolved reference: createError
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentLauncherFragment.kt:267:41 Unresolved reference: ConfirmPaymentErrorType
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentLauncherFragment.kt:270:29 Unresolved reference: createError
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentLauncherFragment.kt:270:41 Unresolved reference: ConfirmPaymentErrorType
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:22:46 Unresolved reference: AddressSheetView
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:24:39 Unresolved reference: createError
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:62:27 Unresolved reference: createError
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:62:39 Unresolved reference: ErrorType
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:78:21 Unresolved reference: PaymentSheetException
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:79:27 Unresolved reference: createError
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:79:39 Unresolved reference: ErrorType
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:83:7 Unresolved reference: buildPaymentSheetAppearance
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:84:21 Unresolved reference: PaymentSheetAppearanceException
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:85:27 Unresolved reference: createError
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:85:39 Unresolved reference: ErrorType
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:90:7 Unresolved reference: AddressSheetView
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:104:11 Unresolved reference: createError
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:104:23 Unresolved reference: PaymentSheetErrorType
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:106:11 Unresolved reference: createError
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:106:23 Unresolved reference: PaymentSheetErrorType
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:115:30 Unresolved reference: createError
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:115:42 Unresolved reference: PaymentSheetErrorType
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:119:34 Unresolved reference: createError
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:119:46 Unresolved reference: PaymentSheetErrorType
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:122:34 Unresolved reference: createError
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:122:46 Unresolved reference: PaymentSheetErrorType
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:136:28 Unresolved reference: StripeSdkModule
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:136:71 Unresolved reference: StripeSdkModule
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:340:27 Unresolved reference: createError
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:340:39 Unresolved reference: ErrorType
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:369:14 Unresolved reference: createError
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:369:26 Unresolved reference: PaymentSheetErrorType
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:395:13 Unresolved reference: PaymentSheetException
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:395:13 An annotation argument must be a compile-time constant
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:401:24 Unresolved reference: PaymentSheetException
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:411:18 Unresolved reference: PaymentSheetException
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/PaymentSheetFragment.kt:422:20 Unresolved reference: PaymentSheetException
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/customersheet/CustomerSheetFragment.kt:16:47 Unresolved reference: ReactNativeCustomerAdapter
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/customersheet/CustomerSheetFragment.kt:35:33 Unresolved reference: ReactNativeCustomerAdapter
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/customersheet/CustomerSheetFragment.kt:74:27 Unresolved reference: createError
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/customersheet/CustomerSheetFragment.kt:74:39 Unresolved reference: ErrorType
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/customersheet/CustomerSheetFragment.kt:78:27 Unresolved reference: createError
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/customersheet/CustomerSheetFragment.kt:78:39 Unresolved reference: ErrorType
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/customersheet/CustomerSheetFragment.kt:83:7 Unresolved reference: buildPaymentSheetAppearance
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/customersheet/CustomerSheetFragment.kt:84:21 Unresolved reference: PaymentSheetAppearanceException
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/customersheet/CustomerSheetFragment.kt:85:27 Unresolved reference: createError
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/customersheet/CustomerSheetFragment.kt:85:39 Unresolved reference: ErrorType
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/customersheet/CustomerSheetFragment.kt:109:30 Unresolved reference: it
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/customersheet/CustomerSheetFragment.kt:131:32 Unresolved reference: createError
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/customersheet/CustomerSheetFragment.kt:131:44 Unresolved reference: ErrorType
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/customersheet/CustomerSheetFragment.kt:138:89 Unresolved reference: ErrorType
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/customersheet/CustomerSheetFragment.kt:205:29 Unresolved reference: createError
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/customersheet/CustomerSheetFragment.kt:205:41 Unresolved reference: ErrorType
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/customersheet/CustomerSheetFragment.kt:212:93 Unresolved reference: ErrorType
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/customersheet/CustomerSheetFragment.kt:217:25 Unresolved reference: createError
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/customersheet/CustomerSheetFragment.kt:217:37 Unresolved reference: CreateTokenErrorType
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/customersheet/CustomerSheetFragment.kt:226:14 Unresolved reference: createError
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/customersheet/CustomerSheetFragment.kt:226:26 Unresolved reference: ErrorType
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/customersheet/CustomerSheetFragment.kt:261:8 Unresolved reference: ReactNativeCustomerAdapter
e: file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/stripe_android-10.2.1/android/src/main/kotlin/com/reactnativestripesdk/customersheet/CustomerSheetFragment.kt:288:14 Unresolved reference: ReactNativeCustomerAdapter

if I am using 10.1.1 or 10.2.0, why is it getting an error for 10.2.1? I also tried to remove these folders from the primary directory, but it didn't do anything.

Any help would be great, thank you.

@DonnyDevIT
Copy link

Same here... what to do

@osamaeshmilh
Copy link

same problem

@nayanbabariya
Copy link

I Solved using below configuration:

gradle.properties

org.gradle.jvmargs=-Xmx2048M

gradle-wrapper.properties

distributionUrl=https://services.gradle.org/distributions/gradle-8.9-bin.zip

Kotlin version on settings.gradle

id "org.jetbrains.kotlin.android" version "2.0.0" apply false

@agonzalezpuerta
Copy link

In my case, I was overriding the following dependecy stripe_android: "9.5.0+1". Removal of this override fixed it for me.

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

No branches or pull requests

7 participants