122452571: Fix path to android.jar in prebuilts

The --android-jar-pattern flag passed to metalava is used to
find all the prebuilts for previous API levels such that
it can compute the exact API level for each class and member.

At some point the prebuilts must have been moved without this
code getting updated.

This fixes
Bug: 122452571: Can't build app with Q prebuilt SDK with minSdkVersion=21
Test: make sdk; inspect api-versions.xml

Change-Id: I25f6203725391dc5404cb8b6049479c9c3da1699
This commit is contained in:
Tor Norbye 2019-01-24 11:05:46 -08:00
parent de4c02f855
commit ebcdfed262
1 changed files with 1 additions and 1 deletions

View File

@ -1500,7 +1500,7 @@ func (d *Droidstubs) collectAPILevelsAnnotationsFlags(ctx android.ModuleContext,
}
}
*implicits = append(*implicits, androidJars...)
flags += " --android-jar-pattern " + t.dir.String() + "/%/android.jar "
flags += " --android-jar-pattern " + t.dir.String() + "/%/public/android.jar "
} else {
ctx.PropertyErrorf("api_levels_annotations_dirs",
"module %q is not a metalava api-levels-annotations dir", ctx.OtherModuleName(m))