Comments (13)
i same,
Did you solve it?
from audio_session.
This plugin does not have a dependency on exoplayer. Are you sure you've got the right plugin here?
from audio_session.
Can you include the whole error message for context so that it shows clearly this is an issue with audio_session?
Of course, quote the output like this
Can you also mention what other plugins you're using in your pubspec.yaml
? Almost certainly it's one of those other plugins that is using exoplayer. I'm also not sure where the bintray reference is coming from. There is no bintray referenced anywhere inside of audio_session.
from audio_session.
Thanks reply
i'm checking all the plugins from pubspec.yaml。
from audio_session.
Feel free to copy and paste your dependencies below. And also share the full context of the error message as requested above.
from audio_session.
Hi, so...
I don't use audio_session directly, but assets_audio_player which uses audio_session.
Here is the build output:
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':app:processReleaseResources'.
> Could not resolve all task dependencies for configuration ':app:releaseRuntimeClasspath'.
> Could not resolve androidx.media2:media2-common:[1.1.3].
Required by:
project :app > project :audio_session > androidx.media2:media2-session:1.1.3
> Failed to list versions for androidx.media2:media2-common.
> Unable to load Maven meta-data from https://google.bintray.com/exoplayer/androidx/media2/media2-common/maven-metadata.xml.
> Could not get resource 'https://google.bintray.com/exoplayer/androidx/media2/media2-common/maven-metadata.xml'.
> Could not GET 'https://google.bintray.com/exoplayer/androidx/media2/media2-common/maven-metadata.xml'. Received status code 502 from server: Bad Gateway
in my pubspec.yaml does not have the direct audio_session
from audio_session.
I don't think assets_audio_player uses audio_session:
https://github.com/florent37/Flutter-AssetsAudioPlayer/blob/master/pubspec.yaml
But let's say some other plugin in your project transitively depends on audio_session, the build process will try to merge everything and will run into a problem because assets_audio_player is using an out-of-date gradle repository called jcenter. You should report this issue with that project.
from audio_session.
Right, thanks.
Despite not appearing as a dependency, when I commented on assets_audio_player, the error didn't happen. That's why I thought it was a direct dependency.
I'll try another way.
Thank you for your help
from audio_session.
I don't think there is another way besides reporting the bug to assets_audio_player so that it doesn't use a deprecated repository.
from audio_session.
Right.
I will do that too
Thanks.
from audio_session.
Well, i figured out:
1 - open the folder "android" in separated window of android studio.
2 - zzz...zzzz.... maven execution about 20 minutes
3 - upgraded my maven of 3.5.4 to 7.0.4, as sugest ed of android studio.
4 - zzz...zzzzz... maven execution about 30 minutes.
5 - closed the windows of android project and open my flutter application.
6 - flutter build apk ..zzz....zzzzz... waiting about 20 minutes
7 - change same dependencies with incompatibilits wiht new gradle.
8 - abracadabra: and everthing worked.
🤷♂️
from audio_session.
6 - flutter build apk ..zzz....zzzzz... waiting about 20 minutes
I suspect that waiting time is Gradle trying to merge your plugins in a number of different ways to see which way works, and I think that takes longer when packages in your dependencies use different repositories or have different versions of the same dependency etc.
from audio_session.
In any case, I assume the issue can be closed.
from audio_session.
Related Issues (20)
- AVAudioSession.mm Failed to set category, error: -50 flutter HOT 2
- devicesChangedEventStream returns empty sets on first load HOT 2
- [iOS] Audio session activation failed when app is in background HOT 1
- Support rxdart 0.28
- Is it possible to set preferredIOBufferDuration for `AVAudioSession` HOT 3
- Stop audio when another app plays audio! HOT 1
- How to configure session to use Bluetooth headset mic on Android? HOT 6
- Can't build on android when targetting android 34 HOT 9
- Add privacy manifest for Apple HOT 6
- [iOS] Background audio not playing on iPhone 13+ HOT 3
- AVAudioSessionCategoryOptions.mixWithOthers stops background music the first time when audio is player, after continuing the music further sounds no longer stop the music HOT 1
- Call requires API level 23 (current min is 16) HOT 1
- Can not play by speaker on iOS HOT 3
- Is it possible to play audio when Do Not Disturb mode is on, but not in silent mode? HOT 1
- `AVAudioSessionCategoryOptions`'s `contains` method takes `AVAudioSessionInterruptionOptions`. Maybe it should be `AVAudioSessionCategoryOptions`? HOT 5
- Dependency causing an ANR in the Background HOT 3
- The music played by IOS17 is not output from Bluetooth earphones HOT 2
- Android detects the headset as if it is connected even if it is not HOT 1
- Trouble closing an audio session HOT 1
- Topics HOT 2
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 audio_session.