This site is in read only mode. Please continue to browse, but replying, likes, and other actions are disabled for now.
1 / 3
Feb 2019

So I have this problem where I can not start my app, unless I kill io.appium.settings in adb.
How it woks is: The app will open and close several times, but no tests will run. Then I get this message:

ERROR: An unknown server-side error occurred while processing the command. Original error: Cannot start the 'my.app.package' application. Visit https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/android/activity-startup.md for troubleshooting. Original error: Error executing adbExec. Original error: 'Command '/home/me/Android/Sdk/platform-tools/adb -P 5037 -s emulator-5554 shell am start -W -n my.app.package/host.exp.exponent.MainActivity -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000' exited with code null'; Stderr: ''; Code: 'null'

I can work around this by adb shell ps | grep appium and then
adb shell
su
kill {PID}
after which the test will start properly, but that is super annoying to do every time. Is there some permanent fix for this issue? I have not written any appPackage or appActivity capabilities.

Is this to do with the fact that this app was built by Expo? (the host.exp.exponent.MainActivity part).

  • created

    Feb '19
  • last reply

    Feb '19
  • 2

    replies

  • 455

    views

  • 2

    users

I hope you are using the capability mentioned below

capabilities.setCapability(“appActivity”, “First activity of the app”);

Yes, I tried setting every combination of appActivity and appPackage.

I manage to isolate the issue: It has to do with the apk. When I an apk from a different project, appium worked fine. This problem only occurs after I launch the same Expo apk twice in row. Seems that it is never properly closed or something.

Edit: Turns out it is most likely a problem with signing keystore. What could cause this?
Also, for the second login, I never get a session ID. I don’t know if this is relevant.