-
-
[求助]AOSP编译报错
-
发表于: 2023-3-12 12:33 5271
-
我的环境如下:
Ubuntu18.04
Openjdk-1.8
10G+300G
Android10.0 PixelXL
报错信息,大概已经跑了80%多
1 个错误
[ 0% 10/18960] //external/apache-xml:apache-xml javac [common]
注: 某些输入文件使用或覆盖了已过时的 API。
注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
注: 某些输入文件使用了未经检查或不安全的操作。
注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
12:17:07 ninja failed with: exit status 1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 | = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = PLATFORM_VERSION_CODENAME = REL PLATFORM_VERSION = 10 TARGET_PRODUCT = aosp_marlin TARGET_BUILD_VARIANT = userdebug TARGET_BUILD_TYPE = release TARGET_ARCH = arm64 TARGET_ARCH_VARIANT = armv8 - a TARGET_CPU_VARIANT = kryo TARGET_2ND_ARCH = arm TARGET_2ND_ARCH_VARIANT = armv8 - a TARGET_2ND_CPU_VARIANT = kryo HOST_ARCH = x86_64 HOST_2ND_ARCH = x86 HOST_OS = linux HOST_OS_EXTRA = Linux - 5.4 . 0 - 144 - generic - x86_64 - Ubuntu - 18.04 . 6 - LTS HOST_CROSS_OS = windows HOST_CROSS_ARCH = x86 HOST_CROSS_2ND_ARCH = x86_64 HOST_BUILD_TYPE = release BUILD_ID = QP1A. 191005.007 .A3 OUT_DIR = out PRODUCT_SOONG_NAMESPACES = device / google / marlin vendor / google / camera hardware / google / pixel = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = [ 0 % 5 / 18960 ] Target Java: out / target / common / obj / JAVA_LIBRARIES / com.android.gallery3d.common2_inter 注: packages / apps / Gallery2 / gallerycommon / src / com / android / gallery3d / common / AsyncTaskUtil.java使用了未经检查或不安全的操作。 注: 有关详细信息, 请使用 - Xlint:unchecked 重新编译。 [ 0 % 8 / 18960 ] / / art / tools / ahat:ahat - docs Doclava [linux_glibc common] FAILED: out / soong / .intermediates / art / tools / ahat / ahat - docs / linux_glibc_common / ahat - docs - stubs.srcjar out / soong / .intermediates / art / tools / ahat / ahat - docs / linux_glibc_common / ahat - docs - docs. zip out / soong / .intermediates / art / tools / ahat / ahat - docs / linux_glibc_common / ahat - docs_api.txt out / soong / .intermediates / art / tools / ahat / ahat - docs / linux_glibc_common / ahat - docs_removed.txt rm - rf "out/soong/.intermediates/art/tools/ahat/ahat-docs/linux_glibc_common/out" "out/soong/.intermediates/art/tools/ahat/ahat-docs/linux_glibc_common/srcjars" "out/soong/.intermediates/art/tools/ahat/ahat-docs/linux_glibc_common/stubsDir" && mkdir - p "out/soong/.intermediates/art/tools/ahat/ahat-docs/linux_glibc_common/out" "out/soong/.intermediates/art/tools/ahat/ahat-docs/linux_glibc_common/srcjars" "out/soong/.intermediates/art/tools/ahat/ahat-docs/linux_glibc_common/stubsDir" && out / soong / host / linux - x86 / bin / zipsync - d out / soong / .intermediates / art / tools / ahat / ahat - docs / linux_glibc_common / srcjars - l out / soong / .intermediates / art / tools / ahat / ahat - docs / linux_glibc_common / srcjars / list - f "*.java" && out / soong / host / linux - x86 / bin / soong_javac_wrapper prebuilts / jdk / jdk9 / linux - x86 / bin / javadoc - encoding UTF - 8 @out / soong / .intermediates / art / tools / ahat / ahat - docs / linux_glibc_common / ahat - docs - stubs.srcjar.rsp @out / soong / .intermediates / art / tools / ahat / ahat - docs / linux_glibc_common / srcjars / list - source 1.8 - J - Xmx1600m - J - XX: - OmitStackTraceInFastThrow - XDignore.symbol. file - doclet com.google.doclava.Doclava - docletpath out / soong / host / linux - x86 / framework / jsilver.jar:out / soong / host / linux - x86 / framework / doclava.jar - hdf page.build QP1A. 191005.007 .A3 - $(cat out / build_number.txt) - hdf page.now "$(date -d @$(cat out/build_date.txt) " + % d % b % Y % k: % M ")" - templatedir external / doclava / res / assets / templates - sdk - api out / soong / .intermediates / art / tools / ahat / ahat - docs / linux_glibc_common / ahat - docs_api.txt - removedApi out / soong / .intermediates / art / tools / ahat / ahat - docs / linux_glibc_common / ahat - docs_removed.txt - stubs out / soong / .intermediates / art / tools / ahat / ahat - docs / linux_glibc_common / stubsDir - stubpackages com.android.ahat:com.android.ahat. * - sourcepath art / tools / ahat - d out / soong / .intermediates / art / tools / ahat / ahat - docs / linux_glibc_common / out - quiet && out / soong / host / linux - x86 / bin / soong_zip - write_if_changed - d - o out / soong / .intermediates / art / tools / ahat / ahat - docs / linux_glibc_common / ahat - docs - docs. zip - C out / soong / .intermediates / art / tools / ahat / ahat - docs / linux_glibc_common / out - D out / soong / .intermediates / art / tools / ahat / ahat - docs / linux_glibc_common / out && out / soong / host / linux - x86 / bin / soong_zip - write_if_changed - jar - o out / soong / .intermediates / art / tools / ahat / ahat - docs / linux_glibc_common / ahat - docs - stubs.srcjar - C out / soong / .intermediates / art / tools / ahat / ahat - docs / linux_glibc_common / stubsDir - D out / soong / .intermediates / art / tools / ahat / ahat - docs / linux_glibc_common / stubsDir && rm - rf "out/soong/.intermediates/art/tools/ahat/ahat-docs/linux_glibc_common/srcjars" javadoc: 警告 - 已计划在未来的 JDK 发行版中删除程序包 com.sun.javadoc, com.sun.tools.doclets 及其实现中的旧 Doclet 和 Taglet API。 这些组件在 jdk.javadoc.doclet 中已由新 API 取代。 强烈建议用户移植到新 API。 javadoc: 错误 - 在 doclet 类com.google.doclava.Doclava中, 方法start已抛出异常错误java.lang.reflect.InvocationTargetException java.lang.IllegalStateException: Error loading jar file . at com.google.doclava.JarUtils.jarForClass(JarUtils.java: 47 ) at com.google.doclava.Doclava.writeAssets(Doclava.java: 1144 ) at com.google.doclava.Doclava.start(Doclava.java: 522 ) at java.base / jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base / jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 62 ) at java.base / jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 43 ) at java.base / java.lang.reflect.Method.invoke(Method.java: 564 ) at jdk.javadoc / com.sun.tools.javadoc.main.DocletInvoker.invoke(DocletInvoker.java: 332 ) at jdk.javadoc / com.sun.tools.javadoc.main.DocletInvoker.start(DocletInvoker.java: 211 ) at jdk.javadoc / com.sun.tools.javadoc.main.Start.parseAndExecute(Start.java: 453 ) at jdk.javadoc / com.sun.tools.javadoc.main.Start.begin(Start.java: 238 ) at jdk.javadoc / com.sun.tools.javadoc.main.Start.begin(Start.java: 224 ) at jdk.javadoc / com.sun.tools.javadoc.Main.execute(Main.java: 173 ) at jdk.javadoc / jdk.javadoc.internal.tool.Start.begin(Start.java: 411 ) at jdk.javadoc / jdk.javadoc.internal.tool.Start.begin(Start.java: 340 ) at jdk.javadoc / jdk.javadoc.internal.tool.Main.execute(Main.java: 63 ) at jdk.javadoc / jdk.javadoc.internal.tool.Main.main(Main.java: 52 ) Caused by: java.nio. file .NoSuchFileException: / home / tiger / % E6 % A1 % 8C % E9 % 9D % A2 / android10 / out / soong / host / linux - x86 / framework / doclava.jar at java.base / sun.nio.fs.UnixException.translateToIOException(UnixException.java: 92 ) at java.base / sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java: 111 ) at java.base / sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java: 116 ) at java.base / sun.nio.fs.UnixFileAttributeViews$Basic.readAttributes(UnixFileAttributeViews.java: 55 ) at java.base / sun.nio.fs.UnixFileSystemProvider.readAttributes(UnixFileSystemProvider.java: 145 ) at java.base / sun.nio.fs.LinuxFileSystemProvider.readAttributes(LinuxFileSystemProvider.java: 99 ) at java.base / java.nio. file .Files.readAttributes(Files.java: 1755 ) at java.base / java.util. zip .ZipFile$Source.get(ZipFile.java: 951 ) at java.base / java.util. zip .ZipFile.<init>(ZipFile.java: 216 ) at java.base / java.util. zip .ZipFile.<init>(ZipFile.java: 148 ) at java.base / java.util.jar.JarFile.<init>(JarFile.java: 324 ) at java.base / java.util.jar.JarFile.<init>(JarFile.java: 295 ) at java.base / java.util.jar.JarFile.<init>(JarFile.java: 234 ) at com.google.doclava.JarUtils.jarForClass(JarUtils.java: 45 ) ... 16 more 1 个错误 [ 0 % 10 / 18960 ] / / external / apache - xml:apache - xml javac [common] 注: 某些输入文件使用或覆盖了已过时的 API。 注: 有关详细信息, 请使用 - Xlint:deprecation 重新编译。 注: 某些输入文件使用了未经检查或不安全的操作。 注: 有关详细信息, 请使用 - Xlint:unchecked 重新编译。 12 : 17 : 07 ninja failed with: exit status 1 #### failed to build some targets (13 seconds) #### |
赞赏
他的文章
- [求助]AOSP编译报错 5272
看原图
赞赏
雪币:
留言: