diff --git a/android/config.go b/android/config.go index f60991a74..c8e51ab57 100644 --- a/android/config.go +++ b/android/config.go @@ -370,6 +370,7 @@ func loadFromConfigFile(configurable *ProductVariables, filename string) error { } else { // Make a decoder for it jsonDecoder := json.NewDecoder(configFileReader) + jsonDecoder.DisallowUnknownFields() err = jsonDecoder.Decode(configurable) if err != nil { return fmt.Errorf("config file: %s did not parse correctly: %s", filename, err.Error())