在eclipse中android更新后,几乎所有内容都标记为错误
晚上好!我刚刚更新了eclipse,完成后,几乎每一行代码都被标记为错误。我找到了解决方案(我认为这是问题的一部分),但我仍然得到了所有的错误 我安装了android API 18,安装了LVL并更新了几个软件包在eclipse中android更新后,几乎所有内容都标记为错误,android,eclipse,Android,Eclipse,晚上好!我刚刚更新了eclipse,完成后,几乎每一行代码都被标记为错误。我找到了解决方案(我认为这是问题的一部分),但我仍然得到了所有的错误 我安装了android API 18,安装了LVL并更新了几个软件包 Description Resource Path Location Type color cannot be resolved to a variable AmountEdit.java /Spendo2/src/com/Sverk
Description Resource Path Location Type
color cannot be resolved to a variable AmountEdit.java /Spendo2/src/com/SverkerSbrg/Spendo/Transaction/TransactionEdit line 77 Java Problem
PagerAdapter cannot be resolved to a type SpendoFull.java /SpendoFull/src/com/SverkerSbrg/SpendoFull line 44 Java Problem
PagerAdapter cannot be resolved to a type SpendoFull.java /SpendoFull/src/com/SverkerSbrg/SpendoFull line 43 Java Problem
PagerAdapter cannot be resolved to a type SpendoLite.java /SpendoLite/src/com/SverkerSbrg/SpendoLite line 43 Java Problem
PagerAdapter cannot be resolved to a type SpendoLite.java /SpendoLite/src/com/SverkerSbrg/SpendoLite line 44 Java Problem
R cannot be resolved to a variable Amount.java /Spendo2/src/com/SverkerSbrg/Spendo/Transaction/Datastructure/Amount line 41 Java Problem
R cannot be resolved to a variable AmountEdit.java /Spendo2/src/com/SverkerSbrg/Spendo/Transaction/TransactionEdit line 50 Java Problem
R cannot be resolved to a variable AmountEdit.java /Spendo2/src/com/SverkerSbrg/Spendo/Transaction/TransactionEdit line 45 Java Problem
R cannot be resolved to a variable AmountEdit.java /Spendo2/src/com/SverkerSbrg/Spendo/Transaction/TransactionEdit line 55 Java Problem
R cannot be resolved to a variable AmountEdit.java /Spendo2/src/com/SverkerSbrg/Spendo/Transaction/TransactionEdit line 52 Java Problem
FragmentActivity cannot be resolved to a type SpendoLite.java /SpendoLite/src/com/SverkerSbrg/SpendoLite line 38 Java Problem
R cannot be resolved to a variable About.java /Spendo2/src/com/SverkerSbrg/Spendo/MiscTab line 53 Java Problem
R cannot be resolved to a variable About.java /Spendo2/src/com/SverkerSbrg/Spendo/MiscTab line 49 Java Problem
PagerAdapter cannot be resolved to a type SpendoFull.java /SpendoFull/src/com/SverkerSbrg/SpendoFull line 24 Java Problem
R cannot be resolved to a variable About.java /Spendo2/src/com/SverkerSbrg/Spendo/MiscTab line 44 Java Problem
R cannot be resolved to a variable About.java /Spendo2/src/com/SverkerSbrg/Spendo/MiscTab line 39 Java Problem
R cannot be resolved to a variable About.java /Spendo2/src/com/SverkerSbrg/Spendo/MiscTab line 34 Java Problem
FragmentActivity cannot be resolved to a type SpendoFull.java /SpendoFull/src/com/SverkerSbrg/SpendoFull line 22 Java Problem
R cannot be resolved to a variable About.java /Spendo2/src/com/SverkerSbrg/Spendo/MiscTab line 30 Java Problem
R cannot be resolved to a variable About.java /Spendo2/src/com/SverkerSbrg/Spendo/MiscTab line 26 Java Problem
R cannot be resolved to a variable About.java /Spendo2/src/com/SverkerSbrg/Spendo/MiscTab line 22 Java Problem
FragmentActivity cannot be resolved to a type SpendoFull.java /SpendoFull/src/com/SverkerSbrg/SpendoFull line 38 Java Problem
R cannot be resolved to a variable About.java /Spendo2/src/com/SverkerSbrg/Spendo/MiscTab line 53 Java Problem
R cannot be resolved to a variable About.java /Spendo2/src/com/SverkerSbrg/Spendo/MiscTab line 53 Java Problem
R cannot be resolved to a variable About.java /Spendo2/src/com/SverkerSbrg/Spendo/MiscTab line 53 Java Problem
FragmentStatePagerAdapter cannot be resolved to a type SpendoFull.java /SpendoFull/src/com/SverkerSbrg/SpendoFull line 67 Java Problem
FragmentManager cannot be resolved to a type SpendoFull.java /SpendoFull/src/com/SverkerSbrg/SpendoFull line 68 Java Problem
Fragment cannot be resolved to a type SpendoLite.java /SpendoLite/src/com/SverkerSbrg/SpendoLite line 73 Java Problem
FragmentManager cannot be resolved to a type SpendoLite.java /SpendoLite/src/com/SverkerSbrg/SpendoLite line 68 Java Problem
Fragment cannot be resolved to a type SpendoFull.java /SpendoFull/src/com/SverkerSbrg/SpendoFull line 73 Java Problem
FragmentStatePagerAdapter cannot be resolved to a type SpendoLite.java /SpendoLite/src/com/SverkerSbrg/SpendoLite line 67 Java Problem
FragmentActivity cannot be resolved to a type SpendoLite.java /SpendoLite/src/com/SverkerSbrg/SpendoLite line 61 Java Problem
MiscTabFragment cannot be resolved to a type SpendoFull.java /SpendoFull/src/com/SverkerSbrg/SpendoFull line 84 Java Problem
PTHandler cannot be resolved SpendoLite.java /SpendoLite/src/com/SverkerSbrg/SpendoLite line 56 Java Problem
FragmentActivity cannot be resolved to a type SpendoLite.java /SpendoLite/src/com/SverkerSbrg/SpendoLite line 22 Java Problem
PagerAdapter cannot be resolved to a type SpendoLite.java /SpendoLite/src/com/SverkerSbrg/SpendoLite line 24 Java Problem
FragmentActivity cannot be resolved to a type SpendoFull.java /SpendoFull/src/com/SverkerSbrg/SpendoFull line 61 Java Problem
MiscTabFragment cannot be resolved to a type SpendoLite.java /SpendoLite/src/com/SverkerSbrg/SpendoLite line 84 Java Problem
PTHandler cannot be resolved SpendoFull.java /SpendoFull/src/com/SverkerSbrg/SpendoFull line 56 Java Problem
这个问题影响了我在eclipse中的所有项目。我尝试过几次清理和重启(包括桌面本身)
更新:
我认为我在所谓的图书馆项目中有一个主要问题。出现问题的地方(633次)
这是很正常的。而且,可能发生的原因有很多 有时我会遇到错误,比如R没有生成,因为它们是代码中的一个错误。并且,错误在代码中,因为它无法从R中找到资源的引用 尝试重新创建您的R文件。通常项目->清洁工作 当您有多个项目时,请删除所有项目,然后尝试逐个添加。添加第一个项目,编译该项目,如果该项目没有问题,则添加下一个项目 有些时候有多个项目,有些依赖项文件被多次添加。确保 Android上的库作为Android构建路径上的Android库添加。而且,Java库位于Java构建路径上。如果多次看到任何库或支持jar,请将其删除 关于Eclipse属性, Android属性->Android isLibrary
Java属性->Java构建路径右键单击其中一个项目,选择左侧窗格中的属性>,选择Android>检查是否有任何引用库显示为已损坏。这里显然有问题。我目前有3个项目,一个库,然后使用库的2个轻版本。该库已取消标记为库,其他2个库中对它的引用已消失。当我尝试阅读它时,没有得到任何响应。我似乎无法将以前的库转换为库项目…右键单击库项目,选择左侧窗格中的属性>,选择Android>选中
是库
复选框。将库添加到其他项目中。我已尝试此操作,但在关闭该框后,它会自动恢复。假设这是因为错误阻止了它的编译
Description Resource Path Location Type
R cannot be resolved to a variable CategoryEdit.java /Spendo2/src/com/SverkerSbrg/Spendo/Category line 98 Java Problem