当前位置:网站首页>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
边栏推荐
猜你喜欢
Dolphinscheduler集成Flink任务踩坑记录
专用窗口函数rank, dense_rank, row_number
ThreadLocal,看我就够了!
this.getOptions is not a function
【2021年新书推荐】Practical Node-RED Programming
Bottomsheetdialogfragment conflicts with listview recyclerview Scrollview sliding
Ffmpeg common commands
杂七杂八的学习
Information:2021/9/29 10:01 - Build completed with 1 error and 0 warnings in 11s 30ms Error异常处理
窗口分析函数LAST_VALUE,FIRST_VALUE,lag,lead
随机推荐
Kotlin征途之data class [数据类]
通过rownum来进行区间查询
Apprentissage par composantes
Oracle锁表查询和解锁方法
统一任务分发调度执行框架
实习做了啥
Oracle索引状态查询与索引重建
Abnormal record-21
基于BottomNavigationView实现底部导航栏
iTOP4412 LCD背光驱动(PWM)
Explore how @ modelandview can forward data and pages through the source code
oracle表的约束详解
【2021年新书推荐】Red Hat RHCSA 8 Cert Guide: EX200
MySQL笔记4_主键自增长(auto_increment)
iTOP4412 SurfaceFlinger(4.0.3_r1)
MySQL notes 2_ data sheet
组件化学习(2)Arouter原理学习
HandlerThread原理和实际应用
useReducer基本用法
iTOP4412无法显示开机动画(4.0.3_r1)