Error

I/ExoPlayerImpl(20362): Init 3ea212a [ExoPlayerLib/2.17.1] [generic_x86_64, Android SDK built for x86_64, Google, 29] E/ExoPlayerImplInternal(20362): Playback error E/ExoPlayerImplInternal(20362):   com.google.android.exoplayer2.ExoPlaybackException: Source error E/ExoPlayerImplInternal(20362):       at com.google.android.exoplayer2.ExoPlayerImplInternal.handleIoException(ExoPlayerImplInternal.java:641) E/ExoPlayerImplInternal(20362):       at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:613) E/ExoPlayerImplInternal(20362):       at android.os.Handler.dispatchMessage(Handler.java:103) E/ExoPlayerImplInternal(20362):       at android.os.Looper.loop(Looper.java:214) E/ExoPlayerImplInternal(20362):       at android.os.HandlerThread.run(HandlerThread.java:67) ….. I/ExoPlayerImpl(20362): Release 3ea212a [ExoPlayerLib/2.17.1] [generic_x86_64, Android SDK built for x86_64, Google, 29] [goog.exo.core, goog.exo.exoplayer, goog.exo.decoder, goog.exo.datasource] E/flutter (20362): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: (0) Source error

Solution

If you want to load local assets mp3 file, you should use .setAsset(path) instead of .setURL(path) function.