2017/5/17

4.4 build fail

Compiling SDK Stubs: out/target/common/obj/JAVA_LIBRARIES/android_stubs_current_intermediates/classes.jar
rm -rf out/target/common/obj/JAVA_LIBRARIES/android_stubs_current_intermediates/classes
mkdir -p out/target/common/obj/JAVA_LIBRARIES/android_stubs_current_intermediates/classes
find out/target/common/obj/JAVA_LIBRARIES/android_stubs_current_intermediates/src -name "*.java" > \
        out/target/common/obj/JAVA_LIBRARIES/android_stubs_current_intermediates/java-source-list
javac -J-Xmx512M -target 1.7 -Xmaxerrs 9999999 -encoding ascii -bootclasspath "" \
   -g -Xlint:unchecked \
   -extdirs "" -d out/target/common/obj/JAVA_LIBRARIES/android_stubs_current_intermediates/classes \
   \@out/target/common/obj/JAVA_LIBRARIES/android_stubs_current_intermediates/java-source-list \
  || ( rm -rf out/target/common/obj/JAVA_LIBRARIES/android_stubs_current_intermediates/classes ; exit 41 )
out/target/common/obj/JAVA_LIBRARIES/android_stubs_current_intermediates/src/android/telephony/gsm/SmsMessage.java:3: error: modifier static not allowed here
public static class SmsMessage
              ^
手動....

packages/apps/Gallery2/src/com/android/gallery3d/util/LinkedNode.java:59: error: mNext has private access in LinkedNode
            return (T) (node.mNext == mHead ? null : node.mNext);
                            ^
packages/apps/Gallery2/src/com/android/gallery3d/util/LinkedNode.java:59: error: mNext has private access in LinkedNode
            return (T) (node.mNext == mHead ? null : node.mNext);
                                                         ^
packages/apps/Gallery2/src/com/android/gallery3d/util/LinkedNode.java:63: error: mPrev has private access in LinkedNode
            return (T) (node.mPrev == mHead ? null : node.mPrev);
                            ^
packages/apps/Gallery2/src/com/android/gallery3d/util/LinkedNode.java:63: error: mPrev has private access in LinkedNode
            return (T) (node.mPrev == mHead ? null : node.mPrev);
                                                         ^
依照說明,把 private comment 掉...

target Dex: telephony-common
out/host/linux-x86/bin/dx -JXms16M -JXmx2048M --dex --output=out/target/common/obj/JAVA_LIBRARIES/telephony-common_intermediates/classes-with-local.dex     out/target/common/obj/JAVA_LIBRARIES/telephony-common_intermediates/noproguard.classes.jar

UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dex.util.ExceptionWithContext
 at com.android.dex.util.ExceptionWithContext.withContext(ExceptionWithContext.java:45)
 at com.android.dx.dex.cf.CfTranslator.processMethods(CfTranslator.java:371)
 at com.android.dx.dex.cf.CfTranslator.translate0(CfTranslator.java:139)
 at com.android.dx.dex.cf.CfTranslator.translate(CfTranslator.java:94)
 at com.android.dx.command.dexer.Main.processClass(Main.java:682)
 at com.android.dx.command.dexer.Main.processFileBytes(Main.java:634)
 at com.android.dx.command.dexer.Main.access$600(Main.java:78)
 at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:572)
 at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:284)
 at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166)
 at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144)
 at com.android.dx.command.dexer.Main.processOne(Main.java:596)
 at com.android.dx.command.dexer.Main.processAllFiles(Main.java:498)
 at com.android.dx.command.dexer.Main.runMonoDex(Main.java:264)
 at com.android.dx.command.dexer.Main.run(Main.java:230)
 at com.android.dx.command.dexer.Main.main(Main.java:199)
 at com.android.dx.command.Main.main(Main.java:103)
Caused by: java.lang.NullPointerException
 at com.android.dx.cf.code.ConcreteMethod.(ConcreteMethod.java:87)
 at com.android.dx.cf.code.ConcreteMethod.(ConcreteMethod.java:75)
 at com.android.dx.dex.cf.CfTranslator.processMethods(CfTranslator.java:273)
 ... 15 more
...while processing  (Lcom/android/internal/telephony/gsm/GSMPhone;)V
...while processing com/android/internal/telephony/gsm/GSMPhone$1.class

1 error; aborting
make: *** [out/target/common/obj/JAVA_LIBRARIES/telephony-common_intermediates/classes-with-local.dex] Error 1

沒有留言:

張貼留言