diff --git a/android/config.go b/android/config.go index a7a96b7df..04b43acc6 100644 --- a/android/config.go +++ b/android/config.go @@ -1011,12 +1011,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 }