compiler error
ciobania opened this issue · comments
Hi there,
Thank you for your examples and effort.
I have done what was described in the README, but I still get issues.
Launching lib/main.dart on Nexus 5 in debug mode...
Initializing gradle... 0.5s
Resolving dependencies... 0.6s
Running 'gradlew assembleDebug'...
compiler message: lib/ui/widgets/common_scaffold.dart:33:16: Error: Method not found: 'CircularNotchedRectangle'.
compiler message: shape: CircularNotchedRectangle(),
compiler message: ^^^^^^^^^^^^^^^^^^^^^^^^
compiler message: lib/ui/widgets/common_scaffold.dart:33:9: Error: No named parameter with the name 'shape'.
compiler message: shape: CircularNotchedRectangle(),
compiler message: ^^^^^
compiler message: file:///flutter_sdk/flutter/packages/flutter/lib/src/material/bottom_app_bar.dart:45:9: Context: Found this candidate, but the arguments don't match.
compiler message: const BottomAppBar({
compiler message: ^
Compiler failed on /flutter_ui_kit/lib/main.dart
FAILURE: Build failed with an exception.
* Where:
Script '/flutter_sdk/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 435
* What went wrong:
Execution failed for task ':app:flutterBuildDebug'.
> Process 'command '~/flutter_sdk/flutter/bin/flutter'' finished with non-zero exit value 1
* 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 4s
Gradle build failed: 1
Any hints on what could the issue be? I'm relatively new to flutter.
Please see below the output of flutter doctor:
⇒ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, v0.5.1, on Linux, locale en_US.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK 28.0.0)
[✓] Android Studio (version 3.1)
[✓] IntelliJ IDEA Ultimate Edition (version 2018.1)
[✓] Connected devices (1 available)
• No issues found!
Kind regards.
Update your flutter version to dev/master channel and then it will work