You have not accepted the license agreements of the following SDK components: [Android SDK Platform 26, Android SDK Build-Tools 26]


#1

Hi,

I’m trying to build a Construct 2 app using a custom facebook cordova plugin, (cranberry game). For the plugin to work I have to include the following strings in the gradle.properties file:

ANDROID_BUILD_TARGET_SDK_VERSION=26
ANDROID_BUILD_TOOLS_VERSION=26
ANDROID_BUILD_SDK_VERSION=26
ANDROID_BUILD_MIN_SDK_VERSION=15

Is there a way to find out what version of these cocoon.io is using? I don’t see anything in the documentation. With the current settings, I’m getting these errors:

Failed to notify ProjectEvaluationListener.afterEvaluate(), but primary configuration failure takes precedence.
java.lang.RuntimeException: You have not accepted the license agreements of the following SDK components:
[Android SDK Platform 26, Android SDK Build-Tools 26].
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

FAILURE: Build failed with an exception.
* Where:
Build file 'appdirectory-FacebookLib/build.gradle' line: 111
* What went wrong:
A problem occurred evaluating project ':cordova-plugin-share-facebook:FacebookLib'.
> Failed to find target with hash string 'android-26' in: /opt/cocoon_compiler/workspace/production/data/sdks/android-sdks-linux

Thanks


#2

Anyone have experience with this? I’ve tried a lot of the approached outlined here, but no luck so far. https://stackoverflow.com/questions/27617235/android-build-sdk-version-error-with-facebook-sdk


#3

Hello,

This should be solved now.

Sorry for the inconveniences.


#4

Did you add SDK for API level 26 ??


#5

Hi Blue-Sialia,

Thanks for the help. I seem to get past that error now, but it looks like I’m getting a new error now. I believe the solution is on your end but correct me if I’m wrong.

Here’s the error:

* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all dependencies for configuration ':_armv7DebugApk'.
   > Project : declares a dependency from configuration 'debugCompile' to configuration 'debug' which is not declared in the descriptor for project :cordova-plugin-share-facebook:FacebookLib.

According to this, https://stackoverflow.com/questions/33718663/gradle-error-configuration-declares-dependency-which-is-not-declare, the issues is a result of the dependencies. Updating the compile lines should solve the error?


#6

Checking in again on this, like I said I don’t think I can fix this on my end with cocoon.


#7

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.