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

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

Open
axelmy318 opened this issue Mar 10, 2023 · 3 comments
Open
Labels
ⓐ amazon 🤖 android Related to android

Comments

@axelmy318
Copy link

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

@andresesfm
Copy link
Contributor

try --variant AmazonRelease according to the logs you posted

@andresesfm andresesfm added 🤖 android Related to android ⓐ amazon labels Mar 13, 2023
@saravanakumargn
Copy link

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

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

@MuhammadFaisal215
Copy link

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ⓐ amazon 🤖 android Related to android
Projects
None yet
Development

No branches or pull requests

4 participants