gpt4 book ai didi

java - R 无法解析为变量,通常的修复似乎不起作用

转载 作者:行者123 更新时间:2023-12-02 05:52:30 25 4
gpt4 key购买 nike

我正在尝试按照 https://developer.android.com/training/index.html 上的 google 教程编译我正在打包的 Android 应用程序

我遇到了一个问题,出现错误“R 无法解析为变量”

我遵循了其他线程的建议,例如清理/重建、删除所有导入 android.R 以及为每个版本重新安装我的 Android SDK 构建工具

这是包含问题 MyFirstApp.zip 的教程项目的副本

我采纳了其他帖子中的建议,但他们的解决方案并不成功。 1 2 3 4请帮忙!

如果您需要任何其他信息来解决此问题,请告诉我。

最佳答案

I have seen your code there is an error inside main_activity_actions.xml which is inside your menu folder

It does not find @string/action_search which must be present in strings.xml

So put <string name="action_search">Search here</string> inside your strings.xml

and clean and build the project.

I hope the error will be solved.

关于java - R 无法解析为变量,通常的修复似乎不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23418314/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com