I'm trying to simply build the Cardboard demo found here: https://developers.google.com/cardboard/unity/download#cardboard_sdk_for_unity_and_demo
I've followed all the instructions rigorously, I have all the right SDKs and their paths, I have an old LG E Android phone 4.1.2, which my computer is able to connect to, and as Unity is pushing the APK to the phone I get a little pop up message with the following error:
CommandInvokationFailure: Unable to install APK to device. Please make sure the Android SDK is installed and is properly configured in the Editor. See the Console for more details.
C:/Users/Cristina.GrstLightning/AppData/Local/Android/sdk\platform-tools\adb.exe -s "LG-E973-1c8ab70a" install -r "C:\Users\Cristina.GrstLightning\Documents\New Unity Project\Temp\StagingArea\Package.apk"
stderr[
158 KB/s (851968 bytes in 5.242s)
- waiting for device -
]
stdout[
rm failed for -f, No such file or directory
]
UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.ADB.RunInternal (System.String[] command, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.ADB.Run (System.String[] command, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.AndroidDevice.Exec (System.String[] command, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.AndroidDevice.Install (System.String apkfile, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit)
UnityEditor.Android.PostProcessAndroidPlayer.UploadAndStartPlayer (System.String manifestName, System.String stagingArea, UnityEditor.Android.AndroidDevice device, System.String packageName, Boolean developmentPlayer, Boolean retryUpload)
UnityEditor.Android.PostProcessAndroidPlayer.PostProcessInternal (System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry)
UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry)
UnityEditor.HostView:OnGUI()
I've also tried building the project and side-loading it on the phone. Then I get get a parse error and it doesn't install.
Here is a screen shot of the setting of my build in Unity: Other Settings
I'm not new to Unity but I'm new to Android and Cardboard, so I don't even know where to begin with what the console is telling me, other than yes, I do have the right SDK and its path.
I get the sense that my phone is getting in the way of itself. What mean by that is that as Unity is pushing the apk it looks for its driver again and opens an explorer window on the desktop, then I get a build failure error.