[MJSONWP] Encountered internal error running command: Error:

debug] [AndroidDriver] Not cleaning generated files. Add clearSystemFiles capability if wanted.
[MJSONWP] Encountered internal error running command: Error: Error occured while starting App.

As you have mentioned “full-reset: false” in your desired capabilities, appium is not finding your launch activity at the start as the app might me already installed on the device. Try removing the full-reset capability and check if this works out.

I could still see fullReset: “false” in you desired capabilities.

Can you paste your desired capabilities code here. So that we get a clear picture of what exactly is going wrong

Add the capabilities:

capabilities.setCapability(“appPackage”, “com.your.package”);
capabilities.setCapability(“appActivity”, “com.your.package.MainActivity”);

Forget about waitAppActivity (it doesn’t work for me) and this solved my problem.

PS: In case you don’t know where to find the appPackage or the appActivity who launch the app: http://toolsqa.com/mobile-automation/appium/how-to-find-apppackage-and-appactivity-for-apk-file/