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

Flutter stub project is deprecated for new M1 Macs #24

Open
d1teng opened this issue Jan 20, 2021 · 2 comments
Open

Flutter stub project is deprecated for new M1 Macs #24

d1teng opened this issue Jan 20, 2021 · 2 comments

Comments

@d1teng
Copy link

d1teng commented Jan 20, 2021

The previous project has many deprecated setup, the Audioplayers package requires v2 of the Android embedding. After which, I've encountered multiple issues with the pod setup pointing to the incorrect IPHONEOS_DEPLOYMENT_TARGET = 8.0 when it needs to be at 9.0.

Please do a new flutter create and just port over the assets for the audio files and icon resources. Others might be encountering this issue soon.

@netlinx2
Copy link

netlinx2 commented Feb 9, 2021

Same problem here. It's not just on new Macs though...

@AkshaySiddannavar
Copy link

Solution :

Step 1 : Create a new flutter project at your local system

Step 2 : Copy the code given in 'main.dart' file of stub project and paste it into 'main.dart' file of your local project

Step 3 : Make an 'assets' folder in your local project

Step 4 : download sound-files from github and put them into your local 'assets' folder

Step 5 : in your local pubspec.yaml file, add dependency for your 'assets' folder

Step 6 : Rename 'MyApp()' in widget testing file to 'MaterialApp()'

Hit save(in files other than pubspec.yaml), get all dependencies(in pubspec.yaml) and you're good to go

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

3 participants