- 注意: 此文针对部署到模拟器能正常运行,部署到手机出现 Installation error: Unknown failure 的问题
console弹出如下提示:
- [2016-04-11 19:20:37 Test] ——————————
- [2016-04-11 19:20:37 Test] Android Launch!
- [2016-04-11 19:20:37 Test] adb is running normally.
- [2016-04-11 19:20:37 Test] Performing com.example.test.MainActivity activity launch
- [2016-04-11 19:20:37 Test] Automatic Target Mode: Unable to detect device compatibility. Please select a target device.
- [2016-04-11 19:20:38 Test] Uploading Test.apk onto device ‘CB5A224Q’
- [2016-04-11 19:20:39 Test] Installing Test.apk…
- [2016-04-11 19:20:39 Test] Installation error: Unknown failure
- [2016-04-11 19:20:39 Test] Please check logcat output for more details.
[2016-04-11 19:20:39 Test] Launch canceled!
出现此问题请检查手机上的安全设置,权限比较大的应用.
- 极有可能是安全设置或者安全类应用阻止了应用安装
- 如下图所示:
- 更改对应设置即可.