Skip to content
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

Error running Gradle #26

Closed
rakhimian opened this issue Apr 22, 2018 · 8 comments
Closed

Error running Gradle #26

rakhimian opened this issue Apr 22, 2018 · 8 comments
Labels

Comments

@rakhimian
Copy link

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.

@rakhimian
Copy link
Author

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

@MarcinusX
Copy link
Member

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

@rakhimian
Copy link
Author

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?

@MarcinusX
Copy link
Member

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? :)

@rakhimian
Copy link
Author

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

@MarcinusX
Copy link
Member

Hmm... Can I close that issue then?

@rakhimian
Copy link
Author

Sure! Your helping a lot. Thanks!

@MarcinusX
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants