Hi, I am having errors compiling Android 9. 

I already tried building android-9.0.0_r3 and r61 but I get the same error. 

My host is Ubuntu22.04 but I already tried using docker for ubuntu14.04 and 
ubuntu16.04, I also tried to create a virtual machine for ubuntu18.04.

This is the error that I get.

ubuntu18@ubuntu18:~/AOSP_9$ m

============================================

PLATFORM_VERSION_CODENAME=REL

PLATFORM_VERSION=9

TARGET_PRODUCT=aosp_arm

TARGET_BUILD_VARIANT=eng

TARGET_BUILD_TYPE=release

TARGET_ARCH=arm

TARGET_ARCH_VARIANT=armv7-a-neon

TARGET_CPU_VARIANT=generic

HOST_ARCH=x86_64

HOST_2ND_ARCH=x86

HOST_OS=linux

HOST_OS_EXTRA=Linux-5.4.0-84-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=PI

OUT_DIR=out

============================================

ninja: no work to do.

ninja: no work to do.

No need to regenerate ninja file

No need to regenerate ninja file

[  0% 20/2162] build 
out/target/common...ntermediates/dex-hiddenapi/classes.dex

FAILED: 
out/target/common/obj/JAVA_LIBRARIES/ims-common_intermediates/dex-hiddenapi/classes.dex

/bin/bash -c "(rm -rf 
out/target/common/obj/JAVA_LIBRARIES/ims-common_intermediates/dex-hiddenapi/ 
) && (mkdir -p 
out/target/common/obj/JAVA_LIBRARIES/ims-common_intermediates/dex-hiddenapi/ 
) && (find 
out/target/common/obj/JAVA_LIBRARIES/ims-common_intermediates/dex/ 
-maxdepth 1 -name \"classes*.dex\" | sort | xargs -I{} cp -f {} 
out/target/common/obj/JAVA_LIBRARIES/ims-common_intermediates/dex-hiddenapi/ 
) && (find 
out/target/common/obj/JAVA_LIBRARIES/ims-common_intermediates/dex-hiddenapi/ 
-name \"classes*.dex\" | sort | sed 's/^/--dex=/' | xargs 
out/host/linux-x86/bin/hiddenapi 
--light-greylist=out/target/common/obj/PACKAGING/hiddenapi-light-greylist.txt 
--dark-greylist=out/target/common/obj/PACKAGING/hiddenapi-dark-greylist.txt 
--blacklist=out/target/common/obj/PACKAGING/hiddenapi-blacklist.txt )"

hiddenapi E 10-06 10:51:52  2818  2818 hiddenapi.cc:47] No DEX files 
specified

hiddenapi E 10-06 10:51:52  2818  2818 hiddenapi.cc:47] Command: 
out/host/linux-x86/bin/hiddenapi 
--light-greylist=out/target/common/obj/PACKAGING/hiddenapi-light-greylist.txt 
--dark-greylist=out/target/common/obj/PACKAGING/hiddenapi-dark-greylist.txt 
--blacklist=out/target/common/obj/PACKAGING/hiddenapi-blacklist.txt

hiddenapi E 10-06 10:51:52  2818  2818 hiddenapi.cc:47] Usage: hiddenapi 
[options]...

hiddenapi E 10-06 10:51:52  2818  2818 hiddenapi.cc:47]

hiddenapi E 10-06 10:51:52  2818  2818 hiddenapi.cc:47]   --dex=<filename>: 
specify dex file whose members' access flags are to be set.

hiddenapi E 10-06 10:51:52  2818  2818 hiddenapi.cc:47]   At least one 
--dex parameter must be specified.

hiddenapi E 10-06 10:51:52  2818  2818 hiddenapi.cc:47]

hiddenapi E 10-06 10:51:52  2818  2818 hiddenapi.cc:47]   
--light-greylist=<filename>:

hiddenapi E 10-06 10:51:52  2818  2818 hiddenapi.cc:47]   
--dark-greylist=<filename>:

hiddenapi E 10-06 10:51:52  2818  2818 hiddenapi.cc:47]   
--blacklist=<filename>: text files with signatures of methods/fields to be 
marked

hiddenapi E 10-06 10:51:52  2818  2818 hiddenapi.cc:47]   
greylisted/blacklisted 
respectively. At least one list must be provided.

hiddenapi E 10-06 10:51:52  2818  2818 hiddenapi.cc:47]

hiddenapi E 10-06 10:51:52  2818  2818 hiddenapi.cc:47]   
--print-hidden-api: dump a list of marked methods/fields to the standard 
output.

hiddenapi E 10-06 10:51:52  2818  2818 hiddenapi.cc:47]   There is no 
indication which API category they belong to.

hiddenapi E 10-06 10:51:52  2818  2818 hiddenapi.cc:47]

[  1% 37/2162] Proguard: 
out/target/co...eur_intermediates/classes-proguard.jar

ProGuard, version 5.1

Reading system jar 
[/home/ubuntu18/AOSP_9/out/target/common/obj/JAVA_LIBRARIES/core-oj_intermediates/classes-header.jar]

Reading system jar 
[/home/ubuntu18/AOSP_9/out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/classes-header.jar]

Reading system jar 
[/home/ubuntu18/AOSP_9/out/target/common/obj/JAVA_LIBRARIES/ext_intermediates/classes-header.jar]

Reading system jar 
[/home/ubuntu18/AOSP_9/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes-header.jar]

Reading system jar 
[/home/ubuntu18/AOSP_9/out/target/common/obj/JAVA_LIBRARIES/okhttp_intermediates/classes-header.jar]

Reading system jar 
[/home/ubuntu18/AOSP_9/out/target/common/obj/JAVA_LIBRARIES/core-lambda-stubs_intermediates/classes-header.jar]

Reading program jar 
[/home/ubuntu18/AOSP_9/out/target/common/obj/APPS/Traceur_intermediates/classes.jar]

Preparing output jar 
[/home/ubuntu18/AOSP_9/out/target/common/obj/APPS/Traceur_intermediates/classes-proguard.jar]

  Copying resources from program jar 
[/home/ubuntu18/AOSP_9/out/target/common/obj/APPS/Traceur_intermediates/classes.jar]

ninja: build stopped: subcommand failed.

10:52:06 ninja failed with: exit status 1

#### failed to build some targets (35 seconds) #### Any leads will be 
appreciated. Thank you.

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-building/43ccb0ce-1161-4ced-bc22-ce0c6ef450d5n%40googlegroups.com.

Reply via email to