florent37 / Flutter-AssetsAudioPlayer

Play simultaneously music/audio from assets/network/file directly from Flutter, compatible with android / ios / web / macos, displays notifications
https://pub.dartlang.org/packages/assets_audio_player
Apache License 2.0
752 stars 357 forks source link

Update This Package #836

Open MdAsifUrRahmanAbir opened 3 months ago

MdAsifUrRahmanAbir commented 3 months ago

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 commented 3 months ago

@florent37 Or tell me how to solve this problem Please

Patiyang commented 2 months ago

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?

samtun commented 1 month ago

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:

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.