Android版的Eclipse +:不能把文件复制到SD卡 [英] Android+Eclipse: Can't push files to SD Card

查看:390
本文介绍了Android版的Eclipse +:不能把文件复制到SD卡的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

试图通过Eclipse将文件推到SD卡。

当我拉起我的DDMS观,我有设备上的3个主目录:

  /数据
到/ mnt
/系统

只有SD卡的文件夹位于的/ mnt / SD卡,它有权 D --------

我不能把任何东西给它,出现错误:


  

未能推的选择:只读
  文件系统


我已经删除重拍的设备很多次,有许多不同的SD卡大小。我在亚行的shell试图亚行重新装入以及搭配chmod 777 上的文件夹。

这是为什么这么难?如果可以请帮帮忙。


 的rootfs / rootfs的RO 0的tmpfs的/ dev的tmpfs RW采用这个选项,模式= 755 0 0
devpts的/ dev / PTS devpts RW,模式= 600 0 0进程内的/ proc PROC RW 0 0
sysfs的/ SYS的sysfs RW 0 0无/ ACCT cgroup中RW,cpuacct 0 0
的tmpfs的/ mnt / ASEC TMPFS RW,模式= 755,GID = 1000 0 0
的tmpfs的/ mnt / tmpfs的OBB RW,模式= 755,GID = 1000 0 0
没有的/ dev /新增的cpuctl cgroup中RW,CPU 0 0
为/ dev /块/ mtdblock0 /系统YAFFS2 RO 0 0
为/ dev /块/ mtdblock1 /数据YAFFS2 RW采用这个选项,为nodev 0 0
为/ dev /块/ mtdblock2 /缓存YAFFS2 RW采用这个选项,为nodev 0 0


解决方案

我有同样的问题,而且看起来这是不可能使用API​​级别10.我不知道这是否是一个Android SDK来安装在模拟器SD卡问题或者Eclipse的问题,但仅此而已。这是可能的与API 7(2.1),8(2.2)和15(4.0.3)模拟器安装SD卡。顺便说一句,在API 7,8,15安装SD卡是有点马车了。我不得不推出各种仿真器的3倍之前,我设法安装SD卡:第一和第二发射 - 没有安装,第三个发射 - 安装

Trying to push files to sd card via eclipse.

When I pull up my DDMS view, I have 3 main directories on the device:

/data
/mnt
/system

The only SDcard folder is located at /mnt/sdcard and it has permissions d--------.

I can't push anything to it, with the error:

Failed to push selection: Read-only file system

I had deleted and remade the device many times, with many different SD Card sized. I've tried adb remount at the adb shell as well as chmod 777 on the folder.

Why is this so difficult? Please help if you can.


rootfs / rootfs ro 0 0 tmpfs /dev tmpfs rw,nosuid,mode=755 0 0 
devpts /dev/pts devpts rw,mode=600 0 0 proc /proc proc rw 0 0 
sysfs /sys sysfs rw 0 0 none /acct cgroup rw,cpuacct 0 0 
tmpfs /mnt/asec tmpfs rw,mode=755,gid=1000 0 0 
tmpfs /mnt/obb tmpfs rw,mode=755,gid=1000 0 0 
none /dev/cpuctl cgroup rw,cpu 0 0
/dev/block/mtdblock0 /system yaffs2 ro 0 0 
/dev/block/mtdblock1 /data yaffs2 rw,nosuid,nodev 0 0
/dev/block/mtdblock2 /cache yaffs2 rw,nosuid,nodev 0 0 

解决方案

I had the same problem, and it seems that it's impossible to mount sdcard on emulator using API Level 10. I don't know if it's an android-sdk problem or Eclipse problem, but that's it. It's possible to mount sdcard on emulators with API 7(2.1), 8(2.2) and 15(4.0.3). By the way, mounting sdcard on API 7,8,15 is a bit buggy too. I had to launch each emulator 3 times before I managed to mount sdcard: 1st and 2nd launch - not mounted, 3rd launch - mounted!

这篇关于Android版的Eclipse +:不能把文件复制到SD卡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