Appium fails to launch the App on Emulator

Hi,
I have installed my app on the Android emulator, I can easily navigate my app manually,
but when i launch it through appium, I get the error message .Unfortunately App has stopped.
The same tests run fine on the real device.
Do i have to make any changes to my code to support emulator?
Please let me know
Thanks in advance.