amirisback/automated-build-android-app-with-github-action

Error at 'Run gradle test' - "Process completed with exit code 1."

MNRosyad opened this issue · 4 comments

console looks like this

. . .
Starting a Gradle Daemon (subsequent builds will be faster)

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':app'.
> Failed to notify project evaluation listener.
   > The file '/home/runner/work/"Repository Name"/"Repository Name"/local.properties' could not be found

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 38s
Error: Process completed with exit code 1.

I'm new with this kind of thing (GitHub actions), maybe I do some mistake in the beginning, but can someone explain what is the error mean?

it looks like your local.properties file was not pushed to the github repository / it could be .gitignore @MNRosyad. you need to double check all the files in the repository

Thank you for your respond, that solve the problem.
I'm using version control from Android Studio and that file is automatically go into .gitignore file.

You can close this Issue

For better .gitignore you can try this

*.iml
/.gradle
.gradle
.idea
/local.properties
/.idea/libraries
/.idea/modules.xml
/.idea/workspace.xml
.DS_Store
build
/build
/captures
.externalNativeBuild

built application files
.apk
.ap_

files for the dex VM
*.dex

Java class files
*.class

generated files
bin/
gen/
.externalNativeBuild/

Local configuration file (sdk path, etc)
local.properties
app/version.properties

# SonarQube
.sonar/

@MNRosyad

btw don't worry about your local.properties, this action also running well on private repository @MNRosyad