After upgrading to RC1 " ionic platform add android" fails with these 2 errors:
FAILURE: Build failed with an exception.
- What went wrong:
A problem occurred configuring root project ‘android’.
You have not accepted the license agreements of the following SDK components:
[Android SDK Platform 24].
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
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Failed to install ‘cordova-plugin-console’:Error: /home/project_dir/platforms/android/gradlew: Command failed with exit code 1
at ChildProcess.whenDone (/home/project_dir/platforms/android/cordova/node_modules/cordova-common/src/superspawn.js:169:23)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:877:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
Error: /home/project_dir/platforms/android/gradlew: Command failed with exit code 1
Any ideas how to fix it?