当前位置:网站首页>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
边栏推荐
猜你喜欢

个人博客网站搭建

常用UI控件简写名

Static interface method calls are not supported at language level ‘5‘ 异常解决

Android面试计网面经大全【持续更新中。。。】

Bottomsheetdialogfragment conflicts with listview recyclerview Scrollview sliding

Cause: dx. jar is missing

杂七杂八的学习

ThreadLocal,看我就够了!

iTOP4412 HDMI显示(4.0.3_r1)

【2021年新书推荐】Professional Azure SQL Managed Database Administration
随机推荐
【机器学习】笔记 4、KNN+交叉验证
mysql和pg库遇到冲突数据时的两种处理方式
SQL中 with函数的详解与用法
adb shell常用模拟按键keycode
Abnormal record-19
Abnormal record-17
Personal blog website construction
oracle通过触发器和序列来定义自增主键,并且设置定时任务每秒钟插入一条数据到目标表
Apprentissage par composantes
Information:2021/9/29 10:01 - Build completed with 1 error and 0 warnings in 11s 30ms Error异常处理
launcher隐藏不需要显示的app icon
Dolphinscheduler调度sql任务建表时The query did not generate a result set异常解决
oracle用delete删除数据所需时间测试
oracle表空间表分区详解及oracle表分区查询使用方法
Dolphinscheduler配置Datax踩坑记录
窗口分析函数LAST_VALUE,FIRST_VALUE,lag,lead
oracle数据库将多个列的查询结果集合并到一行中
Exception record-9
【2021年新书推荐】Kubernetes in Production Best Practices
Dolphinscheduler源码包src.tar.gz解压问题