-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Open
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projecta: first hourThe first hour of using FlutterThe first hour of using Fluttert: gradle"flutter build" and "flutter run" on Android"flutter build" and "flutter run" on Androidteam-androidOwned by Android platform teamOwned by Android platform teamtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.triaged-androidTriaged by Android platform teamTriaged by Android platform team
Description
Use case
Example Java heap space failure for :app:mergeDebugJavaResource (in verbose mode)
[ ] Caching not enabled.
[ ] > Task :app:mergeDebugJavaResource FAILED
[ ] FAILURE: Build failed with an exception.
[ ] * What went wrong:
[ ] Execution failed for task ':app:mergeDebugJavaResource'.
[ ] > Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
[ ] > Failed to transform arm64_v8a_debug-1.0.0-78e5d7995cdb16e0b8a3eb12bb62ff325e8c601d.jar (io.flutter:arm64_v8a_debug:1.0.0-78e5d7995cdb16e0b8a3eb12bb62ff325e8c601d) to match attributes {artifactType=android-java-res, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.
[ ] > Execution failed for JetifyTransform: C:\b\s\w\ir\cache\gradle\caches\modules-2\files-2.1\io.flutter\arm64_v8a_debug\1.0.0-78e5d7995cdb16e0b8a3eb12bb62ff325e8c601d\26e409deb8a510a12d4546e73f22c9ecddb96f3\arm64_v8a_debug-1.0.0-78e5d7995cdb16e0b8a3eb12bb62ff325e8c601d.jar.
[ ] > Java heap space
Proposal
Instead, show a nice error that suggest the user update their gradle.properties org.gradle.jvmargs.
harri35, gnprice, cedvdb, tenhobi, roxifas and 3 more
Metadata
Metadata
Assignees
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projecta: first hourThe first hour of using FlutterThe first hour of using Fluttert: gradle"flutter build" and "flutter run" on Android"flutter build" and "flutter run" on Androidteam-androidOwned by Android platform teamOwned by Android platform teamtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.triaged-androidTriaged by Android platform teamTriaged by Android platform team