记录学习ARCore遇到的问题:
当我尝试将AR项目通过USB数据线Build and Run,将APK安装到手机时报错:
CommandInvokationFailure: Unable to install APK to device. Please make sure the Android SDK is installed and is properly configured in the editor
通过网上查询,大部分原因是:曾经在手机上安装过该APK,需要将之前安装的卸载,然后再重新build and run。
但是我是第一次执行该操作,所以明显不是上述原因。所以可能是USB调试的关系,进入USB调试,发现USB安装没有勾选——勾选USB安装。
再次Build and Run,发现还是报错,沿着该思路查询,最后再Unity论坛找到原因:
将USB调试里面的“通过USB验证应用”选项去掉,再次Build and run,成功。