gpt4 book ai didi

android - 您的应用未使用 AndroidX - Flutter 不允许我生成 apk

转载 作者:行者123 更新时间:2023-12-03 02:47:32 24 4
gpt4 key购买 nike

我在 Mac 上使用 Visual Studio 代码开发了一个应用程序。我在IOS上运行应用程序没有任何问题。我还将它安装在物理设备上并且运行良好,但是在生成 Android 项目研究及其 APK 时出现问题。

留言 :

flutter build appbundle
[!] Your app isn't using AndroidX.
To avoid potential build failures, you can quickly migrate your app by following the
steps on ...
Running Gradle task 'bundleRelease'...
Note: Some input files use unchecked or unsafe operations.
Running Gradle task 'bundleRelease'... Note: Recompile with -Xlint:unchecked for details.
Running Gradle task 'bundleRelease'...
Running Gradle task 'bundleRelease'... Done 217,9s (!)
Gradle build failed to produce an .aab file. It's likely that this file was generated under
/Users/riccardo/Desktop/QuoteFlutter/quote/build, but the tool couldn't find it.

最佳答案

在我自己的情况下,我的 gradle.properties 丢失了。我刚刚在 android 文件夹中创建了一个新的 gradle.properties 文件,具有以下参数

org.gradle.jvmargs=-Xmx1536M
android.useAndroidX=true
android.enableJetifier=true
android.enableR8=true

关于android - 您的应用未使用 AndroidX - Flutter 不允许我生成 apk,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59945405/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com