skip to Main Content

We are executing "flutter packages pub run build_runner watch –delete-conflicting-outputs"
but it throws a "Invalid argument(s): name shouldn’t end with a ‘.’" error. It was working fine until we upgrade flutter version from 3.3.10 to 3.7.0. The file which throws that exception is "logger.dart"

3

Answers


  1. Chosen as BEST ANSWER

    change your loggin version to "1.1.0" from your pubspec.lock file. then run flutter pub get command

    logging:
    dependency: transitive
    description:
    name: logging
    sha256: c0bbfe94d46aedf9b8b3e695cf3bd48c8e14b35e3b2c639e0aa7755d589ba946
    url: "https://pub.dev"
    source: hosted
    version: "1.1.0"
    

  2. Yes got the same result. Thank you

    Login or Signup to reply.
  3. Maybe you made the same mistake like me.

    My error came from using two dots side by side in the file.

    For example

    shared_preference_helper..dart
    

    change to

    shared_preference_helper.dart
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search