[flutter/audioplayers]播放资源时报错

/ 10,012评论 / 44141阅读 / 0点赞

前言

问题

无法读取assets文件

E/flutter (32073): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Unable to load asset: assets/file/music.mp3
E/flutter (32073): #0      PlatformAssetBundle.load (package:flutter/src/services/asset_bundle.dart:258:7)
E/flutter (32073): <asynchronous suspension>
E/flutter (32073): #1      AudioCache.fetchToMemory (package:audioplayers/src/audio_cache.dart:75:22)
E/flutter (32073): <asynchronous suspension>
E/flutter (32073): #2      AudioCache.load (package:audioplayers/src/audio_cache.dart:101:31)
E/flutter (32073): <asynchronous suspension>
E/flutter (32073): #3      AudioPlayer.setSourceAsset (package:audioplayers/src/audioplayer.dart:237:17)

本地资源/网络资源都无法播放

......
D/MediaCodecList(32073): codecHandlesFormat: no format, so no extra checks
D/CCodec  (32073): allocate(c2.android.mp3.decoder)
I/CCodec  (32073): setting up 'default' as default (vendor) store
I/CCodec  (32073): Created component [c2.android.mp3.decoder]
D/CCodecConfig(32073): read media type: audio/mpeg
D/ReflectedParamUpdater(32073): extent() != 1 for single value type: algo.buffers.max-count.values
D/ReflectedParamUpdater(32073): extent() != 1 for single value type: output.subscribed-indices.values
D/ReflectedParamUpdater(32073): extent() != 1 for single value type: input.buffers.allocator-ids.values
D/ReflectedParamUpdater(32073): extent() != 1 for single value type: output.buffers.allocator-ids.values
D/ReflectedParamUpdater(32073): extent() != 1 for single value type: algo.buffers.allocator-ids.values
D/ReflectedParamUpdater(32073): extent() != 1 for single value type: output.buffers.pool-ids.values
D/ReflectedParamUpdater(32073): extent() != 1 for single value type: algo.buffers.pool-ids.values
......
D/CCodecBufferChannel(32073): [c2.android.mp3.decoder#231] MediaCodec discarded an unknown buffer
I/hw-BpHwBinder(32073): onLastStrongRef automatically unlinking death recipients
......

网络资源加载失败

......
Unexpected error!
D/AudioPlayers(31616): java.io.IOException: Cleartext HTTP traffic to {xxx.域名} not permitted
......
  1. Bradleyarrip说道:

    can you buy prednisone online uk prednisone can you buy prednisone over the counter in usa

  2. Bradleyarrip说道:

    cheap amoxicillin 500mg Amoxicillin buy online amoxicillin buy no prescription

  3. StevenWearo说道:

    amoxicillin cephalexin: amoxicillin cost australia – amoxicillin 500mg tablets price in india

  4. DanielArill说道:

    amoxicillin 1000 mg capsule http://clomidrexpharm.com/# how can i get clomid no prescription

  5. Тут можно преобрести оружейные сейфы интернет магазин сейф для хранения оружия

  6. Derekjup说道:

    where to buy amoxicillin: amoxil com pharm – amoxicillin order online no prescription

  7. DanielArill说道:

    amoxicillin 500 mg tablet price https://prednisoneraypharm.com/# buy prednisone online no prescription

  8. Brandenven说道:

    order amoxicillin online: amoxil com pharm – where can i get amoxicillin 500 mg

  9. StevenWearo说道:

    where can i buy amoxocillin: Com Pharm – amoxicillin for sale

  10. Brandenven说道:

    prednisone 10mg tabs: prednisone otc uk – prednisone 0.5 mg

  11. Bradleyarrip说道:

    priligy max pharm dapoxetine online priligy max pharm

  12. Bradleyarrip说道:

    dapoxetine online priligy max pharm priligy max pharm

  13. DanielArill说道:

    amoxicillin generic https://priligymaxpharm.com/# buy dapoxetine online

  14. StevenWearo说道:

    prednisone canada prescription: cheap prednisone – prednisone buy

  15. LarryHer说道:

    medication from mexico pharmacy: mexican drugstore online – mexican drugstore online

  16. GlennSeade说道:

    mexican rx online mexican pharmacy mexico pharmacies prescription drugs

  17. Bradleyarrip说道:

    http://canadiandrugsgate.com/# ed cures that work

  18. Jefferyswava说道:

    male erection: canadiandrugsgate.com – erectial dysfunction

  19. LarryHer说道:

    prescription drugs online: Best Canadian pharmacy – canadian pharmacy

  20. LarryHer说道:

    cause of ed: canadian pharmacy – ed pills

  21. Jefferyswava说道:

    viagra without a doctor prescription: canadian drugs gate – erection pills

  22. Тут можно преобрести сейф огнестойкий купить огнеупорные сейфы

  23. GlennSeade说道:

    best online pharmacies in mexico mexican drugstore online mexican mail order pharmacies

  24. Bradleyarrip说道:

    https://canadiandrugsgate.com/# what type of medicine is prescribed for allergies

  25. Jefferyswava说道:

    Online medicine order: Indian pharmacy international shipping – online shopping pharmacy india

  26. Bradleyarrip说道:

    https://indianpharmacyeasy.com/# Online medicine order

  27. LarryHer说道:

    cheap online pharmacy: canadian pharmacy drugs gate – erectile dysfunction medications

  28. Jefferyswava说道:

    pharmacies in mexico that ship to usa: Mexican Pharmacy Gate – purple pharmacy mexico price list

  29. LarryHer说道:

    buy drug online: canadiandrugsgate – cheap online pharmacy

  30. Bradleyarrip说道:

    http://mexicanpharmgate.com/# mexico drug stores pharmacies

  31. Jamiescact说道:

    https://indianpharmacyeasy.com/# pharmacy website india

  32. GlennSeade说道:

    treat ed canadian drugs gate online canadian pharmacy

  33. Jamiescact说道:

    http://mexicanpharmgate.com/# mexico drug stores pharmacies

  34. Bradleyarrip说道:

    https://canadiandrugsgate.com/# herbal ed remedies

  35. Jefferyswava说道:

    medicine in mexico pharmacies: Mexican Pharm Gate – buying from online mexican pharmacy

  36. GlennSeade说道:

    ed doctors Canadian pharmacy online natural ed

  37. Bradleyarrip说道:

    https://mexicanpharmgate.com/# п»їbest mexican online pharmacies

  38. LarryHer说道:

    mexican mail order pharmacies: mexican pharmacy – purple pharmacy mexico price list

  39. Jamiescact说道:

    http://canadiandrugsgate.com/# pet meds without vet prescription canada

  40. LarryHer说道:

    indian pharmacy: Indian pharmacy international shipping – cheapest online pharmacy india

  41. Jefferyswava说道:

    online pharmacy india: indian pharmacy – indian pharmacy paypal

  42. Jamiescact说道:

    http://mexicanpharmgate.com/# buying prescription drugs in mexico

  43. Jefferyswava说道:

    what causes ed: canadian drugs gate – erectile dysfunction medications

  44. Jamiescact说道:

    http://mexicanpharmgate.com/# buying prescription drugs in mexico online

  45. Bradleyarrip说道:

    https://indianpharmacyeasy.com/# best india pharmacy

  46. GlennSeade说道:

    best india pharmacy Indian pharmacy to USA reputable indian online pharmacy

  47. Jamiescact说道:

    https://canadiandrugsgate.com/# pain meds without written prescription

  48. accepes说道:

    how to buy priligy im 16 years old The impact of hormonal deprivation therapy for cancer treatment and the risk of CVD is discussed further below

  49. Jamiescact说道:

    https://mexicanpharmgate.com/# mexican pharmaceuticals online

  50. GlennSeade说道:

    buying prescription drugs in mexico MexicanPharmGate mexican pharmaceuticals online

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注