我有Flutter应用程序,并已上传它,并在Google Play发布,但当我添加google_移动的_ads代码,该应用程序在模拟器中完美运行,但我不能为Google Play构建应用程序捆绑.这是错误出现:
FAILURE: Build failed with an exception.
* What went wrong:
Gradle build daemon has been stopped: JVM garbage collector thrashing and after running out of JVM memory.
Gradle task bundleRelease failed with exit code 1
字符串
我在gradle.properties org.gradle.jvmargs中尝试了许多尺寸,但面临同样的问题。
我是V博士
[√] Flutter (Channel master, 3.18.0-18.0.pre.47, on Microsoft Windows [Version 10.0.19045.3803], locale ar-OM)
• Flutter version 3.18.0-18.0.pre.47 on channel master at C:\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 3df4e735d5 (4 days ago), 2023-12-29 14:07:39 -0500
• Engine revision 9e03a57cde
• Dart version 3.3.0 (build 3.3.0-273.0.dev)
• DevTools version 2.31.0-dev.0
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
• Android SDK at C:\Users\Dell\AppData\Local\Android\Sdk
• Platform android-34, build-tools 34.0.0
• ANDROID_HOME = C:\Users\Dell\AppData\Local\Android\Sdk
• Java binary at: F:\android-studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
[X] Visual Studio - develop Windows apps
X Visual Studio not installed; this is necessary to develop Windows apps.
Download at https://visualstudio.microsoft.com/downloads/.
Please install the "Desktop development with C++" workload, including all of its default components
[√] Android Studio (version 2021.3)
• Android Studio at F:\android-studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version openjdk version "11.0.13" 2021-10-19
[√] Connected device (4 available)
• sdk gphone64 x86 64 (mobile) • emulator-5554 • android-x64 • Android 12 (API 32) (emulator)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.19045.3803]
• Chrome (web) • chrome • web-javascript • Google Chrome 120.0.6099.130
• Edge (web) • edge • web-javascript • Microsoft Edge 120.0.2210.91
[√] Network resources
• All expected network resources are available.
! Doctor found issues in 1 category.
The Flutter CLI developer tool uses Google Analytics to report usage and diagnostic
data along with package dependencies, and crash reporting to send basic crash
reports. This data is used to help improve the Dart platform, Flutter framework,
and related tools.
型
有帮助吗?
任何帮助和建议,以建立应用程序捆绑为Google Play?
1条答案
按热度按时间lrl1mhuk1#
我通过将环境变量中的_JAVA_OPTIONS增加到-Xmx 2048 M解决了这个问题
谢谢@StephenC