简体   繁体   中英

R.java file is missing/not generated in android studio

I am learning how to develop apps.

I couldn't find any R directory inside build>generated. I tried with other stack overflow answer of this same issue and tried clean project and rebuild project and checked whether android sdk tool are installed or not. It is installed. How to find R.java file.

在此处输入图像描述

在此处输入图像描述

This is caused by Android Gradle Plugin generating R class bytecode directly, instead of.java files.

So there isn't any R.java file being generated and if you need information about the R class, you can have a look at the class bytecode by following the steps described in this answer .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM