id-building@googlegroups.com on
behalf of Ajay kumar
Sent: Tuesday, November 20, 2018 13:49
To: Android Building
Subject: [android-building] How to include prebuilt jars using bp in Android P
Hi
Added jar file :
this my Android.bp
java_import {
name: "my-services",
jars:
Hi
Added jar file :
this my Android.bp
*java_import {*
* name: "*my-services*",*
* jars: ["*my-services*.jar"],*
* }*
am getting build error :
ninja: error:
'out/target/common/obj/JAVA_LIBRARIES/my-services_intermediates/javalib.jar',
needed by
Hi Dan,
I've given a fresh build, now I'm getting new error as follows:
ninja: error:
'out/target/common/obj/JAVA_LIBRARIES/my-services_intermediates/javalib.jar',
needed by
'out/target/product/mydevice/dex_bootjars/system/framework/arm64/boot.art',
missing and no known rule to make it
Thanks Dan, I did the same It's working fine. Thank you very much.
-Shankar
On Wednesday, September 26, 2018 at 4:37:14 AM UTC+5:30, Dan Willemsen
wrote:
>
> To compile that
> frameworks/base/services/core/java/com/example/sevice/myservice.java file,
> you'd need to add your lib to the libs
To compile that
frameworks/base/services/core/java/com/example/sevice/myservice.java file,
you'd need to add your lib to the libs section of services.core.unboosted
in frameworks/base/services/core/Android.bp.
- Dan
On Tue, Sep 25, 2018 at 10:23 AM shankar kumar yellapu <
Hi Dan,
Thanks for quick reply, But my actual import from
frameworks/base/services/core/java/com/example/sevice/myservice.java is
saying error: package com.my.service.addon does not exist.
If I give mm in frameworks/base/services/myservices/ says build successful.
My Android.bp under
You'll need to define your prebuilt using java_import:
java_import {
name: "my-services",
jars: ["my-services-prebuilt.jar"],
}
You shouldn't need the my-services vs my-services-prebuilt differentiation
like you did with make.
- Dan
On Mon, Sep 24, 2018 at 8:11 AM shankar kumar
Hi,
I'm trying to include a jar in /frameworks/base/services/myservice using bp
. My bp file looks like this:
java_library_static {
name: "my-service",
static_libs: ["my-services-prebuilt"],
}
I've copied my prebuilt jar in the same location with the name
my-services-prebuilt. I'm