Expo初使用踩坑
-
使用eas build打包安卓,云端查看日志报错--->run gradlew--->提示compileSdkVersion版本问题:
解决办法:
-
项目中安装expo-build-properties插件:
expo install expo-build-properties -
在app.json中添加:
{ "expo":{ ... "plugins": [ [ "expo-build-properties", { "android": { "compileSdkVersion": 33 } } ] ] } }重新执行:
eas build --platform android -