Flutter-AssetsAudioPlayer icon indicating copy to clipboard operation
Flutter-AssetsAudioPlayer copied to clipboard

Update This Package

Open MdAsifUrRahmanAbir opened this issue 1 year ago • 3 comments

Error (Xcode): ../../.pub-cache/hosted/pub.dev/assets_audio_player-3.1.1/lib/src/builders/player_builders.dart:44:14: Error: Duplicated named argument 'key'. in assets_audio_player-3.1.1 this package , player_builders.dart this file have problem of duplicate key super.key

image

MdAsifUrRahmanAbir avatar Jun 11 '24 05:06 MdAsifUrRahmanAbir

@florent37 Or tell me how to solve this problem Please

MdAsifUrRahmanAbir avatar Jun 11 '24 05:06 MdAsifUrRahmanAbir

This also needs to be updated for the next version/commit. I'm using your package (with a reference to the master) for iOS but can't render my Android version due to unsynced Java versions in build.gradle / android { section.

compileOptions {
        // Sets Java compatibility to Java 17
        sourceCompatibility JavaVersion.VERSION_17
        targetCompatibility JavaVersion.VERSION_17
    }

    kotlinOptions {
        jvmTarget = '17'
    }

anyone find a solution to this?

Patiyang avatar Jul 17 '24 11:07 Patiyang

anyone find a solution to this?

Had issued with the Java version / gradle too and only got it working by using older gradle / com.android.application versions. I am now using the following versions and builds are working for now again:

  • gradle version 7.6-all in android/grade/wrapper/grade-wrapper.properties
  • com.android.application version 7.3.0 in android/settings.gradle

Generally what I did was search for any occurrence of https://services.gradle.org/distributions/gradle and using the latest version used by any package.

samtun avatar Aug 15 '24 08:08 samtun