apps-android-commons icon indicating copy to clipboard operation
apps-android-commons copied to clipboard

A problem occurred evaluating project ':app'. local.properties (No such file or directory)

Open nicolas-raoul opened this issue 2 years ago • 4 comments
trafficstars

Steps to reproduce

git clone [email protected]:commons-app/apps-android-commons.git
cd apps-android-commons
./gradlew installProdDebug

Error

Expected: Project builds. Actually: Error below:

FAILURE: Build failed with an exception.

Reproduces for me every time on macOS.

* Where:
Build file '/[...]/app/build.gradle' line: 350

* What went wrong:
A problem occurred evaluating project ':app'.
> /[...]/local.properties (No such file or directory)

* 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

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.9/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 1s

Workaround

touch local.properties

then build again. This time it works.

nicolas-raoul avatar Sep 25 '23 08:09 nicolas-raoul

@nicolas-raoul Worked for me even without the touch command. 😕

srishti-R avatar Sep 25 '23 13:09 srishti-R

Interesting! Might depend on the environment. No need to worry about it, I mostly put it here for the workaround in case someone encounters the same issue. 🙂

nicolas-raoul avatar Sep 26 '23 01:09 nicolas-raoul

That file is automatically included in the project when opened in Android Studio. However, as you said we need to manually add this file when directly cloning and building from the terminal.

That's why we should change the tag. It's not a bug, right?

rohit9625 avatar Sep 13 '24 09:09 rohit9625

I faced a similar issue after cloning & the workaround helped. Thanks!

richaCodeHub avatar Sep 19 '24 13:09 richaCodeHub