I am unable to open React native android app after uninstall tipsi-stripe and @stripe/stripe-react-native library installed , android build is getting failed and showing below errors.
Error -1 :
import com.reactnativestripesdk.StripeSdkPackage;
^
E:momshare-appandroidappsrcmainjavacommomReminder.java:38: error: cannot find symbol
.setSmallIcon(R.drawable.stp_card_form_back)
^
symbol: variable stp_card_form_back
Error -2 :
List.java:125: error: cannot find symbol
new StripeSdkPackage(),
^
symbol: class StripeSdkPackage
location: class PackageList
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Error -3 :
What went wrong:
Execution failed for task ‘:app:compileDebugJavaWithJavac’.
Compilation failed; see the compiler error output for details.
2
Answers
You cannot replace
tipsi-stripe
withreact-native-stripe
and expect everything to work. You should review the migration guide for formertipsi-stripe
users to see what is required.Try updating your
compileSdkVersion
andtargetSdkVersion
toas
react-native-stripe
minimum requirements aresource: https://www.npmjs.com/package/@stripe/stripe-react-native