Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
失败消息:
failed to copy 'D:\My Documents\桌面\hello你好.txt' to '/storage/sdcard0/hello你好.txt': Invalid argument
我遇到的另一个问题与此类似,在命令行“adb shell ls”中显示的消息对于中文文件项来说很奇怪并且完全错误,但是英文项显示正常。
android test.txt 鎴戠殑鐓х墖 鎴戠殑瑙嗛 鎴戠殑闊充箰 root@android:/storage/sdcard0 #
第一个问题是:</p>
D:\My Documents\桌面\hello你好.txt
上述路径格式适用于 Windows。和:
/storage/sdcard0/hello你好.txt
路径格式适用于 *NIX。
您可以尝试替换D:\My Documents\桌面\hello你好.txt为D:/My Documents/桌面/hello你好.txtor /D/My Documents/桌面/hello你好.txt。
D:/My Documents/桌面/hello你好.txt
/D/My Documents/桌面/hello你好.txt
第二个问题是因为编码,尝试改变你的终端编码。