eclipse 建筑工作空间(睡眠)

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/27254722/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 22:16:04  来源:igfitidea点击:

Building workspace(sleeping)

javaandroideclipseandroid-appcompat

提问by Jaans

I have added android-support-v7-appcompat library to my project I got this error:

我已将 android-support-v7-appcompat 库添加到我的项目中,但出现此错误:

"java.lang.NoClassDefFoundError: android.support.v7.appcompat.R$styleable "

“java.lang.NoClassDefFoundError:android.support.v7.appcompat.R$styleable”

then I right clicked on the android-support-v7-appcompat and unchecked "Dependency"

然后我右键单击 android-support-v7-appcompat 并取消选中“依赖项”

when I run my project, in progress bar I see

当我运行我的项目时,在进度条中我看到

Building workspace(Sleeping)
Ok

构建工作空间(睡眠)
好的

then it gets cleaned and then the same message will be giving. I can't upload the print screen

然后它被清理干净,然后将给出相同的消息。我无法上传打印屏幕

any ideas please

请有任何想法

回答by icylogic

It seems that your ide do not generate R.java properly, or your dependency setting may be wrong. Recheck that you've followed the instruction in this page https://developer.android.com/tools/support-library/setup.html

看来你的ide没有正确生成R.java,或者你的依赖设置可能有误。重新检查您是否已按照此页面https://developer.android.com/tools/support-library/setup.html 中的说明进行操作

I'm not familiar with eclipse. If you're sure you have the dependency work done, maybe you can try something like "clean" and then "rebuild".

我对日食不熟悉。如果你确定你已经完成了依赖工作,也许你可以尝试像“clean”然后“rebuild”这样的东西。