开发者

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

开发者 https://www.devze.com 2022-12-25 06:16 出处:网络
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 I

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?

开发者_JAVA百科Im using Eclipse 3.5 (Galileo).


  • 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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号