1.打包
-
debug包:
windows系统:gradlew assembleDebug
Mac系统:./gradlew assembleDebug
-
release包:
windows系统:gradlew assembleRelease
Mac系统:./gradlew assembleRelease
2.打包完成后安装
-
debug包:
windows系统:gradlew installDebug
Mac系统:./gradlew installDebug
-
release包:
windows系统:gradlew installRelease
Mac系统:./gradlew installRelease
3. 强制刷新依赖
windows系统:gradlew --refresh-dependencies
Mac系统:./gradlew --refresh-dependencies
4.打包安装app的同时更新依赖
-
debug包:
windows系统:gradlew installDebug --refresh-dependencies
Mac系统:./gradlew installDebug --refresh-dependencies
-
release包:
windows系统:gradlew installRelease --refresh-dependencies
Mac系统:./gradlew installRelease --refresh-dependencies
5.组合
打包安装app的同时,clean工程并更新依赖:
windows系统:gradlew clean assembleDebug --refresh-dependencies
Mac系统:./gradlew clean assembleDebug --refresh-dependencies
网友评论