dart - Flutter 中的 PlatformException(sign_in_failed, Status{statusCode=CANCELED, resolution=null}, null) 错误
解决方案
statusCode="Canceled" 的原因是因为我没有更新我的“android/app/build.gradle”文件以使其指向我的密钥库/密钥
android {
compileSdkVersion 27
lintOptions {
disable 'InvalidPackage'
}
signingConfigs {
release {
storeFile file("path to key/ key") # .keystore or .jsk file extensions
storePassword 'password'
keyAlias 'alias'
keyPassword 'password'
}
debug {
storeFile file("path to key/ key") # .keystore or .jsk file extensions
storePassword 'password'
keyAlias 'alias'
keyPassword 'password'
}
}
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.example.applicationName"
minSdkVersion 16
targetSdkVersion 27
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig signingConfigs.release
}
debug {
signingConfig signingConfigs.debug
}
}
}
推荐阅读
- php - 尝试从 apache 服务器运行时 PHP intl 不起作用
- sql-server - Powershell Backup-SqlDatabase 备份快照而不是完整备份
- asp.net-core-mvc - 如何显示从视图到控制器的嵌套视图模型
- node.js - 如何在 nodejs 中运行任务,我得到 npm 运行错误
- java - mvvmFX 在 Maven 项目中找不到 FXML 文件
- python - PyQt+Socket - 为 GUI 服务器的多线程客户端运行循环
- ruby-on-rails - Rails 错误消息显示太多细节
- javascript - Shopify 检索有关特定产品的数据
- c++ - 如何枚举远程计算机上的卷?
- javascript - 开玩笑防止节点模块被导入