Convert Android project to 'regular' Java project inside Eclipse?

怎甘沉沦 提交于 2019-12-19 11:47:20

问题


Ive inherited some code which started out as an Android project but really is just an API to be used by other applications. Hence, the 'build' process usually just produces a JAR file. The problem Im having is that I get errors from the Android build tools in my console which seem to fire everytime I make a change to some files. How do I fix that?

Im using Eclipse 3.5 (Galileo).


回答1:


  • Check run configuration and remove any reference to the Android Sdk.
  • Create a new Java project and copy project files from the older Android project to the new Java one.



回答2:


You should copy files: .classpath and .project from other working java project. Next you should edit .project with text editor and change SampleProject to YourProjectName



来源:https://stackoverflow.com/questions/2569315/convert-android-project-to-regular-java-project-inside-eclipse

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!