diff options
| author | 2023-05-02 21:55:15 +0000 | |
|---|---|---|
| committer | 2023-05-02 21:55:15 +0000 | |
| commit | 9e4c6c9cc762c7e4583d523ae9269ce78d6872fc (patch) | |
| tree | 09d9bd1cb21355e3baffe80921e82dfe39f3d2f5 /java/java.go | |
| parent | 91ac31c160b0204509972ddf250534857b7adb86 (diff) | |
| parent | 3486740cc5ae4bf9f24083237929e1c6f48c37c1 (diff) | |
Merge "Use api_levels_released_versions from starlark"
Diffstat (limited to 'java/java.go')
| -rw-r--r-- | java/java.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/java/java.go b/java/java.go index 0da73281b..d3e74fd1c 100644 --- a/java/java.go +++ b/java/java.go @@ -815,7 +815,10 @@ func (p *librarySdkMemberProperties) PopulateFromVariant(ctx android.SdkMemberCo // If the min_sdk_version was set then add the canonical representation of the API level to the // snapshot. if j.deviceProperties.Min_sdk_version != nil { - canonical := android.ReplaceFinalizedCodenames(ctx.SdkModuleContext().Config(), j.minSdkVersion.String()) + canonical, err := android.ReplaceFinalizedCodenames(ctx.SdkModuleContext().Config(), j.minSdkVersion.String()) + if err != nil { + ctx.ModuleErrorf("%s", err) + } p.MinSdkVersion = proptools.StringPtr(canonical) } |