Fixed
Status Update
Comments
je...@google.com <je...@google.com> #2
Comment has been deleted.
hu...@google.com <hu...@google.com> #3
Sleep as Android users who upgraded to 4.3 recently report the same issue. It seems SoundPool looping is broken in 4.3...
an...@google.com <an...@google.com> #4
I can approve the issue is reproducible on the 4.3 emulator. Unfortunately no hint in in the logcat related to audio or sound pool which would give further insight. The only think I'm getting releted to SoundPool every time I try using it is:
07-29 12:19:43.844: ERROR/SoundPool(296): error loading /system/media/audio/ui/KeypressReturn.ogg
07-29 12:19:43.864: WARN/AudioService(296): Soundpool could not load file: /system/media/audio/ui/KeypressReturn.ogg
07-29 12:19:43.814: WARN/AudioService(296): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
07-29 12:19:43.814: ERROR/SoundPool(296): error loading /system/media/audio/ui/Effect_Tick.ogg
...
07-29 12:19:43.864: WARN/AudioService(296): onLoadSoundEffects(), Error -1 while loading samples
07-29 12:19:43.844: ERROR/SoundPool(296): error loading /system/media/audio/ui/KeypressReturn.ogg
07-29 12:19:43.864: WARN/AudioService(296): Soundpool could not load file: /system/media/audio/ui/KeypressReturn.ogg
07-29 12:19:43.814: WARN/AudioService(296): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
07-29 12:19:43.814: ERROR/SoundPool(296): error loading /system/media/audio/ui/Effect_Tick.ogg
...
07-29 12:19:43.864: WARN/AudioService(296): onLoadSoundEffects(), Error -1 while loading samples
sa...@gmail.com <sa...@gmail.com> #5
I did try a non -1 looping parameter and it seems even finite looping is broken. Did someone had a chance to look at the 4.3 sources for SoundPool? Thanks.
Description
(Extracted fromhttp://issuetracker.google.com/230454566#comment20 .)
Steps to reproduce
https://github.com/android/nowinandroid
The build will fail with:
Root cause
When setting up the query of classes .
DexingWithFullClasspathTransform
(available whenandroid.useFullClasspathForDexingTransform = true
), we didn't add all the necessary attributes forTherefore, Gradle couldn't select the correct transform among multiple available ones.
Fix
Add the missing attributes to the transform setup:
Workaround
If you run into this issue, please try adding the attribute manually in your build script as follows:
The attribute to add can be found by analyzing the error message. In most cases, the above will work; but if it doesn't, please let us know.