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 yellapu <
shankarkumaryel...@gmail.com> wrote:

> 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 getting the following error:
>
> error: frameworks/base/services/my-services/Android.bp:29:1:"my-services"
> depends on undefined module ",my-services-prebuilt"
>
> FYR: my make file in Android O
>
> LOCAL_PATH:= $(call my-dir)
>
> # static jar
> # ============================================================
> include $(CLEAR_VARS)
> LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES :=
> my-services-prebuilt:my-services-prebuilt.jar
> include $(BUILD_MULTI_PREBUILT)
>
> # shared jar
> # ============================================================
> include $(CLEAR_VARS)
> LOCAL_MODULE := my-services
> LOCAL_MODULE_TAGS := optional
> LOCAL_STATIC_JAVA_LIBRARIES := my-services-prebuilt
> include $(BUILD_JAVA_LIBRARY)
> endif
>
>
> Can anybody tell me what I'm doing wrong?? Please send me proper bp script.
>
> Regards,
> Shankar
>
> --
> --
> You received this message because you are subscribed to the "Android
> Building" mailing list.
> To post to this group, send email to android-building@googlegroups.com
> To unsubscribe from this group, send email to
> android-building+unsubscr...@googlegroups.com
> 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 android-building+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to android-building@googlegroups.com
To unsubscribe from this group, send email to
android-building+unsubscr...@googlegroups.com
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 android-building+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to