无法找到文件浏览器我的包路径 [英] Can't find my package path in file explorer

查看:152
本文介绍了无法找到文件浏览器我的包路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的项目包中不DDMS显示>文件浏览器(我选择了我的手机在窗口的设备)。我发现一个错误显示在logcat中,它说无法打开文件进行读取。

My project package doesn't show in DDMS > File Explorer (I had selected my phone in window devices). I found that an error is shown in logcat, which says can't open file for reading.

难道我没有正确安装Eclipse?在此之前,我的项目运行良好,我可以看到在文件浏览器中的项目路径(在数据>数据>)。之后,我有做一些改变(我不记得我做了什么样的变化,太多),在做其他项目的时候,我卸载并重新安装Eclipse的,那么这个错误出现。我无法找到我所有的项目包中的文件浏览器。

Is it possible that I didn't install Eclipse properly? Before that, my project ran well and I could see the project path in the file explorer (under data>data>). After I had make few changes (I don't recall what changes I had made, too many), when doing another project, I uninstalled and reinstalled Eclipse, then this error appeared. I can't find ALL my project package in file explorer.

我想知道这是什么问题,如何解决这个问题。

May I know what is the problem and how to solve it.

推荐答案

这是由于权限,DDMS将只显示他有足够的访问到达文件和文件夹。

This is due to the permissions, DDMS will only show the files and folders he has enough access to reach.

您可以使用该工具的Andr​​oid调试桥(ADB)更改这些权限。

You can change these permissions using the tool Android Debug Bridge (ADB).

亚行位于文件夹在你的SDK目录的平台工具。 在Windows中,你可以通过打开一个命令提示符访问的外壳,转到深发展路径,并使用下面的命令:

ADB is located in the folder platform-tools in your SDK directory. On Windows you can access shell by opening a command prompt, go to the SDB path and use the following command:

cd (...)\android-sdk\platform-tools
adb shell

在命令外壳被打开,你可以输入命令苏 - 根来获得root权限。

Once the command shell is opened, you can enter the command su - root to get root access.

要更改文件和文件夹的权限,你只需要使用命令搭配chmod

To change permissions on files and folders, you just need to use the command chmod.

修改:下面是一个例子,显示GOW改变对特定文件夹的权限,并且其所有的内容:

EDIT: here is an example showing gow to change the right on a specific folder, and all its contents:

chmod -R [permissions] [dirname]

研究表示递归,如果你删除它,它只会改变文件夹的权限,而不是其内容。 在 [权限] ,把所需的权限,一个完整的访问,例如 777 。 在 [目录名称] ,只需用您的文件夹名称替换。

R means recursive, if you remove it, it will only change the permissions of the folder, not its contents. In [permissions], put the permissions desired, a full access is for example 777. In [dirname], just replace with your folder name.

例如:

chmod -R 777 new_folder

此命令给出了完全访问该文件夹new_folder,其子文件夹。

This command gives full access to the folder "new_folder" and its sub-folders.

这篇关于无法找到文件浏览器我的包路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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