Unable to lunch the app on emulator

Its working fine on the real device if i am changing the name to “android device” and able to perform the operation,but not able to lunch the app in emulator…

**The emulator is having android Nougat but the real device is having the marshmallow…I guess may be the appium has some issue with the latest version of the android **

Note:- Here i am using the lattest version of jars
** Appium 1.6.5**
** selenium server 3.5.3**
** Java client 5.0.3**

org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: packageAndLaunchActivityFromManifest failed. Original error: Command ‘C:\Users\surya\AppData\Local\Android\sdk\build-tools\25.0.3\aapt.exe dump badging D:\appiumcode\ApiDemoFramework\com.goibibo.2.9.5.apk’ exited with code 1 (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 63.76 seconds

Check these two Github links:


Copy pasting from the Github:

it works by setting right AppActivity capability.

To find AppPackageName and AppActivity …
C:\Users\myName\AppData\Local\Android\sdk\build-tools\25.0.2>aapt list -a “C:\myProject\bin\Debug\Apps\myApp.apk” > “C:\output.txt”

in output.txt file

search for [Android manifest]
==> find [A: package="yourAppPackageName:]

search for [E: activity]
==> find a list of activity names, try them one by one, most likely it would be the first one.