-
Notifications
You must be signed in to change notification settings - Fork 890
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
The plugin audioplayers
requires your app to be migrated to the Android embedding v2.
#32
Comments
the plugin is not outdated the project is , it was created before version 1.12. It's better to create a new project and then import the assets and other files like app icons etc because migrating it to android embedding v2 is a very tedious job. |
but i still got issues |
This is because of the project, it is outdated and is not according to the flutter android embdding v2. |
Thank you so much ! This worked for me. Additionally , I also had to change another link in gradle-wrapper.properties on the new flutter project. It seems the url of the distribution link was written as https ://services.gradle.org/distributions/gradle-6.7.1-all.zip , so it was unable to unzip some files. Correcting the url to https://services.gradle.org/distributions/gradle-6.7.1-all.zip and upgrading the kotlin version to the latest version in build.gradle solved the issue for me. |
Updating line 2 of android/gradle/build.gradle file to |
Kindly visit this link for any migration related issues here. Helped me too, like for this project I just used the shortcut of recreating it. But the issue is resolved here. |
Just a step by step 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 Note : This won't give an AppIcon though it will be enough to get you started |
Hi, You commented 24 hours ago, but your pubspecYAML is out of date. |
You are also using a version of audioplayers that was superseded months ago... why bother uploading something that is so out of date. |
The plugin is outdated
The text was updated successfully, but these errors were encountered: