Comments (14)
Same problem here. I would like to add other information. I tried to compile passing from flutter 1 to Flutter 2 and the situation worsened. The library is not compliant to the null safety.
from flutterradioplayer.
No one has my same problem? Can you share your android and configuration? It's very important guys. Thank you
from flutterradioplayer.
I'm also getting this error on Android. Don't know about iOS though.
from flutterradioplayer.
I have the same problem too
from flutterradioplayer.
This seems to be a similar issue #26, so I tried both solutions mentioned there, yet none worked. @vinzaceto did you port to another package or find a way around this?
from flutterradioplayer.
@nmeri17 can you attach your logs here ?
from flutterradioplayer.
@nmeri17 can you attach your logs here ?
It's identical to the one OP is getting. The only difference is in the version numbers when I tried rolling back to 1.0.5 (instead of ^1.0.7), and of course, the PC paths. I deleted "build" folder also and reran, but that didn't help
I only succeeded in building after commenting out the package from pubspec and commenting out the entire file the plugin was being used in
from flutterradioplayer.
@nmeri17 can you attach your logs here ?
It's identical to the one OP is getting. The only difference is in the version numbers when I tried rolling back to 1.0.5 (instead of ^1.0.7), and of course, the PC paths. I deleted "build" folder also and reran, but that didn't help
I only succeeded in building after commenting out the package from pubspec and commenting out the entire file the plugin was being used in
Can you try in below steps ?
- Remove the FRP from your app. Comment whatever code that is related with the FRP.
- Do a clean build ( this time there should be no FRP in your app )
- Now install the package (1.0.7)
- Check if the build is passing now ( still don't uncomment your business logic )
- If the build is passing then you may uncomment your application logic related to FRP
from flutterradioplayer.
I repeated those steps just to be sure; the results were always the same. I am stuck on step 4, which has the stack trace
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
e: C:\src\flutter.pub-cache\hosted\pub.dartlang.org\flutter_radio_player-1.0.7\android\src\main\kotlin\me\sithiramunasinghe\flutter\flutter_radio_player\core\StreamingCore.kt: (121, 90): Type mismatch: inferred type is String? but String was expected
e: C:\src\flutter.pub-cache\hosted\pub.dartlang.org\flutter_radio_player-1.0.7\android\src\main\kotlin\me\sithiramunasinghe\flutter\flutter_radio_player\core\StreamingCore.kt: (123, 63): Type mismatch: inferred type is String? but String was expected
e: C:\src\flutter.pub-cache\hosted\pub.dartlang.org\flutter_radio_player-1.0.7\android\src\main\kotlin\me\sithiramunasinghe\flutter\flutter_radio_player\core\StreamingCore.kt: (174, 32): Type mismatch: inferred type is String? but String was expected
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ':flutter_radio_player:compileDebugKotlin'.
Compilation error. See log for more details
from flutterradioplayer.
I just tried some trick -- installing the package and uncommenting the relevant widget class while the build is running on the emulator. I hot-restarted the app and it kept running successfully. However, the radio doesn't play. It throws an error with a rather lengthy stack trace, which can be found at this bin https://pastebin.com/HQgktHej
from flutterradioplayer.
@Sithira in case you are having difficulty reproducing, this issue arose after trying to build a signed app bundle. Prior to that, I was able to build and deploy debug versions on the emulator or real device. Please let me know if you are able to make any progress identifying the issue
from flutterradioplayer.
Hi @Sithira No response from you yet. I've tried downgrading to version 1.0.0 but the issue persisted. Which means it's not a version issue. The only other major update I made was to the gradle bundle version. The distribution version at gradle/wrapper/gradle-wrapper.properties was 5.4.x. I think your code is incompatible with this gradle version and I'm unable to build signed release bundles with any lower version. Can you try updating your gradle version to 6.5 and see if you can replicate and perhaps fix the issue? Many thanks
from flutterradioplayer.
I have same problem.
from flutterradioplayer.
Kindly update to newest version
from flutterradioplayer.
Related Issues (20)
- Album art does not update on Android 13 - Solution (version 1.0.1) HOT 1
- Radio resume after ending of call or music HOT 2
- Not resuming playback on Internet resume HOT 1
- Build time issue HOT 18
- how can i track if radio is flutter_radio_stopped HOT 1
- Execution failed for task ':flutter_radio_player:compileDebugKotlin'. HOT 7
- Swift Compiler Error (Xcode): Cannot convert value of type HOT 9
- FRPCoreService has not been initialized yet HOT 5
- PlatformException on Release HOT 2
- java.lang.IllegalStateException: Handler (android.os.Handler) HOT 2
- Question HOT 2
- IOS error message HOT 1
- Value of type 'AudioPlayer.EventHolder' has no member 'receiveMetadata' HOT 11
- Current track time? HOT 1
- CarPlay support HOT 1
- Player stops
- two bugs .. the notifies don't dissapear... HOT 2
- android.app.MissingForegroundServiceTypeException HOT 3
- Is the Auto play function possible? HOT 1
- How to customize iOS control center metadatas ? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutterradioplayer.