While build my expo managed workflow react native base project on expo using the command eas build -p android. the app build was failed on run gradlew
twhile go through the logs, its says app is currently compiled against android-33 but expecting android-34
A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction
> An issue was found when checking AAR metadata:
1. Dependency 'androidx.browser:browser:1.6.0-beta01' requires libraries and applications that
depend on it to compile against version 34 or later of the Android APIs.
:app is currently compiled against android-33.
Also, the maximum recommended compile SDK version for Android Gradle
plugin 7.4.1 is 33.
Recommended action: Update this project's version of the Android Gradle
plugin to one that supports 34, then update this project to use
compileSdkVerion of at least 34.
while search for solutions, i found that changing complieSdkversion and TargetedSdkVersion to 34 in app.json
{
"expo": {
......
"android": {
"adaptiveIcon": {
"foregroundImage": "./assets/adaptive-icon.png",
"backgroundColor": "#ffffff"
},
"package": "com.kannan.mobileapp",
"compileSdkVersion": 34,
"targetSdkVersion":34
},
}}
but this wasn't worked out for me.
In my root project directory i don't have any android folder and build.gradle file so I can't do any changes in it. because the project was under expo managed workflow.
is there any possible solutions for changing the complied sdk version to android-34?
I solved it on my own, i found out the solution in github. https://github.com/expo/expo/issues/23488