找到你要的答案

Q:Package Rename Issue FBReader

Q:包重命名问题后

While renaming the package in android eclipse, I am getting an error W/System.err(10980): java.lang.NoClassDefFoundError: org/geometerplus/fbreader/formats/PluginCollection and such errors, I renamed the package in manifest.xml by using refactor->rename. Can anybody tell me what is the issue.

在重命名包在Android Eclipse,我得到一个错误/系统错误(10980):java.lang.noclassdeffounderror:组织/ geometerplus /后/格式/ plugincollection和这样的错误,我改名为包通过重构-但是manifest.xml >;重命名。谁能告诉我什么是问题。

answer1: 回答1:

Please mention how you did that.BTW here is rough idea: right click on project select android tools and from there select rename package options.

请注明你是如何that.btw这里是粗略的想法:右键点击项目选择Android工具,并从中选择重命名封装选项。

answer2: 回答2:

There are few reasons why this may occur. Class files are bytecode that Java interprets to execute your program. The following must be checked to ensure proper functioning of the application.

  1. Class file located, Exception raised while initializing static blocks.
  2. ClassNotFoundException -- .class not found for that referenced class irrespective of whether it is available at compile time or not(i.e base/child class).
  3. Class file located, but Exception raised while initializing static variables
  4. The error indicates, that something was found at compiletime but not at runtime, maybe you just have to add it to the classpath.
  5. Right click on your project and select -> Compile Module, and then re-start the project and it should work again.
  6. In eclipse make sure you have the shapes, linepoints and the spaceobjects as entries in the .classpath file.

这可能发生的原因很少。java类文件的字节码解释执行程序。必须检查以下内容以确保应用程序的正常运行。

  1. Class file located, Exception raised while initializing static blocks.
  2. ClassNotFoundException -- .class not found for that referenced class irrespective of whether it is available at compile time or not(i.e base/child class).
  3. Class file located, but Exception raised while initializing static variables
  4. The error indicates, that something was found at compiletime but not at runtime, maybe you just have to add it to the classpath.
  5. Right click on your project and select -> Compile Module, and then re-start the project and it should work again.
  6. In eclipse make sure you have the shapes, linepoints and the spaceobjects as entries in the .classpath file.
android