leanflutter / flutter_distributor

An all-in-one Flutter application packaging and distribution tool, providing you with a one-stop solution to meet various distribution needs.
https://distributor.leanflutter.dev/
MIT License
834 stars 116 forks source link

Unhandled exception: type 'String' is not a subtype of type 'int' of 'index' #200

Closed zx0450 closed 3 months ago

zx0450 commented 3 months ago

zaakman@ZaakMandeMBP-2 project-name % flutter_distributor release --name dev Unhandled exception: type 'String' is not a subtype of type 'int' of 'index'

0 PubDevApi.getLatestVersionFromPackage (package:flutter_distributor/src/utils/pub_dev_api.dart:15:27)

#1 FlutterDistributor.checkVersion (package:flutter_distributor/src/flutter_distributor.dart:102:9) #2 main (file:///Users/zaakman/.pub-cache/hosted/mirrors.cloud.tencent.com%2547dart-pub%2547/flutter_distributor-0.4.4/bin/main.dart:44:5)
lijy91 commented 3 months ago

已对腾讯源做了兼容,但建议使用官方 pub.dev 源,当前可以在命令后添加 --no-version-check 参数忽略版本检查。