Sky24n/flutter_wanandroid

packages get失败,删除base_library的git依赖,packages get不会报错

Closed this issue · 1 comments

The method 'contains' was called on null.

Receiver: null

Tried calling: contains("\")

dart:core Object.noSuchMethod
package:pub/src/io.dart 788:41 _doProcess
package:pub/src/io.dart 687:16 runProcessSync
package:pub/src/source/git.dart 441:27 BoundGitSource._cleanInvalidGitRepoCache
package:pub/src/source/git.dart 402:5 BoundGitSource._ensureRepoCache
===== asynchronous gap ===========================
package:pub/src/source/git.dart 214:11 BoundGitSource.doGetVersions
===== asynchronous gap ===========================
package:pub/src/source.dart 167:12 BoundSource.getVersions
package:pub/src/solver/package_lister.dart 76:44 PackageLister._versions..
dart:async runZoned
package:pub/src/http.dart 272:10 withDependencyType
package:pub/src/solver/package_lister.dart 75:33 PackageLister._versions.
===== asynchronous gap ===========================
dart:async new Future.sync
package:async/src/async_memoizer.dart 43:42 AsyncMemoizer.runOnce
package:pub/src/solver/package_lister.dart 74:58 PackageLister._versions
package:pub/src/solver/package_lister.dart 111:21 PackageLister.countVersions
===== asynchronous gap ===========================
package:pub/src/solver/version_solver.dart 354:44 VersionSolver._choosePackageVersion.
===== asynchronous gap ===========================
package:pub/src/utils.dart 301:39 minByAsync
===== asynchronous gap ===========================
package:pub/src/solver/version_solver.dart 350:25 VersionSolver._choosePackageVersion

===== asynchronous gap ===========================

package:pub/src/solver/version_solver.dart 97:22 VersionSolver.solve

===== asynchronous gap ===========================

package:pub/src/solver.dart 35:10 resolveVersions.

package:pub/src/log.dart 378:18 progress

package:pub/src/solver.dart 32:10 resolveVersions

package:pub/src/entrypoint.dart 203:24 Entrypoint.acquireDependencies
===== asynchronous gap ===========================
package:pub/src/command/get.dart 41:23 GetCommand.run
package:args/command_runner.dart 194:27 CommandRunner.runCommand
===== asynchronous gap ===========================
package:pub/src/command_runner.dart 171:39 PubCommandRunner.runCommand.
dart:async new Future.sync
package:pub/src/utils.dart 109:12 captureErrors.

dart:async runZoned
package:pub/src/utils.dart 126:5 captureErrors
package:pub/src/command_runner.dart 171:13 PubCommandRunner.runCommand
===== asynchronous gap ===========================
package:pub/src/command_runner.dart 119:11 PubCommandRunner.run
===== asynchronous gap ===========================
C:\b\s\w\ir\k\src\third_party\dart\third_party\pkg\pub\bin\pub.dart 8:22 main
This is an unexpected error. Please run

pub --trace '--verbosity=warning' get --no-precompile

and include the logs in an issue on https://github.com/dart-lang/pub/issues/new
pub get failed (1)

flutter切换到master分支解决问题