Search code examples
androidunity-game-enginegoogle-vrdaydream

Unable to Build and Run Unity VR project for Daydream on phone and having hard time debugging the application


Although I’m able to run the apk on phone, but whenever I try to build and run my project directly from Unity on phone, it doesn’t work. This is the error message it shows:enter image description here

On checking the console, these are the messages it shows: enter image description here

But I'm pretty sure my path is correct, I checked it multiple times. Also, the APKs are building and working fine. Let me know how can I Build and Run from Unity as I'm not able to debug the applications.


Solution

  • This seems to be a known issue that is solved by downgrading the Android SDK tools to an older version as reported here.

    I am just going to re-narrate the steps in the link I shared above for convenience as follows:

    • Go to Android Studio website.
    • Scroll down to the end of the page and download the command line tools from the section titled as "Get just the command line tools"
    • In your computer, go to $AndroidSDKHome$ and rename the tools folder to tools.bak
    • Extract the contents of zip file that you downloaded to the $AndroidSDKHome$. This basically will replace your SDK tools folder with a downgraded version.