diff --git a/android/config.go b/android/config.go index 2a7aa288a..eb4e2ab3b 100644 --- a/android/config.go +++ b/android/config.go @@ -1015,12 +1015,18 @@ func (c *config) FinalApiLevels() []ApiLevel { func (c *config) PreviewApiLevels() []ApiLevel { var levels []ApiLevel - for i, codename := range c.PlatformVersionActiveCodenames() { + i := 0 + for _, codename := range c.PlatformVersionActiveCodenames() { + if codename == "REL" { + continue + } + levels = append(levels, ApiLevel{ value: codename, number: i, isPreview: true, }) + i++ } return levels }