android
android copied to clipboard
Build project
Hi when i want to build a project it gives me this error Cannot convert relative path io.homeassistant.companion.android\daemon\7.3.3 to an absolute file. please how i can resolve this issue ,thanks
did you make sure to follow all of the steps outlined here: https://github.com/home-assistant/android#setup-app-development-environment
Yes, I solved the problem by following these steps: I go to File ⇒ Settings ⇒ Build, Execution, Deployment ⇒ Build Tools ⇒ Gradle, and i change gradle user home to C:/Program Files/Android/Android Studio/jre/bin/io.homeassistant.companion.android instead of ~/.gradle.
To spread the benfit
Thanks
ah so your system had the gradle path at the incorrect location, not sure if we should add this exact step as the path will be different for each install. We do mention to check that the gradle build is successful to catch issues like this. If you feel our documentation should be updated please submit a fix to make it more clear.
you can mention as remark at the end of step 7
Moving the Gradle user home to a random app-specific folder in the Program Files folder doesn't make much sense to me as a recommendation though? The project follows the default settings provided by Gradle (not hardcoded in the project to a specific directory), if it doesn't work it is more likely something related to the folder you're trying to access / IDE / operating system / ...