Skip to content

record_android-2.0.0 fails to build #603

Description

@krille-chan

Package version
record 7.0.0

Environment

  • OS: Android

Describe the bug

Fails to build on Android with this error:

FAILURE: Build failed with an exception.

* Where:
Build file '/Users/christianpauly/.pub-cache/hosted/pub.dev/record_android-2.0.0/android/build.gradle.kts' line: 39

* What went wrong:
class com.android.build.gradle.internal.api.DefaultAndroidSourceSet_Decorated cannot be cast to class com.android.build.api.dsl.AndroidLibrarySourceSet (com.android.build.gradle.internal.api.DefaultAndroidSourceSet_Decorated is in unnamed module of loader org.gradle.internal.classloader.VisitableURLClassLoader$InstrumentingVisitableURLClassLoader @4c7d5028; com.android.build.api.dsl.AndroidLibrarySourceSet is in unnamed module of loader org.gradle.internal.classloader.VisitableURLClassLoader$InstrumentingVisitableURLClassLoader @e3bd672)

To Reproduce

Steps to reproduce the behavior:

  1. Add record to your Flutter project (probably a project before the flutter version 3.44.0, I still have deprecation warnings about gradle)
  2. run flutter build apk
  3. See error

Expected behavior

flutter build apk succeeds.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions