I am facing an issue with Android.bp file inside the prebuilts/sdk/current. I am able to include the file after downloading the aar file. But my requirement is to include the aar file link in the bp file. The code snippet from the bp file is mentioned below.
Working code
The aar file was copied to the path
android_library_import {
name: "androidx.activity_activity-composelib-nodeps",
aars: ["m2repository/androidx/compose/activity/activity/1.6.1/activity-compose-1.6.1.aar"],
sdk_version: "31",
apex_available: [
"//apex_available:platform",
"//apex_available:anyapex",
],
min_sdk_version: "21",
}
Showing error while including aar file as link [mentioned below]
android_library_import {
name: "androidx.activity_activity-composelib-nodeps",
aars: ["https://maven.google.com/androidx/activity/activity-compose/1.6.1/activity-compose-1.6.1.aar"],
sdk_version: "31",
apex_available: [
"//apex_available:platform",
"//apex_available:anyapex",
],
min_sdk_version: "21",
}
I am expecting the library import directly from the link instead of downloading it to a folder