# BluePrint for Android Library Project

#### Here is list of some properties in an android library blueprint

* **name:** The name of the module. This must be unique across all Android.bp files.
* **platform\_apis:** A boolean property that specifies whether the module is using platform APIs. If this property is set to true, then the module can only be used on devices that have the platform APIs installed.
* **srcs:** A list of the source files that are used to build the module. These files can be Java, C++, or resource files.
* **resource\_dirs:** A list of the directories that contain resources that are used by the module. These directories can contain XML files, layout files, drawable files, and other resource files.
* **static\_libs:** A list of the static libraries that are linked to the module. These libraries can be used to provide additional functionality to the module.
* **libs:** A list of the shared libraries that are linked to the module. These libraries can be used to provide additional functionality to the module.
* **manifest:** The path to the AndroidManifest.xml file for the module. This file contains information about the module, such as its permissions and activities.

#### Here is an example Android.bp file

```json
android_library {
    name: "CarLauncher-core",
    platform_apis: true,

    srcs: ["src/**/*.java"],

    resource_dirs: ["res"],

    static_libs: [
        "androidx-constraintlayout_constraintlayout-solver",
        "androidx-constraintlayout_constraintlayout",
        "androidx.lifecycle_lifecycle-extensions",
        "car-media-common",
        "car-telephony-common",
        "car-ui-lib",
        "WindowManager-Shell",
    ],

    libs: ["android.car"],

    manifest: "AndroidManifest.xml",
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://notes.tejpratapsingh.com/_/android-tips/aosp/build/blueprint-for-android-library-project.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
