Re: [android-building] How to include prebuilt jars using bp in Android P

2018-11-22 Thread Jovanovic, Zoran
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:

[android-building] How to include prebuilt jars using bp in Android P

2018-11-20 Thread Ajay kumar
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

Re: [android-building] How to include prebuilt jars using bp in Android P

2018-09-26 Thread shankar kumar yellapu
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

Re: [android-building] How to include prebuilt jars using bp in Android P

2018-09-26 Thread shankar kumar yellapu
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

Re: [android-building] How to include prebuilt jars using bp in Android P

2018-09-25 Thread 'Dan Willemsen' via Android Building
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 <

Re: [android-building] How to include prebuilt jars using bp in Android P

2018-09-25 Thread 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

Re: [android-building] How to include prebuilt jars using bp in Android P

2018-09-24 Thread 'Dan Willemsen' via Android Building
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

[android-building] How to include prebuilt jars using bp in Android P

2018-09-24 Thread shankar kumar yellapu
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