当前位置:网站首页>Flutter:异常处理
Flutter:异常处理
2022-07-28 16:38:00 【两块三刀】
异常信息:Gradle task assembleRelease failed with exit code 1
此信息是在执行终端命令:flutter build apk 打包APK时 报出的,
原因:没有配置Android打包签名;
配置签名:
1、在android模块下创建文件“key.properties”,并填写密钥信息.(如何创建APP密钥 这里不再叙述,百度一下你就知道了)
storePassword=你的密码
keyPassword=你的密码
keyAlias=你的密钥别名
storeFile=你的密钥路径,如D:/app_key.jks
2、在android/app/build.gradle 文件 配置以下信息:
def keystorePropertiesFile = rootProject.file("key.properties")
def keystoreProperties = new Properties()
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
android {
...此处省略一些信息...
signingConfigs {
release {
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
storeFile file(keystoreProperties['storeFile'])
storePassword keystoreProperties['storePassword']
}
}
buildTypes {
release {
signingConfig signingConfigs.release
}
}
}
Flutter打包APK
好了,接下来你就可以重新执行打包命令了:> flutter build apk
安装包位置在:build\app\outputs\apk\release\app-release.apk
边栏推荐
- [unity tilemap] tutorial | basic, rule tile, prefab brush, tilemap Collider
- wordpress提示建立数据库连接时出错
- 方法、函数
- Collection集合
- [unity FPS] tutorial | using unity to make a first person character controller
- [unity] three pictures let you understand the shadergraph editor
- Compilation principle learning notes 1 (compilation principle overview and lexical analysis)
- abstract、static、final
- Encapsulation, inheritance, polymorphism
- [machine learning notes] regularization: ridge regression
猜你喜欢

IDEA报错Error running ‘Application‘ Command line is too long解决方案

OpenMV(四)--STM32实现特征检测
@Detailed explanation of requestmapping

OpenMV(一)--基础介绍与硬件架构

OpenMV(五)--STM32实现人脸识别
![[advanced C language] - function pointer](/img/73/95380bb719f609e80de56985ed68fd.png)
[advanced C language] - function pointer

2022 IDEA (学生邮箱认证)安装使用教程以及基础配置教程

MySQL and idea connection
![[advanced C language] - analyze the storage of micro data in memory [2] (floating point storage)](/img/ae/0c5efd7d0179e77a25d6dbd4117c98.png)
[advanced C language] - analyze the storage of micro data in memory [2] (floating point storage)

How to bind idea with code cloud
随机推荐
其他电脑连接本地mysql
企业微信和视频号的关联
centos使用docker运行mysql后,远程连接需要开放端口
Leetcode systematic question brushing (V) -- dynamic programming
Mmdetection3d (3) -- network output
OpenMV(一)--基础介绍与硬件架构
【Unity】Timeline学习笔记(七):自定义片段(Clip)
Openmv (III) -- get camera pictures in real time
wordpress提示建立数据库连接时出错
“3·8女王节”限时大促竟让场观、视频号销量翻倍?
Openpcd installation process record
怎样将IDEA与码云进行绑定
概率函数P(x)、概率分布函数F(x)与概率密度函数f(x)的区别
2022 idea (student email authentication) installation and use tutorial and basic configuration tutorial
Collection collection
电脑充不进去电的解决方法
word文档删除最后一页
Tips--解决No module named matlab.engine的问题
$(document).Width() in WebView is a value
Leetcode systematic question brushing (I) -- linked list, stack, queue, heap