https://gradle.com/ logo
Join Slack
Powered by
# community-support
  • s

    Slackbot

    05/16/2023, 3:32 PM
    This message was deleted.
    v
    • 2
    • 1
  • s

    Slackbot

    05/16/2023, 5:25 PM
    This message was deleted.
    v
    n
    • 3
    • 15
  • s

    Slackbot

    05/16/2023, 7:41 PM
    This message was deleted.
    v
    a
    p
    • 4
    • 5
  • s

    Slackbot

    05/16/2023, 8:06 PM
    This message was deleted.
    c
    l
    +2
    • 5
    • 13
  • s

    Slackbot

    05/17/2023, 6:33 AM
    This message was deleted.
    v
    s
    • 3
    • 4
  • t

    Thao Nguyen lu

    05/17/2023, 9:46 AM
    Hi everybody! I need your help I tried to build gradle with Lottie Animation but it crashed at runtime. Here's my my error: Caused by: java.lang.RuntimeException: java.io.UncheckedIOException: java.nio.file.AccessDeniedException: C:\android.lock I had implemented Lotties dependency: implementation "com.airbnb.androidlottie compose6.0.0"
  • s

    Slackbot

    05/17/2023, 9:46 AM
    This message was deleted.
    v
    t
    • 3
    • 2
  • m

    Matan Sabag

    05/17/2023, 12:21 PM
    Hello, in a project that builds perfectly when using Java 8. After upgrading to compile with Java 11 using toolchains, I get the following JaCoCo error on the
    jacocoTestReport:
    Caused by: java.lang.IllegalStateException: Can’t add different class with same name:
    linqmap/metric/interfaces/MetricClient
    Any idea how to handle it and what might have causing it by just changing the Java version? Btw if ALL subprojects compiled with Java 11 or Java 8 it does not happen, if one of the subproject uses Java 11 but other s Java 8 it does happen.
  • s

    Slackbot

    05/17/2023, 1:29 PM
    This message was deleted.
    m
    m
    • 3
    • 5
  • m

    Miroww328

    05/17/2023, 1:30 PM
    GraalVM version 19.3.0
  • s

    Slackbot

    05/17/2023, 1:30 PM
    This message was deleted.
    v
    • 2
    • 1
  • s

    Slackbot

    05/17/2023, 7:19 PM
    This message was deleted.
    t
    • 2
    • 2
  • s

    Slackbot

    05/18/2023, 7:10 AM
    This message was deleted.
    đŸ§” 1
    a
    v
    k
    • 4
    • 9
  • a

    Adam

    05/18/2023, 10:42 AM
    I need to aggregate files from other subprojects into an aggregating-subproject, but I need to keep track of configurable ID from the source subprojects so that the files are grouped by the ID. I’m fetching the files via Configurations, and grouping the files by an attribute that contains the ID. (The attribute is present on outgoing Configurations, but not the consuming Configuration
    moduleFooFilesConsumer
    , so Gradle ignores it for matching).
    Copy code
    // this configuration is used in the `build.gradle.kts` - dependencies { moduleFooFiles(project(":alpha") }
    val moduleFooFilesConsumer: NamedDomainObjectProvider<Configuration> = //...
    
    val moduleFooFilesGroupedById: Provider<Map<String?, FileCollection>> =
      moduleFooFilesConsumer
        .map { conf ->
          conf
            .incoming
            .artifactView { lenient(true) }
            .artifacts
            .filter { artifact ->
              artifact.variant.attributes.getAttribute(MODULE_ID_ATTRIBUTE) != null
            }.groupingBy { artifact ->
              artifact.variant.attributes.getAttribute(MODULE_ID_ATTRIBUTE)!!.name
            }.fold(objects.fileCollection()) { files, element ->
              files.from(element.file)
            }
        }
    There are actually a few similar file types - FooFiles, BarFiles, BazFiles - that need to be ‘transmitted’ separately and then the files of all type types are grouped by module ID into some class (to be used by a JavaExec operation in an isolated Gradle Worker)
    Copy code
    data class IncomingModule(
      val moduleId: String,
      val fooFiles: FileCollection,
      val barFile: File,
      val bazFiles: FileCollection,
    )
    IncomingModule
    needs to be created in a task - but what’s the correct task input for a property of type
    Provider<Map<String?, FileCollection>>
    ? I need one that will perform normalization on the files.
  • s

    Slackbot

    05/18/2023, 8:24 PM
    This message was deleted.
    c
    r
    +3
    • 6
    • 17
  • s

    Slackbot

    05/19/2023, 6:01 PM
    This message was deleted.
    a
    s
    e
    • 4
    • 5
  • s

    Slackbot

    05/19/2023, 6:42 PM
    This message was deleted.
    a
    s
    v
    • 4
    • 11
  • p

    praneeth koundinya

    05/20/2023, 7:40 AM
    how to get these corrected (1 (Error:(9, 5) error: resource android:attr/dialogCornerRadius not found.) 2 (Error:(1304, 5) error: resource android:attr/fontVariationSettings not found.) 3 (Error:(1304, 5) error: resource android:attr/ttcIndex not found.) 4 (Error:(11) error: resource android:attr/dialogCornerRadius not found.) 5(Error:(7) resource android:attr/dialogCornerRadius not found.) 6 (Error:(11) resource android:attr/dialogCornerRadius not found.) 7 (Error:(518) resource android:attr/fontVariationSettings not found.) 8 (Error:(518) resource android:attr/ttcIndex not found.) 9 (Error:failed linking references.)
  • p

    praneeth koundinya

    05/20/2023, 7:41 AM
    and also (Errorjava.util.concurrent.ExecutionException java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details)
  • s

    Slackbot

    05/20/2023, 7:41 AM
    This message was deleted.
    v
    • 2
    • 1
  • s

    Slackbot

    05/21/2023, 8:21 AM
    This message was deleted.
    v
    a
    +2
    • 5
    • 19
  • s

    Slackbot

    05/21/2023, 11:50 AM
    This message was deleted.
    v
    l
    • 3
    • 13
  • s

    Slackbot

    05/21/2023, 6:02 PM
    This message was deleted.
    ✅ 1
    v
    n
    • 3
    • 6
  • b

    Ben Berman

    05/21/2023, 9:02 PM
    does a single file, standalone, possibly AoT (graal native) compiled
    gradle
    binary exist?
  • s

    Slackbot

    05/21/2023, 11:22 PM
    This message was deleted.
    v
    j
    • 3
    • 2
  • s

    Slackbot

    05/22/2023, 11:35 AM
    This message was deleted.
    e
    a
    • 3
    • 14
  • s

    Slackbot

    05/22/2023, 12:13 PM
    This message was deleted.
    v
    t
    • 3
    • 2
  • s

    Slackbot

    05/22/2023, 12:56 PM
    This message was deleted.
    a
    • 2
    • 1
  • s

    Slackbot

    05/22/2023, 1:14 PM
    This message was deleted.
    a
    c
    v
    • 4
    • 13
1...525354...102Latest