Failed to install the following SDK components: [Android SDK Platform 26]

D:\00CS.Proj\iwannamx-app-vrpdev22>ionic cordova emulate android
Running app-scripts build: --platform android --target cordova
[18:10:39] build dev started …
[18:10:39] clean started …
[18:10:39] clean finished in 31 ms
[18:10:39] copy started …
[18:10:40] deeplinks started …
[18:10:40] deeplinks finished in 231 ms
[18:10:40] transpile started …
[18:10:46] transpile finished in 5.96 s
[18:10:46] preprocess started …
[18:10:46] preprocess finished in less than 1 ms
[18:10:46] webpack started …
[18:10:46] copy finished in 6.85 s
[18:10:57] webpack finished in 11.49 s
[18:10:57] sass started …
Without from option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to undefined to prevent this warning.
[18:10:59] sass finished in 1.22 s
[18:10:59] postprocess started …
[18:10:59] postprocess finished in 22 ms
[18:10:59] lint started …
[18:10:59] build dev finished in 19.62 s

cordova emulate android
Preparing Firebase on Android
config.xml build numbers not changed
cordova-android-play-services-gradle-release Failed to find in config.xml
cordova-android-support-gradle-release Failed to find in config.xml
cordova-android-play-services-gradle-release Failed to find in config.xml
cordova-android-support-gradle-release Failed to find in config.xml
ANDROID_HOME=C:\Program Files (x86)\Android\android-sdk
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_161
Reading build config file: D:\00CS.Proj\iwannamx-app-vrpdev22\build.json

Subproject Path: CordovaLib
±----------------------------------------------------------------

| cordova-android-play-services-gradle-release: 11.+
±----------------------------------------------------------------
±----------------------------------------------------------------
| cordova-android-support-gradle-release: 26.+
±----------------------------------------------------------------
The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.

    at build_84fa1eddrxl5ir4rifqmzqpch.run(D:\00CS.Proj\iwannamx-app-vrpdev22\platforms\android\build.gradle:146)

Checking the license for package Android SDK Platform 26 in C:\Program Files (x86)\Android\android-sdk\licenses

License for package Android SDK Platform 26 accepted.
Preparing “Install Android SDK Platform 26”.
Warning: Failed to read or create install properties file.

FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring root project ‘android’.

Failed to install the following SDK components:
[Android SDK Platform 26]
The SDK directory (C:\Program Files (x86)\Android\android-sdk) is not writeable,
please update the directory permissions.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 1.585 secs
(node:8916) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: cmd: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring root project ‘android’.

Failed to install the following SDK components:
[Android SDK Platform 26]
The SDK directory (C:\Program Files (x86)\Android\android-sdk) is not writeable,
please update the directory permissions.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.