最近一个快要上线的项目,在部分手机上测出问题,为了找到问题,准备用数据线连接手机调试,但是发现连上手机后应用安装不了。。。装不了。。。不了。。。了。用的手机是Vivo Y85,很头大啊,但就是连接不上找不到问题。
在Android Studio上的出现的异常提示是:
Installation failed with message INSTALL_FAILED_TEST_ONLY.
It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present,and then re-installing.
WARNING:Uninstalling will remove the application data!
Do you want to uninstall the existing application?
解决办法
首先确保手机打开了开发者模式以及USB调试功能。
然后在Android Studio中将testOnly功能关掉
如此,便搞定了