Sithira / FlutterRadioPlayer

Flutter Radio Player, A Plugin to handle streaming audio without a hassle
MIT License
139 stars 64 forks source link

Type mismatch: inferred type is AudioFocusRequest? but AudioFocusRequest was expected #57

Closed StripedMittens closed 2 years ago

StripedMittens commented 2 years ago

.pub-cache\hosted\pub.dartlang.org\flutter_radio_player-1.1.0\android\src\main\kotlin\me\sithiramunasinghe\flutter\flutter_radio_player\core\StreamingCore.kt: (188, 46): Type mismatch: inferred type is AudioFocusRequest? but AudioFocusRequest was expected

EnriqueMx commented 2 years ago

Waiting for same fix here. Thanks

ignaciomarti commented 2 years ago

I'm facing same problem. Did you find any solution?

feralink-fga commented 2 years ago

Waiting for same fix here. Thanks

waiting too. any prevision?

shahryar-cmyk commented 2 years ago

changing the android build.gradle dependencies will somehow resolve this issue.

dependencies {
        classpath 'com.android.tools.build:gradle:3.5.0'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    }

also notices changes the not writing this also helps in-app module build.gradle.

<application android:usesCleartextTraffic="true">
    <service android:name=".core.StreamingCore"/>
</application>
feralink-fga commented 2 years ago

resolves compilation error but generates others

app:processDebugResources FAILED [ ] Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. [ ] Use '--warning-mode all' to show the individual deprecation warnings. [ ] See https://docs.gradle.org/6.7/userguide/command_line_interface.html#sec:command_line_warnings

filippodicostanzo commented 2 years ago

Same issue with

    dependencies {
        classpath 'com.android.tools.build:gradle:4.1.0'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    }

how to resolve?

buroz commented 2 years ago

Any solution? Because I am also getting the same error.

xrayDon commented 2 years ago

Any solution, I have same issue here :Type mismatch: inferred type is AudioFocusRequest? but AudioFocusRequest was expected

KaviHarjani commented 2 years ago

In March, with same error

Sithira commented 2 years ago

Flutter radio 2.0.0 will be released soon. Stay tuned

On Mon, Apr 18, 2022 at 7:33 PM Kavi Harjani @.***> wrote:

In March, with same error

— Reply to this email directly, view it on GitHub https://github.com/Sithira/FlutterRadioPlayer/issues/57#issuecomment-1101432935, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB6V3BNFIT2GCBEHARBL2CDVFVTTZANCNFSM5HUTIDEQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

pjarnfelt commented 2 years ago

In May and same error. What's ETA on 2.0.0?

FlatCodeIq commented 2 years ago

Same issue still

Flutter radio 2.0.0

It's May 21st and no solution or work around is presented by your side. Please state a workaround at least or ETA for the new version and why would it fix this problem?

KaviHarjani commented 2 years ago

o solution or work around is presented by your side. Please state a workaround at least or ETA for the new version and why would it fix this problem?

Hey you can try out audioplayers, they're good, I'm using them currently

Sithira commented 2 years ago

Has been updated to v2. Please check the master branch