Bilbo Baggins
Bilbo Baggins

Reputation: 3692

Android Emulator's Audio stopped working

I'm using Eclipse and the Android Emulator on my Mac.

My app has a background audio. It was working before but today when I started Eclipse again, there was no audio.

I tried to delete/recreate new virtual devices from API level 15 to API level 18 but it didn't work.

There is no error in the logcat and the app runs fine.. apart from the fact that there is no audio.

Mac's audio is working. I can hear songs on it.

The avd has the volume bar set to high but for some reason there is no audio.

I am not using snapshot, I am using GPU and I did upgrade my Android SDK manager to the latest API level recently.. Could that be a problem?

Upvotes: 1

Views: 5245

Answers (6)

Yahia Bat
Yahia Bat

Reputation: 624

I had the same problem and I solve it by going to Genymotion and slecting the emulator then setting->ADB->use custom Android Sdk tools

Upvotes: 1

HamidTB
HamidTB

Reputation: 1501

in linux (Arch linux) just add -audio alsa switch on target tab(Run configuration)

that's work for me fine

if not work you may try -audio oss

Upvotes: 0

Glenford Fernandes
Glenford Fernandes

Reputation: 547

The problem is due to the support libraries that you might have missed while downloading the API 18..

Try installing the support libraries too and then create a new AVD and check it should work.

Upvotes: 0

Balaji
Balaji

Reputation: 1619

One more way to solve your issue might be using new Genymotion Android Emulator , it is available for Mac too and it is faster than Google's Android Emulator. I have just tested and audio working fine on Windows, I am using latest Android SDK Tools r22.0.5

Upvotes: 1

sourav
sourav

Reputation: 676

I guess you need to re install the eclipse and android sdk.

Here are some links which may help you

MediaPlayer no longer working on the emulator since r10?

Can not get any hear any audio from Android SDK emulator launched from eclipse

Can't hear sound Android Simulator Mac

Upvotes: 0

Mahdi-bagvand
Mahdi-bagvand

Reputation: 1407

some Way to solveing
1-Check your setting of emulator for hw.audioInput=yes
2-Download again your platform and make new emulator
3-Download again last sdk and replace
4-Try using different VM with different versions of sdk

Upvotes: 0

Related Questions