FlutterRadioPlayer icon indicating copy to clipboard operation
FlutterRadioPlayer copied to clipboard

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

Open StripedMittens opened this issue 4 years ago • 13 comments

.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

StripedMittens avatar Nov 09 '21 07:11 StripedMittens

Waiting for same fix here. Thanks

EnriqueMx avatar Nov 10 '21 22:11 EnriqueMx

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

ignaciomarti avatar Nov 25 '21 17:11 ignaciomarti

Waiting for same fix here. Thanks

waiting too. any prevision?

feralink-fga avatar Dec 05 '21 00:12 feralink-fga

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>

shahryar-cmyk avatar Dec 12 '21 04:12 shahryar-cmyk

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

feralink-fga avatar Dec 13 '21 01:12 feralink-fga

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?

filippodicostanzo avatar Jan 14 '22 10:01 filippodicostanzo

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

buroz avatar Jan 14 '22 16:01 buroz

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

xrayDon avatar Feb 09 '22 12:02 xrayDon

In March, with same error

KaviHarjani avatar Apr 18 '22 14:04 KaviHarjani

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: @.***>

Sithira avatar Apr 20 '22 19:04 Sithira

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

pjarnfelt avatar May 10 '22 10:05 pjarnfelt

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?

FlatCodeIq avatar May 20 '22 22:05 FlatCodeIq

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

KaviHarjani avatar May 21 '22 03:05 KaviHarjani

Has been updated to v2. Please check the master branch

Sithira avatar Oct 14 '22 19:10 Sithira