1、点击Build->Select Build Variants, 然后在Build Variant 中选择release
2、点击File->Project Structure->Module->Signing Configs 增加release信息(关於release config 主要填写config Name 、release key 以及psw等信息,store file需要自己的jks文件路径)。
3、点击File->Project Structure->Module->Build Variants->Build Types 增加release模式(也可以设置原有debug 为false)。
点击应用,选择ok即可。 编译後即可产生release apk。











网友评论