Android App Generation - Support Android SDK Platform 27

Android App Generation - Support Android SDK Platform 27

  

Hello,

I am trying to build an Android App with a plugin that requires the Android SDK Platform 27.

I added a build-extras.gradle file with the following content:

ext.postBuildExtras = {
    android {
        compileSdkVersion 27
        defaultConfig {
            minSdkVersion 24
            targetSdkVersion 27
        }
    }
}

The App generation returns an error, indicating that the configuration is not ok and that the licence for the Android SDK Platform 27 was not accepted.

[2018-07-27T09:47:30.622Z] [ERROR]
> Configure project :
Configuration 'compile' in project ':' is deprecated. Use 'implementation' instead.
File /root/.android/repositories.cfg could not be loaded.
Checking the license for package Android SDK Platform 27 in /opt/android-sdk-linux/licenses
Warning: License for package Android SDK Platform 27 not accepted.

Can you please look into this, and advise on what I can do to make it work?

Thank you.

CA