Steps to reproduce the behavior
1. Create an AVD in Android Studio via Tools > Android > AVD Manager without the matching SDK being installed, e.g. AVD with Android 5.1 but no SDK 22 installed. This will download the required Google APIs System Image but not the SDK.
2. Try to run an app on that emulator with appc run -p android -C <emulator-id> -l trace
The build crashes with the following error:
The build succeeds and the app launches on the specified AVD.
This also breaks appc info with the unhelpful error: