Error when loading the SDK:解决方案

本文介绍了一种Eclipse启动时遇到的错误情况及其解决方法。错误发生在加载SDK过程中,涉及XML文件解析问题。通过替换特定目录下的devices.xml文件可以解决此问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

错误情况:

当打开eclipse时出现如下窗口(内容如下)

Error when loading the SDK:

Error: Error parsing \Android\adt-bundle-windows-x86_64-20140702\sdk\system-images\android-22\android-wear\armeabi-v7a\devices.xml
cvc-complex-type.2.4.d: 发现了以元素 'd:skin' 开头的无效内容。此处不应含有子元素。
Error: Error parsing D:\Android\adt-bundle-windows-x86_64-20140702\sdk\system-images\android-22\android-wear\x86\devices.xml
cvc-complex-type.2.4.d: 发现了以元素 'd:skin' 开头的无效内容。此处不应含有子元素。balabala

解决方法:

用D:\Android\adt-bundle-windows-x86_64-20140702\sdk\tools\lib下的devices.xml文件代替

D:\Android\adt-bundle-windows-x86_64-20140702\sdk\system-images\android-22\android-wear\armeabi-v7a和

D:\Android\adt-bundle-windows-x86_64-20140702\sdk\system-images\android-22\android-wear\x86下的devices.xml文件,

重启eclipse。


(RKNN) book@wyc_emb:~/rk3566/ai_tools/model_tran/tran/yolov5-face$ python onnx2rknn.py ../yolov5s-face.onnx rk3566 i8 yolov5s_face_i8_.rknn W __init__: rknn-toolkit2 version: 1.5.0+1fa95b5c --> Config model done --> Loading model Loading : 100%|████████████████████████████████████████████████| 132/132 [00:00<00:00, 14059.48it/s] done --> Building model E build: Catch exception when building RKNN model! E build: Traceback (most recent call last): E build: File "rknn/api/rknn_base.py", line 1789, in rknn.api.rknn_base.RKNNBase.build E build: File "rknn/api/graph_optimizer.py", line 787, in rknn.api.graph_optimizer.GraphOptimizer.fold_constant E build: File "rknn/api/session.py", line 32, in rknn.api.session.Session.__init__ E build: File "rknn/api/session.py", line 132, in rknn.api.session.Session.sess_build E build: File "/home/book/anaconda3/envs/RKNN/lib/python3.8/site-packages/onnxruntime/capi/onnxruntime_inference_collection.py", line 335, in __init__ E build: self._create_inference_session(providers, provider_options, disabled_optimizers) E build: File "/home/book/anaconda3/envs/RKNN/lib/python3.8/site-packages/onnxruntime/capi/onnxruntime_inference_collection.py", line 370, in _create_inference_session E build: sess = C.InferenceSession(session_options, self._model_bytes, False, self._read_config_from_model) E build: onnxruntime.capi.onnxruntime_pybind11_state.InvalidArgument: [ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Failed to load model with error: /onnxruntime_src/onnxruntime/core/graph/model.cc:129 onnxruntime::Model::Model(onnx::ModelProto&&, const PathString&, const IOnnxRuntimeOpSchemaRegistryList*, const onnxruntime::logging::Logger&, bool) Unsupported model IR version: 9, max supported IR version: 8 W If you can't handle this error, please try updating to the latest version of the toolkit2 and runtime from: https://eyun.baidu.com/s/3eTDMk6Y (Pwd: rknn) Path: RK_NPU_SDK / RK_NPU_SDK_1.X.0 / develop / If the error still exists in the latest version, please collect the corresponding error logs and the model, convert script, and input data that can reproduce the problem, and then submit an issue on: https://redmine.rock-chips.com (Please consult our sales or FAE for the redmine account) Build model failed!
最新发布
03-28
评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值