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

Cannot build with Flutter 3.19 due to CupertinoLocalizationsEo #1136

Closed
Fmstrat opened this issue Feb 18, 2024 · 2 comments
Closed

Cannot build with Flutter 3.19 due to CupertinoLocalizationsEo #1136

Fmstrat opened this issue Feb 18, 2024 · 2 comments
Assignees
Labels
bug Something isn't working fixed in upcoming release Indicates that an issue has been fixed, and will be released in the next version
Milestone

Comments

@Fmstrat
Copy link
Contributor

Fmstrat commented Feb 18, 2024

Bug Description

When attempting to update the Dockerfile to build with Flutter 3.19, I have learned the following error exists:

BUILD FAILED in 15s
Gradle task assembleRelease failed with exit code 1
Failed to build for Android. Error: You are applying Flutter's app_plugin_loader Gradle plugin imperatively using the apply script method, which is deprecated and will be removed in a future release. Migrate to applying Gradle plugins with the declarative plugins block: https://flutter.dev/go/flutter-gradle-plugin-apply

/root/.pub-cache/hosted/pub.dev/l10n_esperanto-2.0.8/lib/src/cupertino.dart:14:7: Error: The non-abstract class 'CupertinoLocalizationsEo' is missing implementations for these members:
 - CupertinoLocalizations.clearButtonLabel
Try to either
 - provide an implementation,
 - inherit an implementation from a superclass or mixin,
 - mark the class as abstract, or
 - provide a 'noSuchMethod' implementation.

class CupertinoLocalizationsEo extends GlobalCupertinoLocalizations {
      ^^^^^^^^^^^^^^^^^^^^^^^^
/opt/flutter/packages/flutter/lib/src/cupertino/localizations.dart:256:14: Context: 'CupertinoLocalizations.clearButtonLabel' is defined here.
  String get clearButtonLabel;
             ^^^^^^^^^^^^^^^^
Target kernel_snapshot failed: Exception


FAILURE: Build failed with an exception.

After further research, this is due to the use of Flutter 3.19 (latest stable, released 2/15/24) instead of Flutter 3.16.9.

Expected Behaviour

Compile with latest version of Flutter

Steps to Reproduce

  1. Update Dockerfile to use https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.19.0-stable.tar.xz (this is not the actual issue, I'll have a PR for this once fully tested)
  2. ./scripts/docker-build-android.sh

Additional Context

This could be done by upgrading Flutter to 3.19, without docker.

App Version

n/a

Device

n/a

OS

n/a

@Fmstrat Fmstrat added the bug Something isn't working label Feb 18, 2024
@Fmstrat Fmstrat changed the title Can no longer build due to CupertinoLocalizationsEo Cannot build with Flutter 3.19 due to CupertinoLocalizationsEo Feb 18, 2024
@hjiangsu
Copy link
Member

Thanks for the report, just for some more context, this seems to originate from https://github.com/deakjahn/l10n_esperanto package! I can create an issue there so that the package author can hopefully provide a fix

@hjiangsu
Copy link
Member

hjiangsu commented Mar 7, 2024

This has been fixed with this PR: #1167.

@hjiangsu hjiangsu self-assigned this Mar 7, 2024
@hjiangsu hjiangsu added the fixed in upcoming release Indicates that an issue has been fixed, and will be released in the next version label Mar 7, 2024
@hjiangsu hjiangsu added this to the 0.3.0 milestone Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed in upcoming release Indicates that an issue has been fixed, and will be released in the next version
Projects
None yet
Development

No branches or pull requests

2 participants