-
-
Notifications
You must be signed in to change notification settings - Fork 357
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
error on compile :assets_audio_player:compileDebugKotlin'. #399
Comments
facing the same problem |
Same issue here with Flutter 1.22.4, as also noted in #382. This is the output for
This is the output for
Can you give any update on this @florent37? |
Could you follow below steps ? flutter clean |
flutter clean:
flutter pub cache repair:
Exactly the same issue. It is also interesting to note that the import line is greyed out, indicating that I could run the app without expliciting the import.
So this line is not throwing an error even if I remove the import line
|
Facing same issue. When this will be resolved ? Can't release new version of app. Please fix this |
@nagarwa2 you have to change your gradle version to this: Merci @florent37 pour ce package, quand t'as le temps essaye de voir le soucis avec la monter de version. On ne peux plus faire d'application Android en App Bundle sans cette mise à jours, on est obligé de faire un apk ;) |
That's not a solution. I cannot do that as I rely on 4.1.1 version of gradle for other parts of the application. |
I am still facing the same problem, @florent37 Can you please update the library. It's very crucial, |
This worked but as we need latest version its not recommended. |
I downgraded to 2.0.10 to solve this. |
any solution so far implementing classpath 'com.android.tools.build:gradle:4.1.1'? |
any news? |
This worked for me ✨ // classpath 'com.android.tools.build:gradle:4.1.0'
classpath 'com.android.tools.build:gradle:3.5.3' Goto file dependencies:
assets_audio_player: ^2.0.10 This will help you in building the app release. |
Thanks for your reply, but I already solved that by that solution as someone already said it before, I mean a solution with the same |
I have the same problem. You should update the repository, this way we are limited.
|
1- download the package from here : https://github.com/florent37/Flutter-AssetsAudioPlayer |
Why not make a PR on this repository with this change you're describing? |
Hi, |
Please use latest version with commit id.
|
I am closing for now. Please let me know, if it is not working. |
Hi,
|
Delete the pubspec.lock file then run the command flutter pub get again. |
Hi @kalismeras61,
|
There is a problem with your pub cache . Can you remove all assets player in pub cache folder ? and then run flutter pub get |
Hi @kalismeras61, same issue yet. I removed everything in my folder cache and subfolders with relationship assests_audio.
and after that:
|
Can you show how are you import to package in your pubspec.yaml file ? |
Sure.
|
I did some changes in another branch. Can you test with this. Please do flutter clean remove pubspec.lock file and import package run flutter pub get.
|
Hi @kalismeras61, same issue yet. I removed again everything in my folder cache and subfolders with relationship assests_audio. C:\Users\rocha\AppData\Roaming\Pub\Cache\ and after that:
|
Can yıu change like below in your app / build.gradle compileSdkVersion 29 and targetSdkVersion 29 |
Hi, @kalismeras61 ,
good news: I changed evertthing to 29 and work well with debug mode.
|
Cool . I am glad to hear that. Please do test and let me know. |
Hi, @kalismeras61, I published it with version 22 and 29 and it passed, but I will only be able to do tests on the physical mobile tomorrow. |
Same issue with targetSdkVersion 30 |
Hi @offline-first, |
also, work by changing |
I just followed all the steps robertoltrocha outlined and I'm still failing to compile. Is there any working solution to this issue? If not, I'm going to just need to look for a different flutter package which plays mp3s. Thanks! |
I had this same problem. what i did was to downgrade classpath from classpath 'com.android.tools.build:gradle:4.1.1' and i had my project build, this may not work for you tho |
Same issue and non of the above solutions worked |
I tried to change gradle's version from 4.4.1 to 3.5.3, but it did not work. |
Hi,
I can not compile my project because the issue below, someone could help me please?
BUILD FAILED in 26s
Exception: Gradle task assembleDebug failed with exit code 1
assets_audio_player: ^2.0.13+1
The text was updated successfully, but these errors were encountered: