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

Build fails for Android #15

Closed
DavidARivkin opened this issue Nov 14, 2023 · 1 comment
Closed

Build fails for Android #15

DavidARivkin opened this issue Nov 14, 2023 · 1 comment

Comments

@DavidARivkin
Copy link

When building for Android, one gets the following error in the dart code:
command: flutter build apk

lib/main.dart:34:25: Error: Can't declare a member that conflicts with an inherited one.
State get createState => _MyHomePageState();
^^^^^^^^^^^
../../../../Dev/flutter/packages/flutter/lib/src/widgets/framework.dart:796:9: Context: This is the inherited member.
State createState();
^^^^^^^^^^^
Target kernel_snapshot failed: Exception

FAILURE: Build failed with an exception.

  • Where:
    Script '/Users/david/Dev/flutter/packages/flutter_tools/gradle/src/main/groovy/flutter.groovy' line: 1297

  • What went wrong:
    Execution failed for task ':app:compileFlutterBuildRelease'.

Process 'command '/Users/david/Dev/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.

BUILD FAILED in 1m 16s
Running Gradle task 'assembleRelease'... 77.3s
Gradle task assembleRelease failed with exit code 1

@vbalagovic
Copy link
Owner

Updated example 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

2 participants