android-actions / setup-android

Android SDK setup for GitHub Actions
MIT License
198 stars 67 forks source link

Setup Android SDK fails #392

Closed ash-wtag closed 11 months ago

ash-wtag commented 1 year ago

Hi,I am using self hosted runner (ubuntu) and I have added this action android-actions/setup-android@v2 but the build fails with this error message.

Run android-actions/setup-android@v2
/workdir/_actions/android-actions/setup-android/v2/dist/index.js:354[6](https://github.com/wtag/android-mobile-app/actions/runs/5043540154/jobs/9045450586#step:4:7)
                    throw new Error(`Unable to locate executable file: ${tool}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`);
                          ^

Error: Unable to locate executable file: unzip. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.
    at Object.<anonymous> (/workdir/_actions/android-actions/setup-android/v2/dist/index.js:3546:2[7](https://github.com/wtag/android-mobile-app/actions/runs/5043540154/jobs/9045450586#step:4:8))
    at Generator.next (<anonymous>)
    at fulfilled (/workdir/_actions/android-actions/setup-android/v2/dist/index.js:3357:5[8](https://github.com/wtag/android-mobile-app/actions/runs/5043540154/jobs/9045450586#step:4:9))
cwfitzgerald commented 1 year ago

Try installing the unzip tool using apt, that seems to be the tool it's missing.

prashant-actyv commented 1 year ago

its still not working.

ViliusSutkus89 commented 1 year ago

@ash-wtag , your error message Error: Unable to locate executable file: unzip tells me that you are missing a tool called unzip. Could you install it and verify that it is available by running unzip -v in the console?

ViliusSutkus89 commented 1 year ago

@prashant-actyv , I guess your error message isn't the same, is it?