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

Flutter升级到2.8后编译出错了 #4

Open
cgzcgb opened this issue Dec 10, 2021 · 3 comments
Open

Flutter升级到2.8后编译出错了 #4

cgzcgb opened this issue Dec 10, 2021 · 3 comments

Comments

@cgzcgb
Copy link

cgzcgb commented Dec 10, 2021

Launching lib\main.dart on LIO AN00 in debug mode...
Running Gradle task 'assembleDebug'...
/C:/src/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_verification_box-2.0.0/lib/src/verification_box.dart:196:9: Error: The method 'WhitelistingTextInputFormatter' isn't defined for the class '_VerificationBox'.

  • '_VerificationBox' is from 'package:flutter_verification_box/src/verification_box.dart' ('/C:/src/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_verification_box-2.0.0/lib/src/verification_box.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'WhitelistingTextInputFormatter'.
    WhitelistingTextInputFormatter(RegExp("[0-9]")),
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

FAILURE: Build failed with an exception.

  • Where:
    Script 'C:\src\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1070

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

Process 'command 'C:\src\flutter\bin\flutter.bat'' 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 16s
Exception: Gradle task assembleDebug failed with exit code 1

@cgzcgb
Copy link
Author

cgzcgb commented Dec 10, 2021

升级到2.0.0问题依旧

@eaaomk
Copy link

eaaomk commented Dec 18, 2021

升级到2.0.0问题依旧

此问题我创建了分支进行修改,如果你比较着急使用,就不要等作者回话了,按照我的修改方式修改即可。

@cgzcgb
Copy link
Author

cgzcgb commented Dec 18, 2021

@eaaomk 谢谢,我临时去掉了验证的代码,稍后我参考下你的代码

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