无法解析Symbol R,gen文件夹在Android Studio中在哪里? [英] Cannot resolve Symbol R, where is gen folder in Android Studio?
问题描述
我已经在Android Studio中创建了一个虚拟Android项目,可以运行它,但是Editor本身找不到R类.实际上我找不到gen文件夹.我认为也许应该将该文件夹作为源文件夹或类依赖项添加,但我找不到它.
I have created a dummy Android project from within Android studio, and I can make it run, but the Editor itself fails to find the R class. In fact I can't find the gen folder. I thought that maybe that folder should be added as a source folder or a classes dependency, but I just can't find it.
任何人都可以帮忙吗?
推荐答案
@joe_deniable让我想到了在build文件夹中仔细查看的方法,然后我发现了一个被intellij 排除的文件夹,我的R高兴地在那里吃冰淇淋.在这里:
@joe_deniable gave me the idea to look closer in the build folder, and I found a folder that had been excluded by intellij, where my R was happily having an ice cream. This was here:
build/source/aidl/debug
build/source/aidl/debug
我必须从排除列表中删除此文件夹,并将其添加到源中,最后才能在此新IDE中开始编码.
I had to remove this folder from the exclusion list and add it to the sources, and could finally start coding in this new IDE.
谢谢
这篇关于无法解析Symbol R,gen文件夹在Android Studio中在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!