Git Product home page Git Product logo

wan_android's Issues

项目跑不起来

如果用3.10.0版本的,执行pub get,会报:

Resolving dependencies...
The current Dart SDK version is 3.0.0.

Because isar_flutter_libs 4.0.0-dev.14 requires SDK version >=3.1.0 <4.0.0 and no versions of isar_flutter_libs match >4.0.0-dev.14 <5.0.0, isar_flutter_libs ^4.0.0-dev.14 is forbidden.
So, because wan_android depends on isar_flutter_libs ^4.0.0-dev.14, version solving failed.

如果用3.13.6,执行run build, 会报:

Because isar_flutter_libs 4.0.0-dev.14 requires SDK version >=3.1.0 <4.0.0 and no versions of isar_flutter_libs match >4.0.0-dev.14 <5.0.0, isar_flutter_libs ^4.0.0-dev.14 is forbidden.
So, because wan_android depends on isar_flutter_libs ^4.0.0-dev.14, version solving failed.
Berial@PC D:\..\..\wan_android git:(main) [16:41:26] $ fvm use 3.13.6                 
Project now uses Flutter [3.13.6]
Berial@PC D:\..\..\wan_android git:(main) [16:42:27] $ fvm dart run build_runner build
[INFO] Generating build script...
[INFO] Generating build script completed, took 292ms

