在Android Studio项目中应在哪里创建gen/R.java? [英] Where gen/R.java should be created in Android Studio project?

查看:217
本文介绍了在Android Studio项目中应在哪里创建gen/R.java?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道该文件夹在我的项目中是否存在.我已经执行了我的应用程序,但是在我的项目中找不到此文件夹.通常在哪里?

I don't know if this folder is existent at my project. I have already executed my application but I'm not finding this folder at my project. Where is it usually located?

推荐答案

R.java. 您可以在以下位置找到它:

R.java will be automatically created for your project by android-studio once you build the project. You can find it at:

您的应用名称/app/build/generated/source/r/debug/您的程序包名称/R.java

your_app_name/app/build/generated/source/r/debug/your_package_name/R.java

您可能在android-studio的项目浏览器中看不到该文件夹​​,因为默认情况下该文件夹设置为Android视图.将其更改为项目视图.

You might not be seeing that folder in the project explorer of android-studio, because by default it's set to Android view. Change it to Project view.

这篇关于在Android Studio项目中应在哪里创建gen/R.java?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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