I always compile the android platform with the following error

asked 2019-01-22 09:10:32 -0500

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-ui/expo...

Using Android SDK: /home/tianshaokai/Android/Sdk

Try: 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 builder.build_library(abi, do_install) File "build_sdk.py", line 185, in build_library execute(["ninja", "install/strip"]) 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 NDK android-ndk-r18b opencv 4.0.1

edit retag flag offensive close merge delete


Are you using on android phone?

supra56 gravatar imagesupra56 ( 2019-01-22 13:11:35 -0500 )edit