[INFO] Precompiling build script......
[WARNING] ../../.pub_cache/hosted/pub.flutter-io.cn/riverpod_generator-2.3.4/lib/src/templates/functional_provider.dart:38:33: Error: The getter 'createdType' isn't defined for the class 'FunctionalProviderDeclaration'.
 - 'FunctionalProviderDeclaration' is from 'package:riverpod_analyzer_utils/src/riverpod_ast.dart' ('../../.pub_cache/hosted/pub.flutter-io.cn/riverpod_analyzer_utils-0.4.1/lib/src/riverpod_ast.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'createdType'.
    final returnType = provider.createdType;
                                ^^^^^^^^^^^
../../.pub_cache/hosted/pub.flutter-io.cn/riverpod_generator-2.3.4/lib/src/templates/functional_provider.dart:61:48: Error: The getter 'valueType' isn't defined for the class 'FunctionalProviderDeclaration'.
 - 'FunctionalProviderDeclaration' is from 'package:riverpod_analyzer_utils/src/riverpod_ast.dart' ('../../.pub_cache/hosted/pub.flutter-io.cn/riverpod_analyzer_utils-0.4.1/lib/src/riverpod_ast.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'valueType'.
final $providerName = $providerType<${provider.valueType}>.internal(
                                               ^^^^^^^^^
../../.pub_cache/hosted/pub.flutter-io.cn/riverpod_generator-2.3.4/lib/src/templates/functional_provider.dart:69:50: Error: The getter 'valueType' isn't defined for the class 'FunctionalProviderDeclaration'.
 - 'FunctionalProviderDeclaration' is from 'package:riverpod_analyzer_utils/src/riverpod_ast.dart' ('../../.pub_cache/hosted/pub.flutter-io.cn/riverpod_analyzer_utils-0.4.1/lib/src/riverpod_ast.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'valueType'.
typedef $refName = ${providerType}Ref<${provider.valueType}>;
                                                 ^^^^^^^^^
../../.pub_cache/hosted/pub.flutter-io.cn/riverpod_generator-2.3.4/lib/src/templates/class_based_provider.dart:101:33: Error: The getter 'createdType' isn't defined for the class 'ClassBasedProviderDeclaration'.
 - 'ClassBasedProviderDeclaration' is from 'package:riverpod_analyzer_utils/src/riverpod_ast.dart' ('../../.pub_cache/hosted/pub.flutter-io.cn/riverpod_analyzer_utils-0.4.1/lib/src/riverpod_ast.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'createdType'.
    final returnType = provider.createdType;
                                ^^^^^^^^^^^
../../.pub_cache/hosted/pub.flutter-io.cn/riverpod_generator-2.3.4/lib/src/templates/class_based_provider.dart:115:66: Error: The getter 'valueType' isn't defined for the class 'ClassBasedProviderDeclaration'.
 - 'ClassBasedProviderDeclaration' is from 'package:riverpod_analyzer_utils/src/riverpod_ast.dart' ('../../.pub_cache/hosted/pub.flutter-io.cn/riverpod_analyzer_utils-0.4.1/lib/src/riverpod_ast.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'valueType'.
final $providerName = $providerType<${provider.name}, ${provider.valueType}>.internal(
                                                                 ^^^^^^^^^
../../.pub_cache/hosted/pub.flutter-io.cn/riverpod_generator-2.3.4/lib/src/templates/class_based_provider.dart:123:61: Error: The getter 'valueType' isn't defined for the class 'ClassBasedProviderDeclaration'.
 - 'ClassBasedProviderDeclaration' is from 'package:riverpod_analyzer_utils/src/riverpod_ast.dart' ('../../.pub_cache/hosted/pub.flutter-io.cn/riverpod_analyzer_utils-0.4.1/lib/src/riverpod_ast.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'valueType'.
typedef $notifierTypedefName = $notifierBaseType<${provider.valueType}>;
                                                            ^^^^^^^^^
../../.pub_cache/hosted/pub.flutter-io.cn/riverpod_generator-2.3.4/lib/src/templates/family.dart:55:32: Error: The getter 'createdType' isn't defined for the class 'FunctionalProviderDeclaration'.
 - 'FunctionalProviderDeclaration' is from 'package:riverpod_analyzer_utils/src/riverpod_ast.dart' ('../../.pub_cache/hosted/pub.flutter-io.cn/riverpod_analyzer_utils-0.4.1/lib/src/riverpod_ast.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'createdType'.
    var createdType = provider.createdType.toString();
                               ^^^^^^^^^^^
../../.pub_cache/hosted/pub.flutter-io.cn/riverpod_generator-2.3.4/lib/src/templates/family.dart:57:33: Error: The getter 'createdType' isn't defined for the class 'FunctionalProviderDeclaration'.
 - 'FunctionalProviderDeclaration' is from 'package:riverpod_analyzer_utils/src/riverpod_ast.dart' ('../../.pub_cache/hosted/pub.flutter-io.cn/riverpod_analyzer_utils-0.4.1/lib/src/riverpod_ast.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'createdType'.
    final returnType = provider.createdType;
                                ^^^^^^^^^^^
../../.pub_cache/hosted/pub.flutter-io.cn/riverpod_generator-2.3.4/lib/src/templates/family.dart:65:44: Error: The getter 'valueType' isn't defined for the class 'FunctionalProviderDeclaration'.
 - 'FunctionalProviderDeclaration' is from 'package:riverpod_analyzer_utils/src/riverpod_ast.dart' ('../../.pub_cache/hosted/pub.flutter-io.cn/riverpod_analyzer_utils-0.4.1/lib/src/riverpod_ast.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'valueType'.
        createdType = 'FutureOr<${provider.valueType}>';
                                           ^^^^^^^^^
../../.pub_cache/hosted/pub.flutter-io.cn/riverpod_generator-2.3.4/lib/src/templates/family.dart:90:38: Error: The getter 'valueType' isn't defined for the class 'FunctionalProviderDeclaration'.
 - 'FunctionalProviderDeclaration' is from 'package:riverpod_analyzer_utils/src/riverpod_ast.dart' ('../../.pub_cache/hosted/pub.flutter-io.cn/riverpod_analyzer_utils-0.4.1/lib/src/riverpod_ast.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'valueType'.
      providerGenerics: '<${provider.valueType}>',
                                     ^^^^^^^^^
../../.pub_cache/hosted/pub.flutter-io.cn/riverpod_generator-2.3.4/lib/src/templates/family.dart:134:33: Error: The getter 'createdType' isn't defined for the class 'ClassBasedProviderDeclaration'.
 - 'ClassBasedProviderDeclaration' is from 'package:riverpod_analyzer_utils/src/riverpod_ast.dart' ('../../.pub_cache/hosted/pub.flutter-io.cn/riverpod_analyzer_utils-0.4.1/lib/src/riverpod_ast.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'createdType'.
    final returnType = provider.createdType;
                                ^^^^^^^^^^^
../../.pub_cache/hosted/pub.flutter-io.cn/riverpod_generator-2.3.4/lib/src/templates/family.dart:167:56: Error: The getter 'valueType' isn't defined for the class 'ClassBasedProviderDeclaration'.
 - 'ClassBasedProviderDeclaration' is from 'package:riverpod_analyzer_utils/src/riverpod_ast.dart' ('../../.pub_cache/hosted/pub.flutter-io.cn/riverpod_analyzer_utils-0.4.1/lib/src/riverpod_ast.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'valueType'.
      providerGenerics: '<${provider.name}, ${provider.valueType}>',
                                                       ^^^^^^^^^
../../.pub_cache/hosted/pub.flutter-io.cn/riverpod_generator-2.3.4/lib/src/templates/family.dart:172:74: Error: The getter 'valueType' isn't defined for the class 'ClassBasedProviderDeclaration'.
 - 'ClassBasedProviderDeclaration' is from 'package:riverpod_analyzer_utils/src/riverpod_ast.dart' ('../../.pub_cache/hosted/pub.flutter-io.cn/riverpod_analyzer_utils-0.4.1/lib/src/riverpod_ast.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'valueType'.
abstract class $notifierTypedefName extends $notifierBaseType<${provider.valueType}> {
                                                                         ^^^^^^^^^
../../.pub_cache/hosted/pub.flutter-io.cn/riverpod_generator-2.3.4/lib/src/templates/family.dart:175:14: Error: The getter 'createdType' isn't defined for the class 'ClassBasedProviderDeclaration'.
 - 'ClassBasedProviderDeclaration' is from 'package:riverpod_analyzer_utils/src/riverpod_ast.dart' ('../../.pub_cache/hosted/pub.flutter-io.cn/riverpod_analyzer_utils-0.4.1/lib/src/riverpod_ast.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'createdType'.
  ${provider.createdType} build($parameterDefinition);
             ^^^^^^^^^^^
../../.pub_cache/hosted/pub.flutter-io.cn/riverpod_generator-2.3.4/lib/src/templates/family.dart:180:14: Error: The getter 'createdType' isn't defined for the class 'ClassBasedProviderDeclaration'.
 - 'ClassBasedProviderDeclaration' is from 'package:riverpod_analyzer_utils/src/riverpod_ast.dart' ('../../.pub_cache/hosted/pub.flutter-io.cn/riverpod_analyzer_utils-0.4.1/lib/src/riverpod_ast.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'createdType'.
  ${provider.createdType} runNotifierBuild(
             ^^^^^^^^^^^
../../.pub_cache/hosted/pub.flutter-io.cn/riverpod_generator-2.3.4/lib/src/templates/family.dart:248:45: Error: The getter 'exposedType' isn't defined for the class 'GeneratorProviderDeclaration'.
 - 'GeneratorProviderDeclaration' is from 'package:riverpod_analyzer_utils/src/riverpod_ast.dart' ('../../.pub_cache/hosted/pub.flutter-io.cn/riverpod_analyzer_utils-0.4.1/lib/src/riverpod_ast.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'exposedType'.
class $familyName extends Family<${provider.exposedType}> {
                                            ^^^^^^^^^^^
../../.pub_cache/hosted/pub.flutter-io.cn/riverpod_generator-2.3.4/lib/src/templates/family.dart:332:43: Error: The getter 'valueType' isn't defined for the class 'GeneratorProviderDeclaration'.
 - 'GeneratorProviderDeclaration' is from 'package:riverpod_analyzer_utils/src/riverpod_ast.dart' ('../../.pub_cache/hosted/pub.flutter-io.cn/riverpod_analyzer_utils-0.4.1/lib/src/riverpod_ast.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'valueType'.
mixin $refNameImpl on $refType<${provider.valueType}> {
                                          ^^^^^^^^^
[INFO] Precompiling build script... completed, took 793ms

[SEVERE] Failed to precompile build script .dart_tool/build/entrypoint/build.dart.
This is likely caused by a misconfigured builder definition.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.