AIDE“未知实体'R'" Android Studio App Project错误 [英] AIDE "Unknown entity 'R'" Error with Android Studio App Project

查看:655
本文介绍了AIDE“未知实体'R'" Android Studio App Project错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用AIDE开始使用Android Studio编写的Android应用程序,但是该项目在AIDE中引发了一个Unknown entity 'R'错误,而我在Android Studio中从未见过此错误.我可以想象,以某种方式,Android Studio使用Gradle来管理它并防止出现问题,但是由于AIDE不支持Gradle,因此该项目无法正常运行.

I am trying to work on an Android App that I started writing with Android Studio using AIDE, but I have an issue with the project throwing an Unknown entity 'R' error in AIDE that I never saw in Android Studio. I would imagine that somehow, Android Studio uses Gradle to manage this and prevent this from being an issue, but since AIDE does not support Gradle, the project does not function properly.

在保持与Android Studio的兼容性的同时,如何使项目在AIDE中运行?这似乎是其他人遇到的一个问题,但我一直无法找到解决问题的方法.

What must I do to make the project work in AIDE while still maintaining compatibility with Android Studio? This seems to be an issue that others have experienced, but I have been unable to find a solution to the problem.

推荐答案

只需添加带有R且名称为Project的导入. 例如,我的包名称是-com.xyz.app,然后将导入添加为import com.xyz.app.R;

Just add an import with R with the name of your Project. Like for example, my package name is - com.xyz.app then add an Import as import com.xyz.app.R;

这篇关于AIDE“未知实体'R'" Android Studio App Project错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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