开发者社区> 问答> 正文

安卓照相机程序错误,是关于@drawable/icon和R文件的错误。?报错

  <application android:icon="@drawable/icon" android:label="@string/app_name">这句中报错:

error: Error: No resource found that matches the given name (at 'icon' with value '@drawable/icon').

请教大神如何解决?

setContentView(R.layout.main);也报错:R cannot be resolved to a variable。在线跪求大神的解决办法。

展开
收起
爱吃鱼的程序员 2020-06-20 19:34:59 536 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    某个资源文件错了,导致R文件生成不了

    引用来自“iuKa”的评论

    某个资源文件错了,导致R文件生成不了

    你好,我是新手,大神能不能说具体一点呢?我我有点不明白该怎么做。

    这个怎么解决啊

    Warning:TheenvironmentvariableHOMEisnotset.ThefollowingdirectorywillbeusedtostoretheGit

    userglobalconfigurationandtodefinethedefaultlocationtostorerepositories:'C:\Users\Fwl'.Ifthisis
    notcorrectpleasesettheHOMEenvironmentvariableandrestartEclipse.OtherwiseGitforWindowsand
    EGitmightbehavedifferentlysincetheyseedifferentconfigurationoptions.
    ThiswarningcanbeswitchedoffontheTeam>Git>ConfirmationsandWarningspreferencepage.

    开发者的福利到了,devstore将拿出十万,悬赏写评测报告的开发者,参与就有奖。                        

    2020-06-20 19:35:18
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
58同城Android客户端Walle框架演进与实践之路 立即下载
Android组件化实现 立即下载
蚂蚁聚宝Android秒级编译——Freeline 立即下载