react-native-iap icon indicating copy to clipboard operation
react-native-iap copied to clipboard

Error building expo managed project only when using react-native-iap

Open axelmy318 opened this issue 1 year ago • 3 comments

Description

expo managed build always fails only when using react-native-iap

Environment:

  • react-native-iap:
  • react-native:
  • Andoid

To Reproduce Steps to reproduce the behavior:

  1. npx expo install react-native-iap
  2. npx expo run:android --variant release

error

I tried removing react-native-iap from the package.json and from my components and the build works just fine


Additional Context Inside my app.json I have

"expo" {
[...]
"plugins": [
      "react-native-iap",
      [
        "expo-updates",
        {
          "username": "axelmylc"
        }
      ]
    ],
[...]
}

Anyone has a solution for this ? Thanks

axelmy318 avatar Mar 10 '23 17:03 axelmy318

try --variant AmazonRelease according to the logs you posted

andresesfm avatar Mar 13 '23 18:03 andresesfm

try https://react-native-iap.dooboolab.com/docs/faq/#api

{
  "expo": {
    "plugins": [
      [
        "react-native-iap",
        {
          "paymentProvider": "both"
        }
      ]
    ]
  }
}

saravanakumargn avatar Mar 24 '23 05:03 saravanakumargn

@axelmy318 I was also facing this issue and I have resolved it by following this documentation. https://react-native-iap.dooboolab.com/docs/get-started Read the android configuration part.

MuhammadFaisal215 avatar Apr 24 '24 10:04 MuhammadFaisal215