- Pri "cordova build" se obevi podobna chyba: "You have not accepted the license agreements of the following SDK components: [Android SDK Platform 26]."
android update sdk --no-ui --filter build-tools-26.0.0,android-26,extra-android-m2repository
- alternativně příkazy
*/tools/bin/sdkmanager --licenses
, kde*
je%ANDROID_HOME%
(win) /$ANDROID_HOME
(ostatní)
- Zdroje:
maven { url 'https://jitpack.io' }
:// Allow plugins to declare Maven dependencies via build-extras.gradle. allprojects { repositories { mavenCentral(); maven { url "https://maven.google.com" } jcenter() maven { url 'https://jitpack.io' } } }
- ...
useVersion('26.0.0')
:configurations.all { resolutionStrategy.eachDependency { DependencyResolveDetails details -> // Pin the support library version so that all libraries use the same one if (details.getRequested().getGroup() == 'com.android.support') { details.useVersion('26.0.0') } } }