target Java: Calculator (out/target/common/obj/APPS/Calculator_intermediates/classes)
out/target/common/obj/APPS/Calculator_intermediates/src/com/android/calculator2/R.java:10: cannot access java.lang.Object
bad class file: java/lang/Object.class(java/lang:Object.class)
unable to access file: corrupted zip file
Please remove or make sure it appears in the correct subdirectory of the classpath.
public final class R {
^
make: *** [out/target/common/obj/APPS/Calculator_intermediates/classes-full-debug.jar] Error 41
http://hi.baidu.com/cmdmac/item/93920ff30164270884d278a4
在网上找了N久也不得其解,重新java1.6 jdk也不行,sudo update-alternatives --config java,sudo update-alternatives --config javac选择sun-java6还是不行,不过终于还是找到点有用东西。
原因是要选择jar的版本,sudo update-alternatives --config jar选择3,java6的就可以了,我的默认的变成了0, /usr/bin/fastjar
选择 路径 优先级 状态
------------------------------------------------------------
0 /usr/bin/fastjar 100 自动模式
1 /usr/bin/fastjar 100 手动模式
2 /usr/lib/jvm/java-1.5.0-sun/bin/jar 53 手动模式
* 3 /usr/lib/jvm.
我自己的情况:
derek@u10:~/ics/ics-4.0.4$ sudo update-alternatives --config jar
There are 2 choices for the alternative jar (providing /usr/bin/jar).
Selection Path Priority Status
------------------------------------------------------------
* 0 /usr/bin/fastjar 100 auto mode
1 /usr/bin/fastjar 100 manual mode
2 /usr/lib/jvm/java-6-oracle/bin/jar 1 manual mode
Press enter to keep the current choice[*], or type selection number: 2