Flutter:无法为设备构建预编译的应用程序在iPhone上启动应用程序时出错

如何解决Flutter:无法为设备构建预编译的应用程序在iPhone上启动应用程序时出错

我无法在IOS设备上运行flutter项目。

这是我在扑扑后得到的。我不明白为什么。请查看下面的错误,并告诉我如何解决。

Launching lib/main.dart on iPhone in debug mode...
Automatically signing iOS for device deployment using specified development team
in Xcode project: L24VC6F98D
Running Xcode build...                                                  
Xcode build done.                                            8,2s
Failed to build iOS app
Error output from Xcode build:
↳
    2020-09-18 11:56:14.934 xcodebuild[29414:155421] warning:  The file reference
    for "Objective-C/TOCropViewController/Models/TOActivityCroppedImageProvider.h"
    is a member of multiple groups ("TOCropViewController" and
    "TOCropViewController"); this indicates a malformed project.  Only the
    membership in one of the groups will be preserved (but membership in targets
    will be unaffected).  If you want a reference to the same file in more than
    one group,please add another reference to the same path.
    2020-09-18 11:56:14.934 xcodebuild[29414:155421] warning:  The file reference
    for "Objective-C/TOCropViewController/Views/TOCropOverlayView.h" is a member
    of multiple groups ("TOCropViewController" and "TOCropViewController"); this
    indicates a malformed project.  Only the membership in one of the groups will
    be preserved (but membership in targets will be unaffected).  If you want a
    reference to the same file in more than one group,please add another
    reference to the same path.
    2020-09-18 11:56:14.934 xcodebuild[29414:155421] warning:  The file reference
    for "Objective-C/TOCropViewController/Models/TOCroppedImageAttributes.h" is a
    member of multiple groups ("TOCropViewController" and "TOCropViewController");
    this indicates a malformed project.  Only the membership in one of the groups
    will be preserved (but membership in targets will be unaffected).  If you want
    a reference to the same file in more than one group,please add another
    reference to the same path.
    2020-09-18 11:56:14.934 xcodebuild[29414:155421] warning:  The file reference
    for "Objective-C/TOCropViewController/Views/TOCropScrollView.h" is a member of
    multiple groups ("TOCropViewController" and "TOCropViewController"); this
    indicates a malformed project.  Only the membership in one of the groups will
    be preserved (but membership in targets will be unaffected).  If you want a
    reference to the same file in more than one group,please add another
    reference to the same path.
    2020-09-18 11:56:14.934 xcodebuild[29414:155421] warning:  The file reference
    for "Objective-C/TOCropViewController/Views/TOCropToolbar.h" is a member of
    multiple groups ("TOCropViewController" and "TOCropViewController"); this
    indicates a malformed project.  Only the membership in one of the groups will
    be preserved (but membership in targets will be unaffected).  If you want a
    reference to the same file in more than one group,please add another
    reference to the same path.
    2020-09-18 11:56:14.934 xcodebuild[29414:155421] warning:  The file reference
    for "Objective-C/TOCropViewController/Views/TOCropView.h" is a member of
    multiple groups ("TOCropViewController" and "TOCropViewController"); this
    indicates a malformed project.  Only the membership in one of the groups will
    be preserved (but membership in targets will be unaffected).  If you want a
    reference to the same file in more than one group,please add another
    reference to the same path.
    2020-09-18 11:56:14.934 xcodebuild[29414:155421] warning:  The file reference
    for "Objective-C/TOCropViewController/TOCropViewController.h" is a member of
    multiple groups ("TOCropViewController" and "TOCropViewController"); this
    indicates a malformed project.  Only the membership in one of the groups will
    be preserved (but membership in targets will be unaffected).  If you want a
    reference to the same file in more than one group,please add another
    reference to the same path.
    2020-09-18 11:56:14.934 xcodebuild[29414:155421] warning:  The file reference
    for
    "Objective-C/TOCropViewController/Models/TOCropViewControllerTransitioning.h"
    is a member of multiple groups ("TOCropViewController" and
    "TOCropViewController"); this indicates a malformed project.  Only the
    membership in one of the groups will be preserved (but membership in targets
    will be unaffected).  If you want a reference to the same file in more than
    one group,please add another reference to the same path.
    2020-09-18 11:56:14.978 xcodebuild[29414:155477]  DTDeviceKit: deviceType from
    d94358f0937915cc1dbf618d6c7be90be0612766 was NULL
    2020-09-18 11:56:15.129 xcodebuild[29414:155486]  DTDeviceKit: deviceType from
    d94358f0937915cc1dbf618d6c7be90be0612766 was NULL
    2020-09-18 11:56:15.129 xcodebuild[29414:155486]  DTDeviceKit: deviceType from
    d94358f0937915cc1dbf618d6c7be90be0612766 was NULL
    ** BUILD FAILED **


