Android Studio 中的 R.java 文件在哪里? [英] Where is the R.java file in Android Studio?
问题描述
Android Studio 中的 R.java 文件在哪里?有人可以帮忙吗?我已经尝试谷歌寻找答案,但找不到任何解决方案.
Where is the R.java file in Android Studio? Can someone please help with this? I already tried google for the answer but can't find any solution.
推荐答案
基于
因此,现在要查找生成的资源类,您需要执行以下步骤:
So, now to find your generated resource classes you need the following steps:
1) 打开您的项目.
2) 转到您的模块构建路径.
3) 打开 outputs/apk/debug/app-name-debug.apk 文件.
3) Open the outputs/apk/debug/app-name-debug.apk file.
4) 选择您的 classes.dex 文件.
5) 查看向下放置的区域并转到您的完整包路径.
6) 您可以看到所有字节码资源类.因此,向下滚动到您要查找的内容.
7) 展开您需要继续的资源类(例如,让它成为 R.id)
8) 转到您的 ID.
就是这样.
更新:
如果您想查看实际的 id 整数,您应该按照以下步骤操作:
If you would like to see actual id integer number you should follows steps below:
1) 通过 (7) 转到您需要继续的资源类并右键单击以显示上下文菜单
2) 选择Show Bytecode"可以看到灵活的对话框DEX Byte Code for R$id",例如id class
3) 向下滚动到实际 ID 以查看其编号
这篇关于Android Studio 中的 R.java 文件在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!