microg / GmsCore

Free implementation of Play Services
https://microg.org
Apache License 2.0
8.2k stars 1.69k forks source link

License error.Any solution?(Solved) #381

Open ghost opened 7 years ago

ghost commented 7 years ago

[ 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.

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.

BUILD FAILED

iRave commented 7 years ago

Well, accept the license and build it again... This is an issue with your build environment, not microg. Use something like:

echo yes | android update sdk --no-ui --filter build-tools-25.0.2,build-tools-24.0.3,android-24,...

There might be other tools missing that this command doesn't cover. Just add them after the comma.

For new SDK manager:

yes | sdkmanager "build-tools;24.0.3..."

Alternatively, open the android SDK Manager GUI and install the missing packages from there. It will prompt you to accepted the licenses.

ghost commented 7 years ago

@iRave Hi,If you please tell me ho to solve the issue. https://hastebin.com/udirezipaw.cs

iRave commented 7 years ago

This might be related to issue #291

You try and can run this from the root of your built environment:

mkdir -pv $(readlink packages/apps/*/*/build)

Try resetting your repo first though. Maybe this already solves the problem for you.

ghost commented 7 years ago

@iRave https://hastebin.com/adulucovav.hs Didn't work.I also tried cherry picking from here- http://gerrit.aicp-rom.com/#/q/topic:signature-spoofing but error all the time. :(

corna commented 7 years ago

I think the problem is here, as doc states that the SDK is taken from ANDROID_SDK_HOME but it seems that the variable used is ANDROID_HOME. This causes gradlew to download and use a new SDK in the ANDROID_HOME path (usually empty, which means packages/apps/GmsCore) but it fails, as it doesn't have the license files.

You can:

or