-
Notifications
You must be signed in to change notification settings - Fork 645
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Github action / workflow failed because of Android local path #99
Comments
@vsay01 Looking at your |
I think that condition can be removed, and just assign properties("StudioRunPath") to intellij.localPath. The thing is that since this is plugin for Android Studio, if I don't give studio run path to local path, it will complain about android references not resolved such as Activity, Context, ... etc. If I give the path intellij.localPath = properties("StudioRunPath"), the plugin in generated fine. but github action failed because the path is not found. Any suggestion to get github action for this template resolved while maintain android path? |
Sorry for the delay, Vortana. To provide AS for GitHub Actions, you can introduce an additional workflow step before building/testing the plugging that will download AS to the specific directory within the GHA container and provide that path as |
Thanks for the response @hsz . Do you know any resources / documentations on how I can add Android Studio to the GitHub container? |
@vsay01 - I'm the author of ChrisCarini/intellij-platform-plugin-verifier-action GitHub Action which downloads various IDEs and runs the JetBrains/intellij-plugin-verifier against them. The GitHub action is a single-file bash script - if you'd like, you should be able to reverse-engineer it to figure out how to download AS in your CI executions. |
Hi,
I am creating an Android plugin that generate android related file. My repository was generated from this and it contains github workflows.
After I added android codes template, it complains about unresolved reference, so I added path to Android Studio Content.
In my gradle.properties file, I added
Then in my build.gradle.kts file inside intellij, I called:
intellij.localPath = if (project.hasProperty("StudioRunPath")) properties("StudioRunPath") else properties("StudioRunPath")
When I Run ./gradlew check locally, it works fine. But it failed when it run on Github action with following error related to the path.
Do I expect to add local path if I added android related codes or is there any other way to resolve this without using the local path?
The text was updated successfully, but these errors were encountered: