Skip to main content
Answer

expo local android build fails since revenuecat minSdk requirement

  • July 13, 2024
  • 1 reply
  • 201 views

yavuzakyazici
Forum|alt.badge.img+6

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.

This post has been closed for comments

1 reply

yavuzakyazici
Forum|alt.badge.img+6
  • Author
  • Helper
  • 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.