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

Project won't build with dev 0.6.0 #12

Closed
sjmcdowall opened this issue Aug 31, 2018 · 10 comments
Closed

Project won't build with dev 0.6.0 #12

sjmcdowall opened this issue Aug 31, 2018 · 10 comments

Comments

@sjmcdowall
Copy link

Not sure it built before either for that matter :) But I just forked this and tried to build and I get:

  • Error running Gradle:
    Exit code 1 from: /Users/sjm/play/flutter_login/android/gradlew app:properties:

FAILURE: Build failed with an exception.

  • Where:
    Build file '/Users/sjm/play/flutter_login/android/app/build.gradle' line: 16

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

versionCode not found. Define flutter.versionCode in the local.properties file.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

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

BUILD FAILED in 0s

Please review your Gradle project setup in the android/ folder.

@sjmcdowall
Copy link
Author

BTW -- I just downloaded / merged your latest Dart 2.1 code and still get the error...

@sjmcdowall
Copy link
Author

** fix **
To fix this, after reading a bunch of stuff -- I had to

rm -rf android
flutter create .

That fixed all the issues and now it runs ..

@rodydavis
Copy link
Owner

rodydavis commented Aug 31, 2018 via email

@sjmcdowall
Copy link
Author

sjmcdowall commented Aug 31, 2018

Yes I had those changes too before I hit my other issue -- it could be because it's Android and I updated Android Studio to 3.1 newest too .. seems like upgrading from an existing project to new stuff isn't too smooth right now

It probably wouldn't hurt if you did the same thing to get all the newest build packages, etc. for android going and re-commit ??

@rodydavis
Copy link
Owner

rodydavis commented Aug 31, 2018 via email

@rodydavis
Copy link
Owner

Is it working for you?

@rodydavis
Copy link
Owner

Is it still failing?

@Vojtas87
Copy link

Hello, I downloaded your project yesterday and I faced the same issue.

For me it is solved by adding flutter.versionCode=1 into local.properties :-)

@rodydavis
Copy link
Owner

Ok I wasn’t seeing this on iOS I’ll check again for android and reproduce.

@rodydavis
Copy link
Owner

It should work now!

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

No branches or pull requests

3 participants