Skip to main content
Solved

expo local android build fails since revenuecat minSdk requirement

  • 13 July 2024
  • 1 reply
  • 34 views

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.

 

This post has been closed for comments

1 reply

Badge +5

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.