NativeScript Gradle Error: You have not accepted the license agreements of the following SDK components
Setelah update NativeScript ke versi terbaru dan mencoba juga untuk update sebuah project, kemudian build, eh ternyata muncullah error, seperti berikut ini lengkapnya:
You have not accepted the license agreements of the following SDK components: [Android SDK Build-Tools 26.2.5, 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. Alternatively, to learn how to transfer the license agreements from one workstation to another, go to http://d.android.com/r/studio-ui/export-licenses.html
Intinya sih gara2 katanya tidak ‘accept’ license nya SDK Android. Tapi aneh juga, perasaan selama ini kalau install SDK di-accept terus. Kemungkinan sih karena terakhir update SDK dari Visual Studio yang otomatis kali ya.
Solusinya adalah buka Android SDK Manager, kemudian hapus build tools semuanya, dan install kembali build tools yang dibutuhkan. Paling gampang sih seperti itu. Dari pengalaman kalau hanya install ulang yang bersangkutan, seperti versi 26.2.5 di atas, tidak berhasil.