dart-lang / pub

The pub command line tool
https://dart.dev/tools/pub/cmd
BSD 3-Clause "New" or "Revised" License
1.05k stars 230 forks source link

Unexpected error of using flutter and dart in android studio(Macos) #4426

Closed syazli closed 1 week ago

syazli commented 1 week ago

pub_log.txt

sigurdm commented 1 week ago

Duplicate of https://github.com/dart-lang/pub/issues/4269 Relevant stack trace:

ERR : Null check operator used on a null value
FINE: Exception type: _TypeError
ERR : package:pub/src/source/hosted.dart 778:33                       HostedSource._getAdvisories.readAdvisoriesFromCache
    | ===== asynchronous gap ===========================
    | package:pub/src/source/hosted.dart 796:12                       HostedSource._getAdvisories
    | ===== asynchronous gap ===========================
    | package:pub/src/source/hosted.dart 1084:24                      HostedSource.getAdvisoriesForPackageVersion
    | ===== asynchronous gap ===========================