The "appc" command line tool always fails to install a built APK to an Android 4.1 device. It can only successfully install to Android 4.2 and higher.
How to Reproduce:
- Connect an Android 4.1 device to your machine.
- In the top-left corner of Appcelerator Studio, select "Run" and the Android 4.1 device from the drop-down UI.
- Click the "Run" button.
- Observe the "Console" log.
Alternatively, you can do this at the command line via...
The install fails after the build with the following error messages...
The CLI is installing the APK using Google's "adb" command line tool with the "-d" argument. Android 4.1 does not support the "-d" argument.
The "adb" command line does not return an error until near the end of the install, which can take a lot of time for large APKs. So, it would be best to fetch the API Level from the device first via the "adb shell getprop" command and then only use "adb install" with argument "-d" if the API Level is 17 or higher.