skip to Main Content

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.

enter image description here

2

Answers


  1. You cannot replace tipsi-stripe with react-native-stripe and expect everything to work. You should review the migration guide for former tipsi-stripe users to see what is required.

    Login or Signup to reply.
  2. Try updating your compileSdkVersion and targetSdkVersion to

    compileSdkVersion 33
    targetSdkVersion 33 
    

    as react-native-stripe minimum requirements are

    enter image description here

    source: https://www.npmjs.com/package/@stripe/stripe-react-native

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search