Comments (6)
@Girum upgrade minSdkVersion to 24
from react-native-iap.
Could you try updating your build.gradle file like below?
// In your root build.gradle file
buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:7.0.0' // or a compatible version
}
}
// In your gradle-wrapper.properties file
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0-bin.zip // or a compatible version
Also try to clean and rebuild
./gradlew clean
./gradlew build
If the issue persists, we need additional information to accurately diagnose the cause. Please provide the following details:
- PC environment (operating system, version, etc.)
- Information about the Android device you are using
- React Native version
- List of other dependencies in the project
Providing this information will help us diagnose and resolve the issue more precisely.
from react-native-iap.
Faced the same error after upgrading targetSdk to 34 as well
from react-native-iap.
Hi!
Here to open it again....
I have the same problem yet. Te deadline is August 31, but it happens the same error.
I'm with distributionUrl=https://services.gradle.org/distributions/gradle-8.0.1-all.zip (like the example folder) (previously i was with the 7-5)
And in de build.gradle its classpath('com.android.tools.build:gradle')
targetSdk to 34
Anyone with this problem?
from react-native-iap.
@Girum upgrade minSdkVersion to 24
This worked for me where nothing else would, thank you. What a shame to lose users with old devices! Google's treadmill of progress is crap for poorer users and the planet, imho.
from react-native-iap.
I encountered this problem too, and I'd like to keep my minSdkVersion at 21 so I looked a little further and found this:
I added the following two lines to my debug build type in /android/app/build.gradle:
...
buildTypes {
debug {
minifyEnabled true
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
...
but I found that I was getting crashes on startup due to the obfuscation. I was able to fix it by adding the following line to /android/app/proguard-rules.pro:
-keep class com.facebook.** {*;}
I'm still not happy with the solution since I don't really want obfuscated code in debug builds and also there must be some react-native proguard rules that are getting picked up in release builds but not debug builds that I should be tapping into rather than the blanket keep I'm using here, but I thought I'd post this in case anyone else is having issues.
from react-native-iap.
Related Issues (20)
- Promoted in App Purchase is not working on the cold start of app in latest version of the react native IAP
- react-native-iap 12.15.1 ios bug
- [BUG] Build error react-native-iap:compilePlayDebugKotlin HOT 1
- Android getSubscriptions and getProducts always return an empty array
- [BUG] Build error in iOS - The following build commands failed: SwiftCompile normal arm64 Compiling HOT 1
- [Expo + Android] Build failing
- Error Billing is unavailable. This may be a problem with your device, or the Play Store may be down. HOT 1
- Subscription Bottom Sheet Popup Loop on "Subscribe" Button Click in Sandbox Environment HOT 6
- Unable to get product from testflight IOS HOT 2
- Previous request was cancelled due to a new request - iOS HOT 8
- [Android]: on `requestSubscription` getting payment page but parallelly it's throwing an error "Connection has been closed"
- Cannot restore purchase using currentPurchaseError listner
- Getting 21002 at time of verifyReceipt of iOS HOT 16
- currentPurchase from useIAP() is undefined
- Even though I added iOS items, the products appear blank.
- Typescript v5.5.4 makes iap hanging on iOS
- [Android] builds will likely break on RN 0.75 / Expo 52
- [IOS] After call getAvailablePurchases(), purchaseUpdatedListener triggered many times
- Does getPurchaseHistory() return all the purchases of monthly subscription?
- Not able to pay with any other payment method
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-iap.