SDK initialized in 0 ms
Checking the license for package CMake 3.6.4111459 in /home/tianshaokai/Android/Sdk/licenses
Warning: License for package CMake 3.6.4111459 not accepted.
FAILURE: Build failed with an exception.
What went wrong:
A problem occurred configuring project ':face-detection'.
com.android.builder.sdk.LicenceNotAcceptedException: Failed to install the following Android SDK packages as some licences have not been accepted.
cmake;3.6.4111459 CMake 3.6.4111459
To build this project, accept the SDK license agreements and install the missing components using the Android Studio SDK Manager.
Alternatively, to transfer the license agreements from one workstation to another, see http://d.android.com/r/studio...
Using Android SDK: /home/tianshaokai/Android/Sdk
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 2s
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "build_sdk.py", line 296, in
File "build_sdk.py", line 185, in build_library
File "build_sdk.py", line 23, in execute
raise Fail("Child returned: %s" % retcode)
main.Fail: Child returned: 1
Ubuntu 16.04 LTS
My cmake version 3.13.3