Xcode's output:
↳
    Command CompileSwift failed with a nonzero exit code
    /Users/punreachrany/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/kakao
    _flutter_sdk-0.4.2/ios/Classes/SwiftKakaoFlutterSdkPlugin.swift:103:82: error:
    cannot convert value of type 'Error' to specified type
    'ASWebAuthenticationSessionError.Code'
                        if case ASWebAuthenticationSessionError.Code.canceledLogin
                        = err {
                                                                                     ^~~
    /Users/punreachrany/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/kakao
    _flutter_sdk-0.4.2/ios/Classes/SwiftKakaoFlutterSdkPlugin.swift:108:72: error:
    cannot convert value of type 'Error' to specified type
    'SFAuthenticationError.Code'
                        if case SFAuthenticationError.Code.canceledLogin = err {
                                                                           ^~~
    Command CompileSwift failed with a nonzero exit code
    Command CompileSwift failed with a nonzero exit code
    note: Using new build system
    note: Building targets in parallel
    note: Planning build
    note: Constructing build description
    warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0,but the range of supported deployment target versions is 9.0 to 14.0.99. (in
    target 'shared_preferences' from project 'Pods')
    warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0,but the range of supported deployment target versions is 9.0 to 14.0.99. (in
    target 'path_provider' from project 'Pods')
    warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0,but the range of supported deployment target versions is 9.0 to 14.0.99. (in
    target 'onesignal_flutter' from project 'Pods')
    warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0,but the range of supported deployment target versions is 9.0 to 14.0.99. (in
    target 'leveldb-library' from project 'Pods')
    warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0,but the range of supported deployment target versions is 9.0 to 14.0.99. (in
    target 'image_picker' from project 'Pods')
    warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0,but the range of supported deployment target versions is 9.0 to 14.0.99. (in
    target 'abseil' from project 'Pods')
    warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0,but the range of supported deployment target versions is 9.0 to 14.0.99. (in
    target 'package_info' from project 'Pods')
    warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0,but the range of supported deployment target versions is 9.0 to 14.0.99. (in
    target 'esys_flutter_share' from project 'Pods')
    warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0,but the range of supported deployment target versions is 9.0 to 14.0.99. (in
    target 'PromisesObjC' from project 'Pods')
    warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0,but the range of supported deployment target versions is 9.0 to 14.0.99. (in
    target 'TOCropViewController-TOCropViewControllerBundle' from project 'Pods')
    warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0,but the range of supported deployment target versions is 9.0 to 14.0.99. (in
    target 'TOCropViewController' from project 'Pods')
    warning: Skipping duplicate build file in Copy Headers build phase:
    /Users/punreachrany/Desktop/Flutter/PhotoEarn/ios/Pods/TOCropViewController/Ob
    jective-C/TOCropViewController/Models/TOActivityCroppedImageProvider.h (in
    target 'TOCropViewController' from project 'Pods')
    warning: Skipping duplicate build file in Copy Headers build phase:
    /Users/punreachrany/Desktop/Flutter/PhotoEarn/ios/Pods/TOCropViewController/Ob
    jective-C/TOCropViewController/Views/TOCropOverlayView.h (in target
    'TOCropViewController' from project 'Pods')
    warning: Skipping duplicate build file in Copy Headers build phase:
    /Users/punreachrany/Desktop/Flutter/PhotoEarn/ios/Pods/TOCropViewController/Ob
    jective-C/TOCropViewController/Models/TOCroppedImageAttributes.h (in target
    'TOCropViewController' from project 'Pods')
    warning: Skipping duplicate build file in Copy Headers build phase:
    /Users/punreachrany/Desktop/Flutter/PhotoEarn/ios/Pods/TOCropViewController/Ob
    jective-C/TOCropViewController/Views/TOCropScrollView.h (in target
    'TOCropViewController' from project 'Pods')
    warning: Skipping duplicate build file in Copy Headers build phase:
    /Users/punreachrany/Desktop/Flutter/PhotoEarn/ios/Pods/TOCropViewController/Ob
    jective-C/TOCropViewController/Views/TOCropToolbar.h (in target
    'TOCropViewController' from project 'Pods')
    warning: Skipping duplicate build file in Copy Headers build phase:
    /Users/punreachrany/Desktop/Flutter/PhotoEarn/ios/Pods/TOCropViewController/Ob
    jective-C/TOCropViewController/Views/TOCropView.h (in target
    'TOCropViewController' from project 'Pods')
    warning: Skipping duplicate build file in Copy Headers build phase:
    /Users/punreachrany/Desktop/Flutter/PhotoEarn/ios/Pods/TOCropViewController/Ob
    jective-C/TOCropViewController/TOCropViewController.h (in target
    'TOCropViewController' from project 'Pods')
    warning: Skipping duplicate build file in Copy Headers build phase:
    /Users/punreachrany/Desktop/Flutter/PhotoEarn/ios/Pods/TOCropViewController/Ob
    jective-C/TOCropViewController/Models/TOCropViewControllerTransitioning.h (in
    target 'TOCropViewController' from project 'Pods')
    warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0,but the range of supported deployment target versions is 9.0 to 14.0.99. (in
    target 'nanopb' from project 'Pods')
    warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0,but the range of supported deployment target versions is 9.0 to 14.0.99. (in
    target 'gRPC-C++-gRPCCertificates-Cpp' from project 'Pods')
    warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0,but the range of supported deployment target versions is 9.0 to 14.0.99. (in
    target 'GoogleDataTransport' from project 'Pods')
    warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0,but the range of supported deployment target versions is 9.0 to 14.0.99. (in
    target 'GTMSessionFetcher' from project 'Pods')
    warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0,but the range of supported deployment target versions is 9.0 to 14.0.99. (in
    target 'FBSDKCoreKit' from project 'Pods')
    warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0,but the range of supported deployment target versions is 9.0 to 14.0.99. (in
    target 'BoringSSL-GRPC' from project 'Pods')
    warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0,but the range of supported deployment target versions is 9.0 to 14.0.99. (in
    target 'BSImageView' from project 'Pods')
    warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0,but the range of supported deployment target versions is 9.0 to 14.0.99. (in
    target 'BSGridCollectionViewLayout' from project 'Pods')
    warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0,but the range of supported deployment target versions is 9.0 to 14.0.99. (in
    target 'GoogleUtilities' from project 'Pods')
    warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0,but the range of supported deployment target versions is 9.0 to 14.0.99. (in
    target 'GoogleDataTransportCCTSupport' from project 'Pods')
    warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0,but the range of supported deployment target versions is 9.0 to 14.0.99. (in
    target 'FBSDKLoginKit' from project 'Pods')
    warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0,but the range of supported deployment target versions is 9.0 to 14.0.99. (in
    target 'image_cropper' from project 'Pods')
    warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0,but the range of supported deployment target versions is 9.0 to 14.0.99. (in
    target 'GoogleAppMeasurement' from project 'Pods')
    warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0,but the range of supported deployment target versions is 9.0 to 14.0.99. (in
    target 'gRPC-C++' from project 'Pods')
    warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0,but the range of supported deployment target versions is 9.0 to 14.0.99. (in
    target 'OneSignal-iOS10.0' from project 'Pods')
    warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0,but the range of supported deployment target versions is 9.0 to 14.0.99. (in
    target 'Flutter' from project 'Pods')
    warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0,but the range of supported deployment target versions is 9.0 to 14.0.99. (in
    target 'gRPC-Core' from project 'Pods')
    warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0,but the range of supported deployment target versions is 9.0 to 14.0.99. (in
    target 'FirebaseFirestore' from project 'Pods')
    warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0,but the range of supported deployment target versions is 9.0 to 14.0.99. (in
    target 'FirebaseAuthInterop' from project 'Pods')
    warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0,but the range of supported deployment target versions is 9.0 to 14.0.99. (in
    target 'firebase_auth' from project 'Pods')
    warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0,but the range of supported deployment target versions is 9.0 to 14.0.99. (in
    target 'FirebaseCore' from project 'Pods')
    warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0,but the range of supported deployment target versions is 9.0 to 14.0.99. (in
    target 'firebase_core' from project 'Pods')
    warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0,but the range of supported deployment target versions is 9.0 to 14.0.99. (in
    target 'firebase_database' from project 'Pods')
    warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0,but the range of supported deployment target versions is 9.0 to 14.0.99. (in
    target 'cloud_firestore' from project 'Pods')
    warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0,but the range of supported deployment target versions is 9.0 to 14.0.99. (in
    target 'FirebaseAnalytics' from project 'Pods')
    warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0,but the range of supported deployment target versions is 9.0 to 14.0.99. (in
    target 'FirebaseInstallations' from project 'Pods')
    warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0,but the range of supported deployment target versions is 9.0 to 14.0.99. (in
    target 'FirebaseCoreDiagnosticsInterop' from project 'Pods')
    warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0,but the range of supported deployment target versions is 9.0 to 14.0.99. (in
    target 'FirebaseAuth' from project 'Pods')
    warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0,but the range of supported deployment target versions is 9.0 to 14.0.99. (in
    target 'FirebaseDatabase' from project 'Pods')
    warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0,but the range of supported deployment target versions is 9.0 to 14.0.99. (in
    target 'OneSignal-iOS11.0' from project 'Pods')
    warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0,but the range of supported deployment target versions is 9.0 to 14.0.99. (in
    target 'FirebaseStorage' from project 'Pods')
    warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0,but the range of supported deployment target versions is 9.0 to 14.0.99. (in
    target 'FirebaseCoreDiagnostics' from project 'Pods')
    warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0,but the range of supported deployment target versions is 9.0 to 14.0.99. (in
    target 'firebase_storage' from project 'Pods')
    warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0,but the range of supported deployment target versions is 9.0 to 14.0.99. (in
    target 'Firebase' from project 'Pods')

Could not build the precompiled application for the device.

Error launching application on iPhone.

我该怎么做才能解决此问题?请给我一个命令行或某物。请帮我。我期待着您的回音。谢谢。

解决方法

是的,在升级到ios 14之后,我也加入了。 因此,首先,将其添加到您的podfile中:

platform :ios,'9.0'

post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      # drop deployment target so it works with ios14
      config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET
    end
  end
end

并运行:flutter upgrade

对我来说,这两件事解决了这个问题。

,

如果您想立即对其进行仿真,而不是一般地解决IDE问题,请转至工具-> Flutter->在Xcode中打开iOS模块。但是,要获得进一步的解决方案,请执行Flutter Clean,然后从Xcode-> Window-> Devices and Simulators-> Simulators->右键单击iOS模拟器,然后单击删除将模拟器删除。然后,从与您所在的页面相同的“设备和模拟器”页面的左下角“ +”按钮添加一个新的模拟器。重新运行您的应用程序,它应该可以正常工作。

,

对我有用的是 4 个步骤的组合:

第一步,修改Podfile

# Uncomment this line to define a global platform for your project
platform :ios,'12.1'

并添加以下内容(iOS平台必须匹配):

post_install do |installer|
  installer.pods_project.targets.each do |target|
    flutter_additional_ios_build_settings(target)
    target.build_configurations.each do |config|
      config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.1'
    end
  end
end

第2步,切换Flutter频道为master,升级Flutter

$ flutter channel master
$ flutter upgrade

第 3 步,升级依赖项

$ flutter pub upgrade

第 4 步,清理和构建

$ flutter clean
$ flutter build ios
,

一位同事叫我跑步:

flutter clean

然后:

flutter pub get

之后它对我有用。

,

我今天遇到了这个问题,这是我解决的方法:

  1. 运行flutter clean
  2. 重启系统
  3. 重启ios设备
,

我只是遇到了同样的问题。 iOS日志没有像Android一样正确描述。因此,请按照我的工作说明进行操作。

  1. 在Android模拟器中运行当前代码。我发现在Android日志中显示不赞成使用某些依赖项语法(对我来说是flutter_svg)
  2. 我已将flutter_svg版本的版本更改为^ 0.19.0。您需要修复运行日志中所有不建议使用的语法。
  3. 现在尝试在Android Emulator中运行。
  4. 尝试在IOS Emulator中运行。 (第一次它不起作用,因此我关闭IDE并再次打开并运行)在这种情况下,flutter clean应该可以解决您的问题。

这可以解决我的问题。

,

如果您以前在此处遵循了FlutterFire步骤:https://firebase.flutter.dev/docs/overview#improve-ios-build-times,那么该是时候禁用Firestore东西的预编译版本了,让Xcode从头开始编译它。

在文件feign.hystrix.enabled=true feign.client.config.default.connect-timeout=5000 feign.client.config.default.read-timeout=60000 中注释以下行:

ios/Podfile

运行您的应用程序,它现在应该可以运行。

,
  1. 转到您的IDE的终端
  2. flutter clean
  3. 完成。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐


依赖报错 idea导入项目后依赖报错,解决方案:https://blog.csdn.net/weixin_42420249/article/details/81191861 依赖版本报错:更换其他版本 无法下载依赖可参考:https://blog.csdn.net/weixin_42628809/a
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下 2021-12-03 13:33:33.927 ERROR 7228 [ main] o.s.b.d.LoggingFailureAnalysisReporter : *************************** APPL
错误1:gradle项目控制台输出为乱码 # 解决方案:https://blog.csdn.net/weixin_43501566/article/details/112482302 # 在gradle-wrapper.properties 添加以下内容 org.gradle.jvmargs=-Df
错误还原:在查询的过程中,传入的workType为0时,该条件不起作用 <select id="xxx"> SELECT di.id, di.name, di.work_type, di.updated... <where> <if test=&qu
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct redisServer’没有名为‘server_cpulist’的成员 redisSetCpuAffinity(server.server_cpulist); ^ server.c: 在函数‘hasActiveC
解决方案1 1、改项目中.idea/workspace.xml配置文件,增加dynamic.classpath参数 2、搜索PropertiesComponent,添加如下 <property name="dynamic.classpath" value="tru
删除根组件app.vue中的默认代码后报错:Module Error (from ./node_modules/eslint-loader/index.js): 解决方案:关闭ESlint代码检测,在项目根目录创建vue.config.js,在文件中添加 module.exports = { lin
查看spark默认的python版本 [root@master day27]# pyspark /home/software/spark-2.3.4-bin-hadoop2.7/conf/spark-env.sh: line 2: /usr/local/hadoop/bin/hadoop: No s
使用本地python环境可以成功执行 import pandas as pd import matplotlib.pyplot as plt # 设置字体 plt.rcParams['font.sans-serif'] = ['SimHei'] # 能正确显示负号 p
错误1:Request method ‘DELETE‘ not supported 错误还原:controller层有一个接口,访问该接口时报错:Request method ‘DELETE‘ not supported 错误原因:没有接收到前端传入的参数,修改为如下 参考 错误2:cannot r
错误1:启动docker镜像时报错:Error response from daemon: driver failed programming external connectivity on endpoint quirky_allen 解决方法:重启docker -> systemctl r
错误1:private field ‘xxx‘ is never assigned 按Altʾnter快捷键,选择第2项 参考:https://blog.csdn.net/shi_hong_fei_hei/article/details/88814070 错误2:启动时报错,不能找到主启动类 #
报错如下,通过源不能下载,最后警告pip需升级版本 Requirement already satisfied: pip in c:\users\ychen\appdata\local\programs\python\python310\lib\site-packages (22.0.4) Coll
错误1:maven打包报错 错误还原:使用maven打包项目时报错如下 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources (default-resources)
错误1:服务调用时报错 服务消费者模块assess通过openFeign调用服务提供者模块hires 如下为服务提供者模块hires的控制层接口 @RestController @RequestMapping("/hires") public class FeignControl
错误1:运行项目后报如下错误 解决方案 报错2:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project sb 解决方案:在pom.
参考 错误原因 过滤器或拦截器在生效时,redisTemplate还没有注入 解决方案:在注入容器时就生效 @Component //项目运行时就注入Spring容器 public class RedisBean { @Resource private RedisTemplate<String
使用vite构建项目报错 C:\Users\ychen\work>npm init @vitejs/app @vitejs/create-app is deprecated, use npm init vite instead C:\Users\ychen\AppData\Local\npm-