Android IDE (AIDE) Support Forum

Unkown method 'getLocales' of android.content.res.configuration

Someone, please help me…
This my code
public static Locale getLocale(Resources res) {
Configuration config = res.getConfiguration();
return Build.VERSION.SDK_INT >= 24 ? config.getLocales().get(0) : config.locale;
}

For error ? Look at my picture