Fix apps build
am: 42f3a76f00
Change-Id: I335bfc9b17f3564e1d4714706983406374994e7d
This commit is contained in:
commit
ad843bce95
2 changed files with 2 additions and 2 deletions
|
@ -254,7 +254,7 @@ func (a *AndroidApp) aapt2Flags(ctx android.ModuleContext) (flags []string, deps
|
|||
sdkVersion := String(a.deviceProperties.Sdk_version)
|
||||
switch sdkVersion {
|
||||
case "", "current", "system_current", "test_current":
|
||||
sdkVersion = ctx.Config().AppsDefaultVersionName()
|
||||
sdkVersion = proptools.NinjaEscape([]string{ctx.Config().AppsDefaultVersionName()})[0]
|
||||
}
|
||||
|
||||
linkFlags = append(linkFlags, "--min-sdk-version "+sdkVersion)
|
||||
|
|
|
@ -147,5 +147,5 @@ func init() {
|
|||
})
|
||||
}
|
||||
|
||||
hostBinToolVariableWithPrebuilt("Aapt2Cmd", "prebuilt/sdk/tools", "aapt2")
|
||||
hostBinToolVariableWithPrebuilt("Aapt2Cmd", "prebuilts/sdk/tools", "aapt2")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue