Hello,
I might be NOT understanding something...
Did anyone tried this yet or was successful on building aar library within the AOSP, which can be reused by other apps in the tree?
I had been trying to build my custom aar library in the AOSP build for several weeks, but it doesn't work.
1. With the "make
YourLibName
out/target/common/obj/JAVA_LIBRARIES/
YourLibName
_intermediates/
YourLibName
.aar
", it gives me the following error
Starting build with ninja
ninja: Entering directory `.'
ninja: error: unknown target 'out/target/common/obj/JAVA_LIBRARIES/YourLibName
_intermediates/YourLibName
.aar'
make: *** [ninja_wrapper] Error 1
2. The only thing that works are the following commands
- In the the Library directory:
mm
- In the main directory:
make
YourLibName
3. After the build, the following files get produced
in-out/target/poroduct/.../obj/JAVA_LIBRARIES/YourLibName
_intermediates/
total 5668
rw-rw-r-- 1 sebotor sebotor 2428 Jan 18 07:45 javalib.jar
in-out/target/common/obj/JAVA_LIBRARIES/YourLibName
_intermediates/
total 6064
drwxrwxr-x 4 sebotor sebotor 4096 Jan 18 07:45 classes
-rw-rw-r-- 1 sebotor sebotor 2428 Jan 18 07:45 classes-full-debug.jar
-rw-rw-r-- 1 sebotor sebotor 2428 Jan 18 07:45 classes.jar
-rw-rw-r-- 1 sebotor sebotor 2428 Jan 18 07:45 classes-jarjar.jar
-rw-rw-r-- 1 sebotor sebotor 2428 Jan 18 07:45 javalib.jar
-rw-rw-r-- 1 sebotor sebotor 3930 Jan 18 07:45 proguard_options
-rw-rw-r-- 1 sebotor sebotor 385622 Jan 18 07:45 public_resources.xml
drwxrwxr-x 4 sebotor sebotor 4096 Jan 18 07:45 src
According to the google docs, even if the aar (or zip) is not created and the files are in those directories, I would hope to see something that resembles the documentation:
Am I missing something or mis-understading? Please let me know.
Thank you,
Sebotor