microg / microg/GmsCore

License error.Any solution?(Solved)

Open
#381 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
14.6k
Forks
3.2k
Avg merge
12d 11h
Merged PRs (30d)
4

Description

[ 0% 198/24806] build packages/apps/GmsCore/play-services-core/build/outputs/apk/play-services-core-release-unsigned.apk
FAILED: /bin/bash -c "(rm -Rf packages/apps/GmsCore/play-services-core/build ) && (mkdir -p /home/robin/RR//home/robin/RR/out/target/common/obj/APPS/GmsCore_intermediates ) && (ln -s /home/robin/RR//home/robin/RR/out/target/common/obj/APPS/GmsCore_intermediates /home/robin/RR/packages/apps/GmsCore/play-services-core/build ) && (echo "sdk.dir=" > packages/apps/GmsCore/local.properties ) && (cd packages/apps/GmsCore && git submodule update --recursive --init ) && (cd packages/apps/GmsCore/play-services-core && JAVA_TOOL_OPTIONS=" -Dfile.encoding=UTF8" ../gradlew assembleRelease )"
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
Starting a Gradle Daemon (subsequent builds will be faster)
File /home/robin/.android/repositories.cfg could not be loaded.
Checking the license for package Android SDK Build-Tools 25.0.2 in /home/robin/RR/packages/apps/GmsCore/licenses
Warning: License for package Android SDK Build-Tools 25.0.2 not accepted.
Checking the license for package Android SDK Platform 25 in /home/robin/RR/packages/apps/GmsCore/licenses
Warning: License for package Android SDK Platform 25 not accepted.

FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring project ':microg-ui-tools'.

You have not accepted the license agreements of the following SDK components:
[Android SDK Build-Tools 25.0.2, Android SDK Platform 25].
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

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 1 mins 0.753 secs
[ 0% 198/24806] build packages/apps/FakeStore/fake-store/build/outputs/apk/fake-store-release-unsigned.apk
FAILED: /bin/bash -c "(rm -Rf packages/apps/FakeStore/fake-store/build ) && (mkdir -p /home/robin/RR/out/target/common/obj/APPS/FakeStore_intermediates ) && (ln -s /home/robin/RR/out/target/common/obj/APPS/FakeStore_intermediates packages/apps/FakeStore/fake-store/build ) && (echo "sdk.dir=" > packages/apps/FakeStore/local.properties ) && (cd packages/apps/FakeStore && git submodule update --recursive --init ) && (cd packages/apps/FakeStore/fake-store && JAVA_TOOL_OPTIONS=" -Dfile.encoding=UTF8" ../gradlew assembleRelease )"
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
File /home/robin/.android/repositories.cfg could not be loaded.

FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring project ':fake-store'.

You have not accepted the license agreements of the following SDK components:
[Android SDK Platform 24, Android SDK Build-Tools 24.0.3].
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

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the build commands for packages/apps/GmsCore/play-services-core and packages/apps/FakeStore/fake-store, then inspect the reported Android SDK license checks for Build-Tools 25.0.2, Platform 25, Platform 24, and Build-Tools 24.0.3. Done means both Gradle assembleRelease builds complete without the license failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
build-system, mobile-dev
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.