importing R. (android)

拟墨画扇 提交于 2019-12-04 14:56:30

Change your Project Build Target to the Latest

Right Click Project > Properties > Android > Change the Api to latest version

import The R class. The basic syntax is

import your_application_package_name.R;

If you have already imported it but it is not working then check if there in any error in your resource xmls. If so then r can be not generated and that error will be shown

Try to update the Android_SDK. When you create or import a new Android project the SDk builds the project. The R problem is mostly an update SDK problem.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!