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

Hi Carlos,


Did you already surpassed the error?

If not, this could be related with targetSdkVersion 27, which should be configured to API Level 26.


Please find more information here:

https://www.outsystems.com/forums/discussion/35895/api-level-23-to-api-level-26/

https://success.outsystems.com/Support/Enterprise_Customers/Maintenance_and_Operations/Submitting_Android_applications_to_the_Play_Store_starting_August_2018


Best Regards,

Ricardo Marques

OutSystems