Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Cyborg)
  • No Skin
Collapse
Brand Logo

CIRCLE WITH A DOT

  1. Home
  2. Uncategorized
  3. About 1 time in 3 when doing a build with Gradle I get:

About 1 time in 3 when doing a build with Gradle I get:

Scheduled Pinned Locked Moved Uncategorized
4 Posts 3 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • jwz@mastodon.socialJ This user is from outside of this forum
    jwz@mastodon.socialJ This user is from outside of this forum
    jwz@mastodon.social
    wrote last edited by
    #1

    About 1 time in 3 when doing a build with Gradle I get:

    A failure occurred while executing com.android.build.gradle.tasks.PackageAndroidArtifact$IncrementalSplitterRunnable
    ... a thousand lines later...
    Caused by: java.lang.OutOfMemoryError: Java heap space

    And then the next time it works. So that's exactly the level of quality I've come to expect from Gradle in particular and everything about Android in general.

    jwz@mastodon.socialJ 0x2ba22e11@unstable.systems0 2 Replies Last reply
    0
    • jwz@mastodon.socialJ jwz@mastodon.social

      About 1 time in 3 when doing a build with Gradle I get:

      A failure occurred while executing com.android.build.gradle.tasks.PackageAndroidArtifact$IncrementalSplitterRunnable
      ... a thousand lines later...
      Caused by: java.lang.OutOfMemoryError: Java heap space

      And then the next time it works. So that's exactly the level of quality I've come to expect from Gradle in particular and everything about Android in general.

      jwz@mastodon.socialJ This user is from outside of this forum
      jwz@mastodon.socialJ This user is from outside of this forum
      jwz@mastodon.social
      wrote last edited by
      #2

      A Gradle play in two acts.

      Act 1:

      WARNING: The property android.dependency.excludeLibraryComponentsFromConstraints improves project import performance for very large projects. It should be enabled to improve performance.

      Act 2:

      WARNING: The option setting 'android.dependency.excludeLibraryComponentsFromConstraints=true' is deprecated.

      womble@infosec.exchangeW 1 Reply Last reply
      0
      • jwz@mastodon.socialJ jwz@mastodon.social

        About 1 time in 3 when doing a build with Gradle I get:

        A failure occurred while executing com.android.build.gradle.tasks.PackageAndroidArtifact$IncrementalSplitterRunnable
        ... a thousand lines later...
        Caused by: java.lang.OutOfMemoryError: Java heap space

        And then the next time it works. So that's exactly the level of quality I've come to expect from Gradle in particular and everything about Android in general.

        0x2ba22e11@unstable.systems0 This user is from outside of this forum
        0x2ba22e11@unstable.systems0 This user is from outside of this forum
        0x2ba22e11@unstable.systems
        wrote last edited by
        #3

        @jwz on the very very unlikely chance that you haven't heard this already: the default heap size for gradle is unworkably low, find the Xmx thingy and turn it up a lot to get faster less crash prone builds. (Sorry I can't tell you where the setting is right now because I forgot. I just remember that the default is way too low.)

        1 Reply Last reply
        0
        • jwz@mastodon.socialJ jwz@mastodon.social

          A Gradle play in two acts.

          Act 1:

          WARNING: The property android.dependency.excludeLibraryComponentsFromConstraints improves project import performance for very large projects. It should be enabled to improve performance.

          Act 2:

          WARNING: The option setting 'android.dependency.excludeLibraryComponentsFromConstraints=true' is deprecated.

          womble@infosec.exchangeW This user is from outside of this forum
          womble@infosec.exchangeW This user is from outside of this forum
          womble@infosec.exchange
          wrote last edited by
          #4

          @jwz it is extremely on brand that improving performance is deprecated.

          1 Reply Last reply
          1
          0
          • R relay@relay.infosec.exchange shared this topic
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups