Skip to main content
Solved

expo local android build fails since revenuecat minSdk requirement

  • 13 July 2024
  • 1 reply
  • 100 views

yavuzakyazici
Forum|alt.badge.img+5

I am getting this error..
[RUN_GRADLEW]   uses-sdk:minSdkVersion 23 cannot be smaller than version 24 declared in library [com.revenuecat.purchases:purchases-hybrid-common-ui:11.1.1]

Does anybody know how to fix this?

I checked out Androidmanifest.xml and build.gradle and could not find where the error comes from.

 

Best answer by yavuzakyazici

OK, I resolved this myself. However, there was another similar post and it was not clear how it was resolved so I am posting my solution.

I installed expo build properties plugin …
 

npm install expo-build-properties

Then I added this fragment to app.json under plugins…

 

"plugins": [
      ........


      [
        "expo-build-properties",
        {
          "android": {
          "minSdkVersion": 24
          }
        }
      ]

....


    ]

Then build worked. Otherwise revenuecat is requiring “minSdkVersion” : 24 and default is 23 so it was conflicting. This resolves it.

View original
Did this post help you find an answer to your question?
This post has been closed for comments

1 reply

yavuzakyazici
Forum|alt.badge.img+5
  • Author
  • Helper
  • 21 replies
  • Answer
  • July 14, 2024

OK, I resolved this myself. However, there was another similar post and it was not clear how it was resolved so I am posting my solution.

I installed expo build properties plugin …
 

npm install expo-build-properties

Then I added this fragment to app.json under plugins…

 

"plugins": [
      ........


      [
        "expo-build-properties",
        {
          "android": {
          "minSdkVersion": 24
          }
        }
      ]

....


    ]

Then build worked. Otherwise revenuecat is requiring “minSdkVersion” : 24 and default is 23 so it was conflicting. This resolves it.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings