Giter Club home page Giter Club logo

Comments (6)

tien271 avatar tien271 commented on August 16, 2024 4

@Girum upgrade minSdkVersion to 24

from react-native-iap.

hyochan avatar hyochan commented on August 16, 2024

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.

ifatmaru avatar ifatmaru commented on August 16, 2024

Faced the same error after upgrading targetSdk to 34 as well

from react-native-iap.

Girum avatar Girum commented on August 16, 2024

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.

chichilatte avatar chichilatte commented on August 16, 2024

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

steven-sh avatar steven-sh commented on August 16, 2024

I encountered this problem too, and I'd like to keep my minSdkVersion at 21 so I looked a little further and found this:

https://stackoverflow.com/questions/78113826/failed-to-transform-firebase-auth-22-3-1-aar/78149818#78149818

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.