590 B
590 B
初始化项目
打包
云打包
- 安装 EAS CLI
npm install -g eas-cli
- 注册并登录 Expo 账户
访问 https://expo.dev/ 注册账户,然后命令行登录:
expo login
- 配置项目构建
eas build:configure
选择 Android 平台即可。
- 构建 Android 包
默认构建 AAB 包(上传 Google Play):
eas build --platform android
构建 APK(可直接安装):
eas build -p android --profile preview