2017-02-21 37 views
0

我正在創建構建機器以自動化生成APK。我已經下載了最新的android SDK和NDK並安裝了gradle。但是,當我做gradle assemble我得到這個錯誤:CMake不接受許可協議3.6.3155560

You have not accepted the license agreements of the following SDK components: [CMake 3.6.3155560].

我已經安裝/更新的android-24,內置工具 - 24.0.1,超Android的m2repository,平臺工具。但在試圖android update sdk --no-ui --all -t android-sdk-license,android-sdk-preview-license,遇到錯誤:

Error: Ignoring unknown package filter 'android-sdk-license'

Error: Ignoring unknown package filter 'android-sdk-preview-license'

Warning: The package filter removed all packages. There is nothing to install. Please consider trying to update again without a package filter.

我有yum install cmake但這並沒有幫助。

請幫幫忙。

回答

0

我通過直接安裝CMake解決了這個問題。我無法將許可證傳輸到UNIX構建機器。

這裏是你的CMake使用sdkmanager如何安裝:

sdkmanager --list 

sdkmanager "cmake;3.6.3155560" 

通過獲取可用的軟件包列表