Android SDK Build-Tools 25.0.1 and Android SDK Platform 25 license problem
I have added GitLab CI configuration file to my repository as described in this article https://about.gitlab.com/2016/11/30/setting-up-gitlab-ci-for-android-projects . But I am getting these warnings:
Checking the license for package Android SDK Build-Tools 25.0.1 in /builds/vecturagames/gpxviewer/tools/licenses Warning: License for package Android SDK Build-Tools 25.0.1 not accepted. Checking the license for package Android SDK Platform 25 in /builds/vecturagames/gpxviewer/tools/licenses Warning: License for package Android SDK Platform 25 not accepted.
And after that it fails with these messages:
FAILURE: Build failed with an exception.
- What went wrong: A problem occurred configuring project ':comcrashlyticssdkandroid_answers'.
You have not accepted the license agreements of the following SDK components: [Android SDK Platform 25, Android SDK Build-Tools 25.0.1]. 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
I am attaching .gitlab-ci.yml file which I am using. .gitlab-ci.yml