MSzalek-Mobile/weight_tracker

Error running Gradle

rakhimian opened this issue · 8 comments

Hi,

I received an error running Gradle:
Exit code 1 from: /home/startup/AndroidStudioProjects/weight_tracker/android/gradlew app:properties:
Project evaluation failed including an error in afterEvaluate {}. Run with --stacktrace for details of the afterEvaluate {} error.

FAILURE: Build failed with an exception.

  • Where:
    Build file '/home/startup/AndroidStudioProjects/weight_tracker/android/app/build.gradle' line: 20

  • What went wrong:
    A problem occurred evaluating project ':app'.

/home/startup/AndroidStudioProjects/weight_tracker/android/key.properties (Нет такого файла или каталога)

  • 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 2m 1s

Finished with error: Please review your Gradle project setup in the android/ folder.

So I'm a new in flutter & your case is better for me. Can you guide me how I can to solve it? Many thanks

Hey, take a look at #22 and tell me how it went ;)

Hi,
I need to sighning users. So for it I've creted a keystore usig a command line from here and added a keystore file into android/app dir and didn't delete any code from the file android/app/build.gradle. But it's also showed me same error. Need I change some code into the file android/app/build.gradle?

key.properties file is only when you want to release your app, you can use Firebase Auth without it :)
In this file, I store credentials for my app. So after creating keystore file, you need to create key.properties with following structure:

storePassword=<password from previous step>
keyPassword=<password from previous step>
keyAlias=key
storeFile=<location of the key store file, e.g. /Users/<user name>/key.jks>

Just to be sure, you have already created your own Firebase project, right? :)

Oh I see. About Firebase - yes, you're right. But unfortunately starting today firebase console is blocked. I'm not sure why(:

Hmm... Can I close that issue then?

Sure! Your helping a lot. Thanks!

No problem.
If you will still have any problems, feel free to open that issue again :)