How to ensure Android Gradle plugin is at least version 8.9.1 in Expo? #40
-
|
Hey there, First, thanks for maintaining this great library. Looking forward to trying out the ongoing upgrades! I've been using v3.2.0 of the plugin on my Expo app and got it working fine on both Android & iOS. I just tried upgrading to v4.0.0, and am now running into errors when I try to rebuild, which seem to stem from my Android Gradle plugin (AGP) version being pre-8.9.1. I ensured a clean prebuild using However, it seems that it's still using v8.8.2 of AGP. I'm not sure why it doesn't default to the most current version. I opened the project in Android Studio and it prompted me to run the AGP Upgrade Assistant to update it. I picked version 8.9.1, but it wouldn't let me proceed because the build files didn't specifically target a version yet. So I changed the line above to: to be explicit, and then it recognized the change and allowed me to proceed with AGP Upgrade Assistant to update it to 8.9.1. So I got that far. Then I tried to rebuild the app, but now I have new errors: Did this update to AGP somehow cause a new dependcency on Android API 36? I'd prefer not to dive into targeting Android API 36 at the moment as it might cause other headaches (which my team can deal with when we have time). Even if I did solve this new API dependency, I'm not sure how to tell Expo to use AGP 8.9.1. Seems that I can't specify this requirement in Expo's I'm just trying to understand how others working on this project/maintaining it didn't run into this issue? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
@sbaiahmed1 👀👀👀 |
Beta Was this translation helpful? Give feedback.
I think this can be solved with an expo plugin or updating expo to a new version