【问题标题】:How can I building flutter app for android?如何为 android 构建颤振应用程序?
【发布时间】:2021-02-18 06:23:30
【问题描述】:

我正在训练构建我的应用程序,但是当我使用此命令 flutter build appbundle 时,我发现了这个错误

Note: Some input files use or override a deprecated API.                
Note: Recompile with -Xlint:deprecation for details.                    
                                                                        
FAILURE: Build failed with an exception.                                
                                                                        
* What went wrong:                                                      
Execution failed for task ':app:validateSigningRelease'.                
> Keystore file not set for signing config release                      
                                                                        
* Try:                                                                  
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
                                                                        
* Get more help at https://help.gradle.org                              
                                                                        
BUILD FAILED in 54s                                                     
Running Gradle task 'bundleRelease'...                                  
Running Gradle task 'bundleRelease'... Done                        55,7s
Gradle task bundleRelease failed with exit code 1

我该如何解决这个问题?

【问题讨论】:

  • “未设置用于签署配置发布的密钥库文件”您是否拥有正确的所有凭据来进行发布构建?

标签: android flutter gradle dart build


【解决方案1】:
  • 创建密钥库
  • 从应用程序引用密钥库
  • 配置 登录 gradle

按照this 教程。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-07-20
    • 2019-12-08
    • 2021-01-05
    • 2021-03-01
    • 2021-01-23
    • 2020-05-11
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多