【问题标题】:Failure while building apk in flutter在颤振中构建apk时失败
【发布时间】:2022-01-11 10:22:53
【问题描述】:

每当我尝试构建 apk 时,我都会收到此错误。我启用了 multidex 和 androidx 尝试使用flutter clean清除缓存,但出现此错误

Note: C:\Joel\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.9\android\src\main\java\io\flutter\plugins\pathprovider\PathProviderPlugin.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:packageRelease'.
> A failure occurred while executing com.android.build.gradle.tasks.PackageAndroidArtifact$IncrementalSplitterRunnable
   > com.android.ide.common.signing.KeytoolException: Failed to read key upload from store "C:\Joel\AndroidStudioProjects\sudoku\upload_signing.jks": Integrity check failed: java.security.NoSuchAlgorithmException: Algorithm HmacPBESHA256 not available

* 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 1m 9s

【问题讨论】:

    标签: android flutter android-studio


    【解决方案1】:

    打开Android Studio,进入File > Settings > Build, Execution, Development > Build Tools > Gradle,然后将Gradle JDK改成jdk16,然后点击Sync Gradle。

    希望这项工作。

    【讨论】:

    • 我没看到...我只能看到一个勾选框,上面写着生成 iml 文件和属性 gradle home 的下拉列表
    猜你喜欢
    • 2022-01-01
    • 1970-01-01
    • 2021-06-06
    • 1970-01-01
    • 2020-08-25
    • 2020-12-18
    • 2022-11-15
    相关资源
    最近更新 更多