Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
StripedMittens opened this issue Nov 9, 2021 · 14 comments

Comments

@StripedMittens
Copy link

.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
Copy link

Waiting for same fix here. Thanks

@ignaciomarti
Copy link

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

@feralink-fga
Copy link

Waiting for same fix here. Thanks

waiting too. any prevision?

@shahryar-cmyk
Copy link

shahryar-cmyk commented Dec 12, 2021

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
Copy link

feralink-fga commented Dec 13, 2021

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
Copy link

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
Copy link

buroz commented Jan 14, 2022

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

@xrayDon
Copy link

xrayDon commented Feb 9, 2022

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

@KaviHarjani
Copy link

In March, with same error

@Sithira
Copy link
Owner

Sithira commented Apr 20, 2022 via email

@pjarnfelt
Copy link

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

@FlatCodeIq
Copy link

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
Copy link

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
Copy link
Owner

Sithira commented Oct 14, 2022

Has been updated to v2. Please check the master branch

@Sithira Sithira closed this as completed Oct 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests