- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我想使用 dio 和 build_runner 创建一个 api 服务。但是当我运行 flutter pub run build_runner
终端上的这个命令我收到了这个错误
[SEVERE] retrofit_generator:retrofit onlib/web_services/api_services.dart:
type 'ExpandIterable<InterfaceType, MethodElement>' is not a subtypeof type 'Iterable' of 'iterable'
part 'api_services.g.dart';
@RestApi(baseUrl: Preferences.hrmsAPI)
abstract class RestClient {
factory RestClient(Dio dio) = _RestClient;
@FormUrlEncoded()
@GET('config')
Future<WrappedResponse> config();
@FormUrlEncoded()
@GET('profile')
Future<WrappedResponse> profile(@Header('Authorization') String token);
}
最佳答案
报告的问题:https://github.com/trevorwang/retrofit.dart/issues/345
临时修复:
retrofit_generator:
git:
url: https://github.com/Chimerapps/retrofit.dart.git
ref: 9f90296751984b359937c38563da5b19db5550f5
path: generator
更新
retrofit_generator 2.0.0+1
关于flutter - 类型 'ExpandIterable<InterfaceType, MethodElement>' 不是类型 'Iterable<MethodElementImpl>' 的 'iterable' 的子类型,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67740588/
我是 java 编程语言的新手。过去两年我一直在用 c# 编程。当我浏览 java 程序时,我找到了如下代码。 ArgumentParser parser = ArgumentParsers.newA
我在 Qt 5.9.1 上。 我正在尝试使应用程序可以通过屏幕阅读器访问。我有一个自定义小部件(我们称之为 MyWidget ),其中包含文本(很多)。文本是使用 QPainter 绘制的,这就是为什
我正在为我们的一些 BusinessObjects 编写几个扩展方法 例如: public static IBusinessObject GetBusinessObjectById(this IBus
我有一个抽象基类,它实现接口(interface)的属性: public abstract class AbstractItem : IPropertyListOwner { public O
我有一个从接口(interface)实现属性的抽象基类: public abstract class AbstractItem : IPropertyListOwner { public Ob
升级到 Flutter 1.20.1 后尝试构建我的应用程序时出现以下错误。 Unhandled exception: Crash when compiling null, at character
在 Java 8 的 Oracle Javadocs 中指定 InterfaceType有一个名为 invokeMethod 的方法。 然而,当我检查我的系统时,我没有在界面中看到任何这样的方法: k
我想使用 dio 和 build_runner 创建一个 api 服务。但是当我运行 flutter pub run build_runner终端上的这个命令我收到了这个错误 [SEVERE] ret
我是一名优秀的程序员,十分优秀!