Android 9 compilation error

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Android 9 compilation error

Jump to solution
3,898 Views
aravinthkumarja
Senior Contributor II

While compiling I'm getting below error.

 

[ 0% 3/19796] build out/target/common/obj/JAVA_LIBRARIES/apache-xml_intermediates/dex-hiddenapi/classes.dex
FAILED: out/target/common/obj/JAVA_LIBRARIES/apache-xml_intermediates/dex-hiddenapi/classes.dex
/bin/bash -c "(rm -rf out/target/common/obj/JAVA_LIBRARIES/apache-xml_intermediates/dex-hiddenapi/ ) && (mkdir -p out/target/common/obj/JAVA_LIBRARIES/apache-xml_intermediates/dex-hiddenapi/ ) && (find out/target/common/obj/JAVA_LIBRARIES/apache-xml_intermediates/dex/ -maxdepth 1 -name \"classes*.dex\" | sort | xargs -I{} cp -f {} out/target/common/obj/JAVA_LIBRARIES/apache-xml_intermediates/dex-hiddenapi/ ) && (find out/target/common/obj/JAVA_LIBRARIES/apache-xml_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 04-15 11:55:32 14661 14661 hiddenapi.cc:47] No DEX files specified
hiddenapi E 04-15 11:55:32 14661 14661 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 04-15 11:55:32 14661 14661 hiddenapi.cc:47] Usage: hiddenapi [options]...
hiddenapi E 04-15 11:55:32 14661 14661 hiddenapi.cc:47]
hiddenapi E 04-15 11:55:32 14661 14661 hiddenapi.cc:47] --dex=<filename>: specify dex file whose members' access flags are to be set.
hiddenapi E 04-15 11:55:32 14661 14661 hiddenapi.cc:47] At least one --dex parameter must be specified.
hiddenapi E 04-15 11:55:32 14661 14661 hiddenapi.cc:47]
hiddenapi E 04-15 11:55:32 14661 14661 hiddenapi.cc:47] --light-greylist=<filename>:
hiddenapi E 04-15 11:55:32 14661 14661 hiddenapi.cc:47] --dark-greylist=<filename>:
hiddenapi E 04-15 11:55:32 14661 14661 hiddenapi.cc:47] --blacklist=<filename>: text files with signatures of methods/fields to be marked
hiddenapi E 04-15 11:55:32 14661 14661 hiddenapi.cc:47] greylisted/blacklisted respectively. At least one list must be provided.
hiddenapi E 04-15 11:55:32 14661 14661 hiddenapi.cc:47]
hiddenapi E 04-15 11:55:32 14661 14661 hiddenapi.cc:47] --print-hidden-api: dump a list of marked methods/fields to the standard output.
hiddenapi E 04-15 11:55:32 14661 14661 hiddenapi.cc:47] There is no indication which API category they belong to.
hiddenapi E 04-15 11:55:32 14661 14661 hiddenapi.cc:47]

 

/bin/bash: line 0: [: =: unary operator expected
ninja: build stopped: subcommand failed.

#### failed to build some targets (46 seconds) ####

0 Kudos
Reply
1 Solution
3,880 Views
aravinthkumarja
Senior Contributor II

I have cleaned the module and rebuild its working.

View solution in original post

0 Kudos
Reply
2 Replies
3,881 Views
aravinthkumarja
Senior Contributor II

I have cleaned the module and rebuild its working.

0 Kudos
Reply
3,889 Views
IvanRuiz
NXP Employee
NXP Employee

Hello,

 

You may refer to the following Android User's guide available in the following link for building Android 9: https://www.nxp.com/docs/en/supporting-information/android_P9.0.0_2.3.2_docs.zip

 

BR,

Ivan.

0 Kudos
Reply