---
title: "Android Compile Error Do not Accept License"
author: "shappy1978"
date: "2017-08-17T19:22:08Z"
tags: []
categories: ["移动开发"]
slug: "android-compile-error-do-not-accept-license"
draft: false
lastmod: "2017-08-17T19:22:08Z"
id: 2390190
url: "https://shappy1978.iteye.com/blog/2390190"
---

Description:

> You have not accepted the license agreements of the following SDK components:

\[Solver for ConstraintLayout 1.0.0-beta4, ConstraintLayout for Android 1.0.0-beta4].

 

Solution:

https://discuss.bitrise.io/t/android-sdk-license-issue/97/2

```
            set -ex
            mkdir -p "${ANDROID_HOME}/licenses"
            echo -e "\n8933bad161af4178b1185d1a37fbf41ea5269c55" > "${ANDROID_HOME}/licenses/android-sdk-license"
            echo -e "\n84831b9409646a918e30573bab4c9c91346d8abd" > "${ANDROID_HOME}/licenses/android-sdk-preview-license"
            echo -e "\nd975f751698a77b662f1254ddbeed3901e976f5a" > "${ANDROID_HOME}/licenses/intel-android-extra-license"
```