Some users have reported one of the following errors in Android package builds:
Failed to install the following SDK components: [Android SDK Platform 26] The SDK directory (/opt/android-sdk) is not writeable, please update the directory permissions.
You have not accepted the license agreements of the following SDK components: [Android SDK Platform 26]. Before building your project, you need to accept the license agreements and complete
the installation of the missing components using the Android Studio SDK Manager.
This most likely means your app has specified an unsupported version of the cordova-android platform. To avoid this, please make sure your package.json and config.xml files contain an explicit version number in the version/spec, meaning no ~ or ^ character.
For cordova-android, we recommend this in config.xml:
<engine name="android" spec="6.2.3" />
And this in package.json (in "dependencies"):