Skip to main content

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.

 

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": i
........



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