Eclipse Upgrade Not Working

后端 未结 11 749
暗喜
暗喜 2020-12-01 18:31

My Eclipse out of the blue stopped building my Android so I removed the old version and have installed Indigo. When I try to import an Android project in I get this error:<

相关标签:
11条回答
  • 2020-12-01 18:36

    I had the same issue and fixed it by following comment number 6 in this page: Issue 42051: Subversion folder causes NPE in PreCompilerBuilder

    Let me quote the comment:

    Solved it by installing subversion support packages for eclipse:

    http://gan.so/VgYT

    It's still a bug but...

    0 讨论(0)
  • 2020-12-01 18:41

    For also me, the source of the NullPointerException problem was a host-side Junit test project that references (and tests) code from an Android project. It didn't have a project.properties file. I added it and problem got fixed.

    0 讨论(0)
  • 2020-12-01 18:44

    Upgrades did not work for me (on Linux), so I just installed IntelliJ Idea (build 123.155). Had to modify idea.sh to set JDK_HOME=/usr/lib/jvm/jdk1.7.0 (the Oracle JDK) and to select [menu] -- Run -- Run... -- Edit Configurations... -- Target Device -- USB device to make it work with the real device.

    0 讨论(0)
  • 2020-12-01 18:49

    In my case, a branch tool, changed the encode of the file project.properties, I changed the encode to Windows-1265 and the problem was solved.

    0 讨论(0)
  • 2020-12-01 18:50

    same problem here, I closed Eclipse, manually removed any files in folder gen for the project, started Eclipse again, and made a build.

    0 讨论(0)
  • 2020-12-01 18:52

    I found the solution on this website(https://code.google.com/p/android/issues/detail?id=68755)

    So basically, what we should do is : Bring up $ADT_DIR/eclipse/Eclipse.app/Contents/MacOS/eclipse.ini in an editor. Before the -vmargs line, insert these two lines:

    -vm 
    /System/Library/Frameworks/JavaVM.framework/Versions/1.6/Commands/java
    

    you can find the eclipse.ini following this (On a Mac OS X system, you can find eclipse.ini by right-clicking (or Ctrl+click) on the Eclipse executable in Finder, choose Show Package Contents, and then locate eclipse.ini in the MacOS folder under Contents)

    0 讨论(0)
提交回复
热议问题