Coder Social home page Coder Social logo

Comments (9)

satviksriv avatar satviksriv commented on September 18, 2024 2

There is something wrong about the audioplayers package.

I tried the same.
Making a new fresh project and then adding the files by myself.
But everytime there is an error related to that package.
Beleive me, I have tried every possible solution but nothing worked out, always an error related to the package.

from xylophone-flutter-completed.

coletoncodes avatar coletoncodes commented on September 18, 2024 1

I also went the route that @Lakhankumawat went through in creating a new project through $ flutter create app, adding assets to the project, and grabbing the audioplayers plugin v0.19.1. I could not get the app to work, and I have spent the better half of 4 hours working on it. I'm somewhat experienced with programming so I decided to skip this module, my advice to any new programmers is to try and find a different package to use for the project.

This one may be worth trying if one felt adventurous: assets_audio_player: ^3.0.3+3

See you in the next module!

from xylophone-flutter-completed.

harunmohamed avatar harunmohamed commented on September 18, 2024

It might be an issue with the version of SDK used in pubspec.yaml. Try using a newer version of the SDK (sdk: ">=2.7.0 <3.0.0" as of today) and paste it in pubsec.yaml right underneath environment and run pub get

from xylophone-flutter-completed.

satviksriv avatar satviksriv commented on September 18, 2024

I am facing the same issue and I followed the steps in the flutter documentation to migrate the project but it didn't work.
Instead, it caused more errors.
Any video tutorial or text tutorial on how to fix this project migration issue might help a lot.
If there is any, please let me know.

from xylophone-flutter-completed.

Lakhankumawat avatar Lakhankumawat commented on September 18, 2024

So this error is seen when you use completed project or work along the tutorials making your own ...
I tried making a complete new project , making a new directory named assets copying files , changing yml file and installing audio player getting dependencies all in a good and clear manner but still it had errors . Only choice i had to skip this module ........
After being gone through it learning the things covered without implementing them ....
Any suggestions are welcomed ...

from xylophone-flutter-completed.

Lakhankumawat avatar Lakhankumawat commented on September 18, 2024

There is something wrong about the audioplayers package.

I tried the same.
Making a new fresh project and then adding the files by myself.
But everytime there is an error related to that package.
Beleive me, I have tried every possible solution but nothing worked out, always an error related to the package.

@satviksriv I tried out another package for audio_player and now my Xylophone_app works totally fine Sweet and Simple you should also try it out here also most of the code is same as Angela yu except the new package i used
It works without any errors
Make sure you check it out ..
https://github.com/Lakhankumawat/Xylophone_app-Flutter

from xylophone-flutter-completed.

Lakhankumawat avatar Lakhankumawat commented on September 18, 2024

Let me know if you face any errors i will be glad to help out ...

from xylophone-flutter-completed.

anirudhsanthosh avatar anirudhsanthosh commented on September 18, 2024

what fixed in my case is

changing the ext.kotlin_version = '1.4.32' in the android/build.gradle

from xylophone-flutter-completed.

Golli92 avatar Golli92 commented on September 18, 2024

see needs to update the project with code that works today. I could not get the audio to work player.play() dont work anymore in flutter.

from xylophone-flutter-completed.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.