Error when loading the SDK:解决方案

本文介绍了解决Eclipse中出现的Android SDK加载错误问题,特别是针对Android 5.1(API 22)系统镜像中的devices.xml文件引发的错误。通过替换特定的devices.xml文件来解决该问题。

错误情况:

当打开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。


我是Android初学者,自己上网下了一个“adt-bundle-windows-x86-20140702.rar”已经集成Android开发的eclipse,

然后,我使用SDK Manager把我需要的开发支持包下载了一些,

但是在我学习创建AVD模拟器是出问题了,

下面一直报错的错误信息

Error: Error parsing D:\android-sdk-windows\sdk\system-images\android-22\android-wear\armeabi-v7a\devices.xml

Error: Error parsing D:\android-sdk-windows\sdk\system-images\android-22\android-wear\x86\devices.xml

”,

这个问题很是烦人,尽管他并不影响程序模拟器的运行,但是看着有错误,总是感觉不爽!

我上网找了很多资料,大家给的资料都是比较多、乱、杂!

我这里总结一下,可能不是很准确,但是基本可以解决问题:

原因:就是现在你下载比较新的API22:Android5.1 || Android M,这些东西在一些小小的设置兼容配置方面还是有点问题

解决办法:直接把“D:\android-sdk-windows\sdk\tools\lib\devices.xml”(这是我的路径),也就是你sdk文件夹下\tools文件夹\lib文件夹\devices.xml文件   -----》》》   复制替换你上面你对应处错误的文件夹下的devices.xml文件!

最后重启eclipse,点击ADV Manager创建模拟器就不会报错了!


本片文章也是学习了很多网友的帖子,然后总结出来的,其中帮我解决根本问题的帖子地址:http://blog.csdn.net/yueqinglkong/article/details/46340571


x30076778@DESKTOP-PUO6BMI MINGW64 /d/xingrufeng/code_src/8911SDK/code_sd8911_git/hlt/build/sd8911_llt (br_odspTX) $ ./build_and_execute.sh hidsp0 build ; # build without clean TDP env is null, set to default dir: /d/xingrufeng/code_src/8911SDK/code_sd8911_git/hlt/build/sd8911_llt/hidsp0_llt_result use lib: C:/usr1/local/lib/libgtest.a C:/usr1/local/lib/libmockcpp.a Begin to build 8911 sdk.exe [build] current path len:56 你没有足够的权限执行此操作。 [build] change long current path:/d/xingrufeng/code_src/8911SDK/code_sd8911_git/hlt/build to D:/wecode_project_link/86516724/hlt/build [build] Warnning: The compilation efficiency will reduced when the project path is too long. [build] Warnning: The compilation efficiency will reduced when the project path is too long. [build] Warnning: The compilation efficiency will reduced when the project path is too long. [build] Warnning: It is suggested to modify the project directory. [build] BUILD_WORK_DIR=D:/wecode_project_link/86516724/hlt/build/../../src/../hlt/work/sd8911_hidsp0_llt/mingw_gdb [build] OUTPUT_DIR=D:/wecode_project_link/86516724/hlt/build/../../src/../hlt/work/sd8911_hidsp0_llt/mingw_gdb [build] Parallel job num is 50 1.10.0 [build] MAKEFILE_GENERRATOR=Ninja [build] TARGET_NAME=sdk.exe CMake Error: The source directory "D:/wecode_project_link/86516724/hlt" does not appear to contain CMakeLists.txt. Specify --help for usage, or press the help button on the CMake GUI. [build] ninja sdk -j50 ... ninja: error: loading 'build.ninja': ϵͳ▒Ҳ▒▒▒ָ▒▒▒▒▒ļ▒▒▒ ls: cannot access 'D:/wecode_project_link/86516724/hlt/build/../../src/../hlt/work/sd8911_hidsp0_llt/mingw_gdb/sdk.exe': No such file or directory ================ building error ================ Binary file make.log matches [build] make build end. ls: cannot access '/d/xingrufeng/code_src/8911SDK/code_sd8911_git/hlt/build/sd8911_llt/../../work/sd8911_hidsp0_llt/mingw_gdb/sdk.exe': No such file or directory [build] Warnning: It is suggested to modify the project directory. [build] BUILD_WORK_DIR=D:/wecode_project_link/86516724/hlt/build/../../src/../hlt/work/sd8911_hidsp0_llt/mingw_gdb [build] OUTPUT_DIR=D:/wecode_project_link/86516724/hlt/build/../../src/../hlt/work/sd8911_hidsp0_llt/mingw_gdb [build] Parallel job num is 50 1.10.0 [build] MAKEFILE_GENERRATOR=Ninja [build] TARGET_NAME=sdk.exe CMake Error: The source directory "D:/wecode_project_link/86516724/hlt" does not appear to contain CMakeLists.txt. Specify --help for usage, or press the help button on the CMake GUI. [build] ninja sdk -j50 ... Binary file BUILD.LOG matches For more detailed information, please check ./BUILD.LOG. Build Fail! 什么意思
最新发布
09-05
/usr/bin/python3.10 /home/a/rknn-toolkit2/rknn-toolkit2/examples/onnx/yolov5/minist_onnx_to_rknn.py --> Config model Config done --> Loading model W __init__: rknn-toolkit2 version: 1.6.0+81f21f4d W load_onnx: It is recommended onnx opset 19, but your onnx model opset is 13! W load_onnx: Model converted from pytorch, 'opset_version' should be set 19 in torch.onnx.export for successful convert! Loading : 100%|██████████████████████████████████████████████████| 11/11 [00:00<00:00, 30076.50it/s] E load_onnx: The input shape ['batch_size', 1, 28, 28] of 'input' is not support! Please set the 'inputs' / 'input_size_list' parameters of 'rknn.load_onnx', or set the 'dyanmic_input' parameter of 'rknn.config' to fix the input shape! W load_onnx: ===================== WARN(3) ===================== E rknn-toolkit2 version: 1.6.0+81f21f4d E load_onnx: Catch exception when loading onnx model: /home/a/rknn-toolkit2/rknn-toolkit2/examples/onnx/yolov5/model_Mnist.onnx! E load_onnx: Traceback (most recent call last): E load_onnx: File "rknn/api/rknn_base.py", line 1540, in rknn.api.rknn_base.RKNNBase.load_onnx E load_onnx: File "rknn/api/rknn_base.py", line 769, in rknn.api.rknn_base.RKNNBase._create_ir_and_inputs_meta E load_onnx: File "rknn/api/rknn_log.py", line 92, in rknn.api.rknn_log.RKNNLog.e E load_onnx: ValueError: The input shape ['batch_size', 1, 28, 28] of 'input' is not support! E load_onnx: Please set the 'inputs' / 'input_size_list' parameters of 'rknn.load_onnx', or set the 'dyanmic_input' parameter of 'rknn.config' to fix the input shape! W If you can't handle this error, please try updating to the latest version of the toolkit2 and runtime from: https://console.zbox.filez.com/l/I00fc3 (Pwd: rknn) Path: RKNPU2_SDK / 1.X.X / 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) Traceback (most recent call last): File "/home/a/rknn-toolkit2/rknn-toolkit2/examples/onnx/yolov5/minist_onnx_to_rknn.py", line 49, in <module> convert_to_rknn() File "/home/a/rknn-toolkit2/rknn-toolkit2/examples/onnx/yolov5/minist_onnx_to_rknn.py", line 26, in convert_to_rknn raise RuntimeError(f"Load ONNX failed! Error code: {ret}") RuntimeError: Load ONNX failed! Error code: -1
05-30
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值