我更新了我的插件,并得到了改装错误,所以我删除了api\U服务。g、 dart并再次尝试重新生成,但我无法生成此文件,请在此方面帮助我。
环境:sdk:“
依赖项:flatter:sdk:flatter提供程序:^5.0.0改装:^2.0.0 json_注释:^4.0.0记录器:^1.0.0-nullsafety。0.0.0.0 razorpay颤振:^1.2.6
内置值:^8.0.6 cupertino图标:^1.0.2颤振svg:^0.22.0简单动画:^3.1.1共享首选项:^2.0.6 http:^0.13.3
颤振交错网格视图:^0.4.0-nullsafety。3#flattertoast:^4.0.0可重定值:^0.4.1 bubble\u bottom\u bar:^1.2.0连接:^3.0.4 webview\u flatter:^2.0.2图表\u flatter:^0.10.0 fcharts:^0.11共享:^2.0.0包\u信息:^2.0.2
启动审查:^3.0.1加载动画:^2.1.0获取:^4.0.0-nullsafety。2%_指标:^3.3.0-nullsafety。1 url\u启动器:^6.0.6 firebase\u核心:^1.3.0 firebase\u crashlytics:^2.0.6新版本:
dev_dependencies:flutter_test: sdk: flutterretrofit_generator:^2.0.0 1json_serializable:^4.0.2build_runner:^2.0.4built_value_generator:^8.0.6
飞镖文件
part 'api_service.g.dart';
@RestApi(baseUrl: "https://example.com/")
abstract class ApiService {
factory ApiService(Dio dio, {String baseUrl}) = _ApiService;
static ApiService create() {
final dio = Dio();
dio.interceptors.add(PrettyDioLogger());
dio.interceptors.clear();
return ApiService(dio);
}
@POST("project/{id}")
Future<String> addProject(@Path() String id,
@Body() Map<String, dynamic> body,);
}
我得到的错误
chetanmahajan@chetans-mini things_linker % flutter pub run build_runner build
[INFO] Generating build script...
[INFO] Generating build script completed, took 540ms
[INFO] Precompiling build script......
[INFO] Precompiling build script... completed, took 5.0s
[INFO] Initializing inputs
[INFO] Building new asset graph...
[INFO] Building new asset graph completed, took 495ms
[INFO] Checking for unexpected pre-existing outputs....
[INFO] Checking for unexpected pre-existing outputs. completed, took 1ms
[INFO] Running build...
[INFO] Generating SDK summary...
[INFO] 3.1s elapsed, 0/16 actions completed.
[INFO] Generating SDK summary completed, took 3.0s
[INFO] 4.1s elapsed, 0/16 actions completed.
[INFO] 5.2s elapsed, 0/16 actions completed.
[INFO] 6.3s elapsed, 0/16 actions completed.
[INFO] 7.3s elapsed, 0/16 actions completed.
[INFO] 8.4s elapsed, 1/17 actions completed.
[INFO] 15.1s elapsed, 3/19 actions completed.
[INFO] 16.1s elapsed, 3/19 actions completed.
[INFO] 17.1s elapsed, 3/19 actions completed.
[INFO] 19.0s elapsed, 3/19 actions completed.
[INFO] 20.0s elapsed, 33/49 actions completed.
[SEVERE] retrofit_generator:retrofit on lib/api_service/api_service.dart:
Could not format because the source could not be parsed:
line 59, column 26 of .: A function body must be provided.
╷
59 │ @override Future<String*>* addDevice(id, body) async { const _extra = <String, dynamic>{};
│ ^
╵
line 59, column 28 of .: A function body must be provided.
╷
59 │ @override Future<String*>* addDevice(id, body) async { const _extra = <String, dynamic>{};
│ ^^^^^^^^^
╵
line 98, column 18 of .: Expected to find '>'.
╷
98 │ @override Future<String*>* sensorDay(id) async { const _extra = <String, dynamic>{};
│ ^^^^^^
╵
line 40, column 26 of .: Operator declarations must be preceded by the keyword 'operator'.
╷
40 │ @override Future<String*>* getProjects(id) async { const _extra = <String, dynamic>{};
│ ^
╵
line 86, column 11 of .: Methods must have an explicit list of parameters.
╷
86 │ @override Future<String*>* sensorHour(id) async { const _extra = <String, dynamic>{};
│ ^^^^^^
╵
line 92, column 26 of .: Methods must have an explicit list of parameters.
╷
92 │ @override Future<String*>* sensorThreeHours(id) async { const _extra = <String, dynamic>{};
│ ^
╵
line 46, column 28 of .: A function body must be provided.
╷
46 │ @override Future<String*>* updateDevice(id, body) async { const _extra = <String, dynamic>{};
│ ^^^^^^^^^^^^
╵
line 53, column 26 of .: A function body must be provided.
╷
53 │ @override Future<String*>* deleteDevice(id) async { const _extra = <String, dynamic>{};
│ ^
╵
line 53, column 28 of .: A function body must be provided.
╷
53 │ @override Future<String*>* deleteDevice(id) async { const _extra = <String, dynamic>{};
│ ^^^^^^^^^^^^
╵
line 46, column 26 of .: A function body must be provided.
╷
46 │ @override Future<String*>* updateDevice(id, body) async { const _extra = <String, dynamic>{};
│ ^
╵
(128 more errors...)
[INFO] Running build completed, took 21.4s
[INFO] Caching finalized dependency graph...
[INFO] Caching finalized dependency graph completed, took 84ms
[SEVERE] Failed after 21.5s
pub finished with exit code 1
请帮忙。提前感谢。
改变
环境:sdk:“
到
环境:sdk:“
不确定如何解决这个问题,使用OSX优胜美地。 npm错误!达尔文14.1.0npm错误!argv“node”“/usr/local/bin/npm”“install”“-g”“generator-aspnet”npm错误!节点V0.12.0 npm错误!npm v2.5.1 npm错误!路径/users/briandouglas/.node/lib/node_modules/generator-A
我正在设置环境,开始开发react原生应用程序。我不断发现以下错误: PS C:\map\development\learnreact\react native\helloworld 配置项目:应用程序在不一致的位置“C:\Users\bheka\AppData\Local\Android\Sdk\platform tools”(预期为“C:\Users\bheka\AppData\Local\A
该应用程序运行良好,事实上我已经创建了两个版本的APK。这次我修改了代码,来做,我得到了以下错误: 失败:生成失败,出现异常。 哪里出错了:任务执行失败:app: mergeRelaseResources。 生成准备发布的健康APK。 我已经完成了签名和签名。密钥存储在正确的位置 以下是完整的stacktrace:
问题内容: 我在管道詹金斯工作中使用以下步骤: 但是当构建失败(即错误)时,没有发送电子邮件。任何指针为什么? PS电子邮件可以从此服务器发送,我已经测试过了。 问题答案: 使用新语法使用声明性管道,例如: 您可以在詹金斯官方网站上找到更多信息: https://jenkins.io/doc/pipeline/tour/running-multiple- steps/ 请注意,这种新语法使您的管道
我从github克隆了一个<code>react native (这个项目之前是expo管理的,现在被弹出来了,因为有< code>android和< code>ios文件夹) < li >创建了我的本地特征分支- 第一次遇到错误:- 为了解决这个问题,我用这个 https://stackoverflow.com/a/69630720/11685381 答案,并从我的中删除了。 第二次遇到错误:-
似乎许多其他人在安装pg gem时遇到了问题。为别人提出的解决方案对我都不起作用。 我已经尝试安装pg gem和postgres。应用程序。pg gem不会安装。我得到的第一个错误是: 安装pg(0.17.0)时出错,Bundler无法继续。确保在捆绑之前gem安装pg-v'0.17.0'成功。 关于将我的gem安装指向pg配置的安装建议失败,并出现以下错误消息(这个论坛上的许多其他人都遇到过):