当前位置:网站首页>项目,怎么打包
项目,怎么打包
2022-04-23 06:07:00 【独饮敌敌畏丶】
1.这时候,需要切换渠道
当项目文件的图片是如图所示时,则表明需要切换到相应渠道了
图标是这样的,因为我没有用google渠道。那么切换到google渠道就行了
2.如何打包
用AS运行项目,每种渠道可以有两种模式,即Debug模式和Release模式。(两种模式可以通过Build Variant进行更改)
Debug模式一般是我们私下测试用的,可以使用默认的debug.keystore进行签名。
Release一般是发布在市场上的正式版。我们正式发布项目的时候是不能使用debug.keystore的,而是需要我们自己创建签名,之后才可以正常运行。
我们打包,一般就是打Release版本,打包成apk,然后去网络上发行
(1)如何创建某一渠道的Debug和Release
AS更新之后好像不行了,到时候用的时候,搜一下Android项目如何创建多渠道就行
(2)如何创建签名
设置keystore路径、密码。
设置key:
别名、密码、有效期,证书等
具体的
Key store path:
存放路径
Key
Alias:
别名
Validity(years):
有效期(一般默认25年)
Certificate:
证书
First and Last Name
:姓名
Organization Unit
:组织单位
Organization
:组织
City or Locality
:城市或地区
State or Province
:州或省
Country Code(XX)
:国家代码(XX),中国:86
(3)具体打包方式
做完上面的操作之后,可以找到项目的local.properties文件,然后添加版本号和设置是否是测试环境。
VERSION_CODE=452
IS_TEST_EVN = false
假设要发布正式版,则
IS_TEST_EVN
设置为false
然后更改相应的渠道!!!,比如要打谷歌正式包,就改为这个渠道
然后点击AS右侧的gradle,找到我们的项目,然后点击Tasks,点击build进行打包,里面有各种各样的assemblexxx,我们选一个assembleVivo,则AS会帮我们自动打包
稍等片刻,在Project模式下,按如图所示的目录,即可找到已经打包完成的文件
3.1.8
可以通过项目的build.gradle文件进行设置。
版权声明
本文为[独饮敌敌畏丶]所创,转载请带上原文链接,感谢
https://blog.csdn.net/afdafvdaa/article/details/121335656
边栏推荐
- Kubernetes coredns FAQ reference
- iTOP4412内核反复重启
- [Exynos4412][iTOP4412][Android-K]添加产品选项
- oracle 修改默认临时表空间
- 同时解决高度塌陷和外边距重叠问题
- error 403 In most cases, you or one of your dependencies are requesting解决
- oracle通过触发器和序列来定义自增主键,并且设置定时任务每秒钟插入一条数据到目标表
- Abnormal record-22
- oracle分区的相关操作
- Arranges the objects specified in the array in front of the array
猜你喜欢
补补网络缺口
ACFS文件系统创建扩大缩小等配置步骤
Winter combat camp hands-on combat - MySQL database rapid deployment practice lead mouse cloud Xiaobao
Dolphinscheduler配置Datax踩坑记录
基于ECS搭建云上博客(云小宝码上送祝福,免费抽iphone13任务详解)
Thanos compact component test summary (processing historical data)
Dolphinscheduler源码包src.tar.gz解压问题
iTOP4412 HDMI显示(4.4.4_r1)
搭建基于OSS的图片分享网站-反馈有礼
Chaos带你快速上手混沌工程
随机推荐
oracle库恢复数据
oracle undo使用率高问题处理
Prometheus monitoring method and index interpretation of influxdb
Encapsulate a set of project network request framework from 0
Chaos takes you to the chaos project quickly
开篇:双指针仪表盘的识别
Redis practice notes and source code analysis
Winter combat camp hands-on combat - cloud essential environment preparation, hands-on practical operation, quickly build lamp environment, lead mouse cloud Xiaobao backpack without shadow
Abnormal record-15
Exception record-7
When switch case, concatenate the error case and if of the conventional judgment expression and use L
useReducer基本用法
Dolphinscheduler调度sql任务建表时The query did not generate a result set异常解决
How does VirtualBox modify the IP network segment assigned to the virtual machine in the "network address translation (NAT)" network mode
JS format current time and date calculation
一个DG环境的ORA-16047: DGID mismatch between destination setting and target database问题排查及监听VNCR特性
this.getOptions is not a function
RAC环境集群组件gipc无法正确识别心跳网络状态问题分析
ORACLE环境遇到的ORA-600 [qkacon:FJswrwo]
ARGB透明度换算