You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using https://github.com/nektos/act and Docker Desktop for Mac to run GitHub Actions locally.
I added the setup-android@v2.0.10 action to my workflow.
It installs the Android SDK and accepts the licenses, however then the build fails with the exception:
> SDK location not found. Define a valid SDK location with an ANDROID_HOME environment variable or by setting the sdk.dir path in your project's local properties file at '(...)local.properties'.
Activity
lukasz-kalnik-gcx commentedon Oct 26, 2022
Ok, I worked around this by manually setting the environment variable in an
.envfile like this:Then I passed the
.envfile toactrunner like this:However, it would be a really nice improvement if the
setup-androidaction would set theANDROID_HOMEenvironment variable automatically.ViliusSutkus89 commentedon Sep 25, 2023
Hello Lukasz,
We do actually export the
ANDROID_HOMEenv var.main.ts:
Could it be that act isn't picking it up somewhy?
TWiStErRob commentedon Nov 21, 2023
Could it be that the installation did not complete fully? e.g. due to #283. Are you sure that the first error in the logs, @lukasz-kalnik-gcx?
I had some partial success with
echo '--container-architecture linux/amd64' >> .actrc, see warning.