I/ExoPlayerImpl(19544): Init a3b662d [ExoPlayerLib/2.18.1] [generic_x86_arm, AOSP on IA Emulator, Google, 28]
E/ExoPlayerImplInternal(19544): Playback error
E/ExoPlayerImplInternal(19544): com.google.android.exoplayer2.ExoPlaybackException: Source error
E/ExoPlayerImplInternal(19544): at com.google.android.exoplayer2.ExoPlayerImplInternal.handleIoException(ExoPlayerImplInternal.java:632)
E/ExoPlayerImplInternal(19544): at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:604)
E/ExoPlayerImplInternal(19544): at android.os.Handler.dispatchMessage(Handler.java:102)
E/ExoPlayerImplInternal(19544): at android.os.Looper.loop(Looper.java:193)
E/ExoPlayerImplInternal(19544): at android.os.HandlerThread.run(HandlerThread.java:65)
E/ExoPlayerImplInternal(19544): Caused by: com.google.android.exoplayer2.upstream.HttpDataSource$CleartextNotPermittedException: Cleartext HTTP traffic not permitted. See https://exoplayer.dev/issues/cleartext-not-permitted
E/ExoPlayerImplInternal(19544): at com.google.android.exoplayer2.upstream.DefaultHttpDataSource.open(DefaultHttpDataSource.java:373)
E/ExoPlayerImplInternal(19544): at com.google.android.exoplayer2.upstream.DefaultDataSource.open(DefaultDataSource.java:258)
E/ExoPlayerImplInternal(19544): at com.google.android.exoplayer2.upstream.StatsDataSource.open(StatsDataSource.java:84)
E/ExoPlayerImplInternal(19544): at com.google.android.exoplayer2.source.ProgressiveMediaPeriod$ExtractingLoadable.load(ProgressiveMediaPeriod.java:1005)
E/ExoPlayerImplInternal(19544): at com.google.android.exoplayer2.upstream.Loader$LoadTask.run(Loader.java:412)
E/ExoPlayerImplInternal(19544): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
E/ExoPlayerImplInternal(19544): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
E/ExoPlayerImplInternal(19544): at java.lang.Thread.run(Thread.java:764)
E/ExoPlayerImplInternal(19544): Caused by: java.io.IOException: Cleartext HTTP traffic to 127.0.0.1 not permitted
E/ExoPlayerImplInternal(19544): at com.android.okhttp.HttpHandler$CleartextURLFilter.checkURLPermitted(HttpHandler.java:115)
E/ExoPlayerImplInternal(19544): at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:458)
E/ExoPlayerImplInternal(19544): at com.android.okhttp.internal.huc.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:127)
E/ExoPlayerImplInternal(19544): at com.android.tools.profiler.support.network.httpurl.TrackedHttpURLConnection.connect(TrackedHttpURLConnection.java:154)
E/ExoPlayerImplInternal(19544): at com.android.tools.profiler.support.network.httpurl.HttpURLConnection$.connect(HttpURLConnection$.java:312)
E/ExoPlayerImplInternal(19544): at com.android.tools.appinspection.network.httpurl.TrackedHttpURLConnection.connect(TrackedHttpURLConnection.kt:168)
E/ExoPlayerImplInternal(19544): at com.android.tools.appinspection.network.httpurl.HttpURLConnectionWrapper.connect(HttpURLConnectionWrapper.kt:253)
E/ExoPlayerImplInternal(19544): at com.google.android.exoplayer2.upstream.DefaultHttpDataSource.makeConnection(DefaultHttpDataSource.java:644)
E/ExoPlayerImplInternal(19544): at com.google.android.exoplayer2.upstream.DefaultHttpDataSource.makeConnection(DefaultHttpDataSource.java:541)
E/ExoPlayerImplInternal(19544): at com.google.android.exoplayer2.upstream.DefaultHttpDataSource.open(DefaultHttpDataSource.java:367)
E/ExoPlayerImplInternal(19544): ... 7 more
E/AudioPlayer(19544): TYPE_SOURCE: Cleartext HTTP traffic not permitted. See https://exoplayer.dev/issues/cleartext-not-permitted
I/ExoPlayerImpl(19544): Release a3b662d [ExoPlayerLib/2.18.1] [generic_x86_arm, AOSP on IA Emulator, Google, 28] [goog.exo.core, goog.exo.exoplayer, goog.exo.decoder, goog.exo.datasource]
E/flutter (19544): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: (0) Source error
E/flutter (19544): #0 AudioPlayer._load (package:just_audio/just_audio.dart:850:9)
E/flutter (19544):
E/flutter (19544): #1 AudioPlayer._setPlatformActive.setPlatform (package:just_audio/just_audio.dart:1435:28)
E/flutter (19544):
E/flutter (19544):
Solution
Add