美文网首页
Android R文件的位置

Android R文件的位置

作者: WangDDY | 来源:发表于2020-11-20 00:52 被阅读0次

Based on the new stable release of Android Studio (3.6) we have:

image.png

So, now to find your generated resource classes you need the following steps:

1) Open your project.

2) Go to your module build path.

3) Open the outputs/apk/debug/app-name-debug.apk file.

4) Choose your classes.dex file.

5) Look at the down placed area and go to your full package path.

6) You can see all bytecoded resource classes. So, scroll down to what you are looking for.

image.png

7) Expand the resource class you need to proceed (for example, let it be R.id)

image.png

8) Go to you id's.

image.png

That's it.

UPDATE:

If you would like to see actual id integer number you should follows steps below:

1) By (7) Go to the resource class you need to proceed and right click to show the context menu

2) Choose "Show Bytecode" to see the flexible dialog "DEX Byte Code for R$id", for example, for id class

image.png

3) Scroll down to the actual id to look its number

image.png

原文链接

相关文章

网友评论

      本文标题:Android R文件的位置

      本文链接:https://www.haomeiwen.com/subject/igvriktx.html