当前位置:网站首页>Project, how to package
Project, how to package
2022-04-23 07:12:00 【Drink dichlorvos alone】
1. Now , Need to switch channels
When the picture of the project file is as shown in the figure , It indicates that you need to switch to the corresponding channel

The icon is like this , Because I'm useless google channel . So switch to google Just channel
2. How to pack
use AS Run the project , Each channel can have two modes , namely Debug Patterns and Release Pattern .( Two modes can be used through Build Variant Make changes )
Debug Patterns are generally used for our private testing , You can use the default debug.keystore To sign .
Release It is usually the official version released on the market . When we officially release the project, we can't use debug.keystore Of , Instead, we need to create our own signatures , Then it can run normally .
We pack , It's usually a fight Release edition , Pack it up apk, Then go online and publish
(1) How to create a channel Debug and Release
AS It doesn't seem to work after the update , When you use it , search Android How to create a multi-channel project on the line



(2) How to create a signature




Set up keystore route 、 password .
Set up key:
Alias 、 password 、 The period of validity , Certificates, etc
Concrete
Key store path: Storage path
Key
Alias: Alias
Validity(years): The period of validity ( General default 25 year )
Certificate: certificate
First and Last Name: full name
Organization Unit: Organizational unit
Organization: organization
City or Locality: A city or region
State or Province: State or province
Country Code(XX): Country code (XX), China :86
(3) Specific packaging method
After doing the above , You can find the project local.properties file , Then add the version number and set whether it is the test environment .
VERSION_CODE=452
IS_TEST_EVN = false
Suppose you want to release the official version , be
IS_TEST_EVN Set to false

Then change the corresponding channel !!!, For example, Google official package , Just change to this channel

And then click AS On the right side of the gradle, Find our project , And then click Tasks, Click on build package , There are all kinds of assemblexxx, Let's choose one assembleVivo, be AS Will help us pack automatically

Wait a moment , stay Project In mode , Press the directory shown in the figure , You can find the packaged file

3.1.8 You can use the project's build.gradle File settings .
版权声明
本文为[Drink dichlorvos alone]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230606380483.html
边栏推荐
- Itop4412 kernel restarts repeatedly
- Using queue to realize stack
- webView因证书问题显示一片空白
- 【机器学习】笔记 4、KNN+交叉验证
- 【2021年新书推荐】Red Hat RHCSA 8 Cert Guide: EX200
- Antd Design Form表单检验
- js时间获取本周一、周日,判断时间是今天,今天前、后
- Apprentissage par composantes
- Itop4412 HDMI display (4.0.3_r1)
- Static interface method calls are not supported at language level ‘5‘ 异常解决
猜你喜欢
随机推荐
mysql和pg库遇到冲突数据时的两种处理方式
Abnormal record-22
iTOP4412 SurfaceFlinger(4.4.4_r1)
ThreadLocal,看我就够了!
Abnormal record-11
Oracle锁表查询和解锁方法
[sm8150] [pixel4] LCD driver
利用队列实现栈
oracle对表字段的修改
Abnormal record-20
oracle生成毫秒级时间戳
常用UI控件简写名
去掉状态栏
oracle库恢复数据
Tiny4412 HDMI显示
HandlerThread原理和实际应用
Abnormal record-19
Viewpager2 realizes Gallery effect. After notifydatasetchanged, pagetransformer displays abnormal interface deformation
取消远程依赖,用本地依赖
第三篇:docker安装mysql容器(自定义端口)









