Skip to content

Instantly share code, notes, and snippets.

@vovs03
Created July 30, 2018 04:12
Show Gist options
  • Save vovs03/fbd8faa944cb5ce37610a4ed33c7ca54 to your computer and use it in GitHub Desktop.
Save vovs03/fbd8faa944cb5ce37610a4ed33c7ca54 to your computer and use it in GitHub Desktop.
Cordova requirements android

Log

cordova requirements android --verbose answer:

cordova requirements android --verbose
PlatformApi successfully found for platform android
Android Studio project detected
PlatformApi successfully found for platform browser
Running command: avdmanager list target
Command finished with error code ENOENT: avdmanager list,target
Running command: android list target
Command finished with error code ENOENT: android list,target

Requirements check results for android:
Java JDK: installed 1.8.0
Android SDK: not installed 
Failed to find 'ANDROID_HOME' environment variable. Try setting it manually.
Detected 'adb' command at /usr/bin but no 'platform-tools' directory found near.
Try reinstall Android SDK or update your PATH to include valid path to SDK/platform-tools directory.
Android target: not installed 
android: Command failed with exit code ENOENT
Gradle: not installed 
Could not find gradle wrapper within Android SDK. Could not find Android SDK directory.
Might need to install Android SDK or set up 'ANDROID_HOME' env variable.

Requirements check results for browser:
(node:9731) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'forEach' of undefined
    at /usr/local/lib/node_modules/cordova/src/cli.js:397:35
    at Array.map (<anonymous>)
    at /usr/local/lib/node_modules/cordova/src/cli.js:388:68
    at _fulfilled (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:787:54)
    at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:816:30
    at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:749:13)
    at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:557:44
    at flush (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:108:17)
    at process._tickCallback (internal/process/next_tick.js:61:11)
(node:9731) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:9731) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
@vovs03
Copy link
Author

vovs03 commented Jul 30, 2018

Edit ~/.bashrc file

Open file in editor (VSCode)
code ~/.bashrc .

  • Add:
# 2018-07-30 Android path for Cordova
export ANDROID_HOME=/home/keyjoo/Android/Sdk
export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform_tools

Android-SDK install

  • sudo apt-get install android-sdk

cordova requirements android --verbose

Requirements check results for android:
Java JDK: installed 1.8.0
Android SDK: installed true
Android target: not installed   ***
android: Command failed with exit code ENOENT ***
Gradle: installed /usr/share/gradle/bin/gradle

@vovs03
Copy link
Author

vovs03 commented Jul 30, 2018

Уж было порадовался, но!

cordova build android
Android Studio project detected
ANDROID_HOME=/usr/lib/android-sdk
JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
studio
Starting a new Gradle Daemon for this build (subsequent builds will be faster).
:wrapper

BUILD SUCCESSFUL

Total time: 6.463 secs
Subproject Path: CordovaLib
Subproject Path: app
Downloading https://services.gradle.org/distributions/gradle-4.1-all.zip
.......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
Unzipping /home/keyjoo/.gradle/wrapper/dists/gradle-4.1-all/bzyivzo6n839fup2jbap0tjew/gradle-4.1-all.zip to /home/keyjoo/.gradle/wrapper/dists/gradle-4.1-all/bzyivzo6n839fup2jbap0tjew
Set executable permissions for: /home/keyjoo/.gradle/wrapper/dists/gradle-4.1-all/bzyivzo6n839fup2jbap0tjew/gradle-4.1/bin/gradle
Starting a Gradle Daemon (subsequent builds will be faster)
Download https://maven.google.com/com/android/tools/build/gradle/3.0.0/gradle-3.0.0.pom
Download https://maven.google.com/com/android/tools/build/gradle-core/3.0.0/gradle-core-3.0.0.pom
Download https://maven.google.com/com/android/tools/build/builder/3.0.0/builder-3.0.0.pom
Download https://maven.google.com/com/android/tools/lint/lint/26.0.0/lint-26.0.0.pom
Download https://maven.google.com/com/android/tools/external/org-jetbrains/uast/26.0.0/uast-26.0.0.pom
Download https://maven.google.com/com/android/tools/build/gradle-api/3.0.0/gradle-api-3.0.0.pom
Download https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib/1.1.3-2/kotlin-stdlib-1.1.3-2.pom
Download https://jcenter.bintray.com/com/android/tools/build/transform-api/2.0.0-deprecated-use-gradle-api/transform-api-2.0.0-deprecated-use-gradle-api.pom
Download https://maven.google.com/com/android/databinding/compilerCommon/3.0.0/compilerCommon-3.0.0.pom
Download https://jcenter.bintray.com/org/jacoco/org.jacoco.report/0.7.4.201502262128/org.jacoco.report-0.7.4.201502262128.pom
Download https://jcenter.bintray.com/org/jacoco/org.jacoco.core/0.7.4.201502262128/org.jacoco.core-0.7.4.201502262128.pom
Download https://jcenter.bintray.com/org/jacoco/org.jacoco.build/0.7.4.201502262128/org.jacoco.build-0.7.4.201502262128.pom
Download https://jcenter.bintray.com/com/google/protobuf/protobuf-java/3.0.0/protobuf-java-3.0.0.pom
Download https://jcenter.bintray.com/com/google/protobuf/protobuf-parent/3.0.0/protobuf-parent-3.0.0.pom
Download https://maven.google.com/com/android/tools/build/builder-model/3.0.0/builder-model-3.0.0.pom
Download https://maven.google.com/com/android/tools/build/builder-test-api/3.0.0/builder-test-api-3.0.0.pom
Download https://maven.google.com/com/android/tools/sdk-common/26.0.0/sdk-common-26.0.0.pom
Download https://jcenter.bintray.com/com/android/tools/common/26.0.0/common-26.0.0.pom
Download https://jcenter.bintray.com/com/android/tools/build/manifest-merger/26.0.0/manifest-merger-26.0.0.pom
Download https://maven.google.com/com/android/tools/sdklib/26.0.0/sdklib-26.0.0.pom
Download https://jcenter.bintray.com/com/android/tools/ddms/ddmlib/26.0.0/ddmlib-26.0.0.pom
Download https://maven.google.com/com/android/tools/analytics-library/protos/26.0.0/protos-26.0.0.pom
Download https://maven.google.com/com/android/tools/analytics-library/shared/26.0.0/shared-26.0.0.pom
Download https://maven.google.com/com/android/tools/analytics-library/tracker/26.0.0/tracker-26.0.0.pom
Download https://maven.google.com/com/android/tools/build/apksig/3.0.0/apksig-3.0.0.pom
Download https://jcenter.bintray.com/org/eclipse/jdt/core/compiler/ecj/4.6.1/ecj-4.6.1.pom
Download https://maven.google.com/com/android/tools/lint/lint-checks/26.0.0/lint-checks-26.0.0.pom
Download https://maven.google.com/com/android/databinding/baseLibrary/3.0.0/baseLibrary-3.0.0.pom
Download https://jcenter.bintray.com/com/android/tools/dvlib/26.0.0/dvlib-26.0.0.pom
Download https://maven.google.com/com/android/tools/layoutlib/layoutlib-api/26.0.0/layoutlib-api-26.0.0.pom
Download https://jcenter.bintray.com/com/google/code/gson/gson/2.3/gson-2.3.pom
Download https://maven.google.com/com/android/tools/repository/26.0.0/repository-26.0.0.pom
Download https://maven.google.com/com/android/tools/lint/lint-api/26.0.0/lint-api-26.0.0.pom
Download https://jcenter.bintray.com/com/google/errorprone/error_prone_annotations/2.0.18/error_prone_annotations-2.0.18.pom
Download https://jcenter.bintray.com/com/google/errorprone/error_prone_parent/2.0.18/error_prone_parent-2.0.18.pom
Download https://jcenter.bintray.com/com/intellij/annotations/12.0/annotations-12.0.pom
Download https://jcenter.bintray.com/com/android/tools/external/lombok/lombok-ast/0.2.3/lombok-ast-0.2.3.pom
Download https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-reflect/1.1.3-2/kotlin-reflect-1.1.3-2.pom
Download https://maven.google.com/com/android/tools/external/com-intellij/intellij-core/26.0.0/intellij-core-26.0.0.pom
Download https://jcenter.bintray.com/org/jetbrains/trove4j/trove4j/20160824/trove4j-20160824.pom
Download https://maven.google.com/com/android/tools/annotations/26.0.0/annotations-26.0.0.pom
Download https://maven.google.com/com/android/tools/build/gradle/3.0.0/gradle-3.0.0.jar
Download https://maven.google.com/com/android/tools/build/gradle-core/3.0.0/gradle-core-3.0.0.jar
Download https://maven.google.com/com/android/tools/build/builder/3.0.0/builder-3.0.0.jar
Download https://maven.google.com/com/android/tools/lint/lint/26.0.0/lint-26.0.0.jar
Download https://maven.google.com/com/android/tools/lint/lint-checks/26.0.0/lint-checks-26.0.0.jar
Download https://maven.google.com/com/android/tools/lint/lint-api/26.0.0/lint-api-26.0.0.jar
Download https://maven.google.com/com/android/tools/external/org-jetbrains/uast/26.0.0/uast-26.0.0.jar
Download https://maven.google.com/com/android/tools/build/gradle-api/3.0.0/gradle-api-3.0.0.jar
Download https://maven.google.com/com/android/databinding/compilerCommon/3.0.0/compilerCommon-3.0.0.jar
Download https://jcenter.bintray.com/com/android/tools/build/manifest-merger/26.0.0/manifest-merger-26.0.0.jar
Download https://maven.google.com/com/android/tools/sdk-common/26.0.0/sdk-common-26.0.0.jar
Download https://maven.google.com/com/android/tools/sdklib/26.0.0/sdklib-26.0.0.jar
Download https://maven.google.com/com/android/tools/repository/26.0.0/repository-26.0.0.jar
Download https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-reflect/1.1.3-2/kotlin-reflect-1.1.3-2.jar
Download https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib/1.1.3-2/kotlin-stdlib-1.1.3-2.jar
Download https://jcenter.bintray.com/com/android/tools/build/transform-api/2.0.0-deprecated-use-gradle-api/transform-api-2.0.0-deprecated-use-gradle-api.jar
Download https://jcenter.bintray.com/org/jacoco/org.jacoco.report/0.7.4.201502262128/org.jacoco.report-0.7.4.201502262128.jar
Download https://jcenter.bintray.com/org/jacoco/org.jacoco.core/0.7.4.201502262128/org.jacoco.core-0.7.4.201502262128.jar
Download https://maven.google.com/com/android/tools/analytics-library/shared/26.0.0/shared-26.0.0.jar
Download https://maven.google.com/com/android/tools/analytics-library/tracker/26.0.0/tracker-26.0.0.jar
Download https://maven.google.com/com/android/tools/analytics-library/protos/26.0.0/protos-26.0.0.jar
Download https://jcenter.bintray.com/com/google/protobuf/protobuf-java/3.0.0/protobuf-java-3.0.0.jar
Download https://maven.google.com/com/android/tools/build/builder-model/3.0.0/builder-model-3.0.0.jar
Download https://maven.google.com/com/android/tools/build/builder-test-api/3.0.0/builder-test-api-3.0.0.jar
Download https://jcenter.bintray.com/com/android/tools/ddms/ddmlib/26.0.0/ddmlib-26.0.0.jar
Download https://maven.google.com/com/android/tools/layoutlib/layoutlib-api/26.0.0/layoutlib-api-26.0.0.jar
Download https://jcenter.bintray.com/com/android/tools/dvlib/26.0.0/dvlib-26.0.0.jar
Download https://jcenter.bintray.com/com/android/tools/common/26.0.0/common-26.0.0.jar
Download https://maven.google.com/com/android/tools/build/apksig/3.0.0/apksig-3.0.0.jar
Download https://jcenter.bintray.com/org/eclipse/jdt/core/compiler/ecj/4.6.1/ecj-4.6.1.jar
Download https://jcenter.bintray.com/com/android/tools/external/lombok/lombok-ast/0.2.3/lombok-ast-0.2.3.jar
Download https://maven.google.com/com/android/databinding/baseLibrary/3.0.0/baseLibrary-3.0.0.jar
Download https://maven.google.com/com/android/tools/annotations/26.0.0/annotations-26.0.0.jar
Download https://jcenter.bintray.com/com/google/code/gson/gson/2.3/gson-2.3.jar
Download https://jcenter.bintray.com/com/google/errorprone/error_prone_annotations/2.0.18/error_prone_annotations-2.0.18.jar
Download https://jcenter.bintray.com/com/intellij/annotations/12.0/annotations-12.0.jar
Download https://maven.google.com/com/android/tools/external/com-intellij/intellij-core/26.0.0/intellij-core-26.0.0.jar
Download https://jcenter.bintray.com/org/jetbrains/trove4j/trove4j/20160824/trove4j-20160824.jar
Download https://jcenter.bintray.com/com/jfrog/bintray/gradle/gradle-bintray-plugin/1.7.3/gradle-bintray-plugin-1.7.3.pom
Download https://jcenter.bintray.com/com/github/dcendents/android-maven-gradle-plugin/1.5/android-maven-gradle-plugin-1.5.pom
Download https://jcenter.bintray.com/org/codehaus/groovy/modules/http-builder/http-builder/0.7.2/http-builder-0.7.2.pom
Download https://jcenter.bintray.com/org/apache/maven/maven-ant-tasks/2.1.3/maven-ant-tasks-2.1.3.pom
Download https://jcenter.bintray.com/org/apache/maven/maven-parent/19/maven-parent-19.pom
Download https://jcenter.bintray.com/net/sf/json-lib/json-lib/2.3/json-lib-2.3.pom
Download https://jcenter.bintray.com/org/apache/httpcomponents/httpclient/4.2.1/httpclient-4.2.1.pom
Download https://jcenter.bintray.com/net/sourceforge/nekohtml/nekohtml/1.9.16/nekohtml-1.9.16.pom
Download https://jcenter.bintray.com/org/apache/httpcomponents/httpcomponents-client/4.2.1/httpcomponents-client-4.2.1.pom
Download https://jcenter.bintray.com/xml-resolver/xml-resolver/1.2/xml-resolver-1.2.pom
Download https://jcenter.bintray.com/org/apache/apache/3/apache-3.pom
Download https://jcenter.bintray.com/org/apache/httpcomponents/project/6/project-6.pom
Download https://jcenter.bintray.com/org/apache/ant/ant/1.8.0/ant-1.8.0.pom
Download https://jcenter.bintray.com/classworlds/classworlds/1.1-alpha-2/classworlds-1.1-alpha-2.pom
Download https://jcenter.bintray.com/org/apache/ant/ant-parent/1.8.0/ant-parent-1.8.0.pom
Download https://jcenter.bintray.com/org/codehaus/plexus/plexus-container-default/1.0-alpha-9-stable-1/plexus-container-default-1.0-alpha-9-stable-1.pom
Download https://jcenter.bintray.com/org/codehaus/plexus/plexus-containers/1.0.3/plexus-containers-1.0.3.pom
Download https://jcenter.bintray.com/org/codehaus/plexus/plexus-utils/1.5.15/plexus-utils-1.5.15.pom
Download https://jcenter.bintray.com/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom
Download https://jcenter.bintray.com/org/codehaus/plexus/plexus/2.0.2/plexus-2.0.2.pom
Download https://jcenter.bintray.com/org/codehaus/plexus/plexus-interpolation/1.11/plexus-interpolation-1.11.pom
Download https://jcenter.bintray.com/org/apache/maven/maven-artifact/2.2.1/maven-artifact-2.2.1.pom
Download https://jcenter.bintray.com/org/codehaus/plexus/plexus-components/1.1.14/plexus-components-1.1.14.pom
Download https://jcenter.bintray.com/org/apache/maven/maven/2.2.1/maven-2.2.1.pom
Download https://jcenter.bintray.com/org/apache/maven/maven-artifact-manager/2.2.1/maven-artifact-manager-2.2.1.pom
Download https://jcenter.bintray.com/org/apache/maven/maven-parent/11/maven-parent-11.pom
Download https://jcenter.bintray.com/org/apache/apache/5/apache-5.pom
Download https://jcenter.bintray.com/org/apache/maven/maven-model/2.2.1/maven-model-2.2.1.pom
Download https://jcenter.bintray.com/org/apache/maven/maven-project/2.2.1/maven-project-2.2.1.pom
Download https://jcenter.bintray.com/org/apache/maven/maven-settings/2.2.1/maven-settings-2.2.1.pom
Download https://jcenter.bintray.com/org/apache/maven/maven-error-diagnostics/2.2.1/maven-error-diagnostics-2.2.1.pom
Download https://jcenter.bintray.com/org/apache/maven/wagon/wagon-http-lightweight/1.0-beta-6/wagon-http-lightweight-1.0-beta-6.pom
Download https://jcenter.bintray.com/org/apache/maven/wagon/wagon-file/1.0-beta-6/wagon-file-1.0-beta-6.pom
Download https://jcenter.bintray.com/org/apache/maven/wagon/wagon-providers/1.0-beta-6/wagon-providers-1.0-beta-6.pom
Download https://jcenter.bintray.com/org/apache/maven/wagon/wagon/1.0-beta-6/wagon-1.0-beta-6.pom
Download https://jcenter.bintray.com/org/apache/maven/wagon/wagon-provider-api/1.0-beta-6/wagon-provider-api-1.0-beta-6.pom
Download https://jcenter.bintray.com/org/apache/httpcomponents/httpcore/4.2.1/httpcore-4.2.1.pom
Download https://jcenter.bintray.com/org/apache/httpcomponents/httpcomponents-core/4.2.1/httpcomponents-core-4.2.1.pom
Download https://jcenter.bintray.com/commons-beanutils/commons-beanutils/1.8.0/commons-beanutils-1.8.0.pom
Download https://jcenter.bintray.com/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1.pom
Download https://jcenter.bintray.com/org/apache/commons/commons-parent/11/commons-parent-11.pom
Download https://jcenter.bintray.com/org/apache/commons/commons-parent/9/commons-parent-9.pom
Download https://jcenter.bintray.com/commons-lang/commons-lang/2.4/commons-lang-2.4.pom
Download https://jcenter.bintray.com/net/sf/ezmorph/ezmorph/1.0.6/ezmorph-1.0.6.pom
Download https://jcenter.bintray.com/xerces/xercesImpl/2.9.1/xercesImpl-2.9.1.pom
Download https://jcenter.bintray.com/org/apache/ant/ant-launcher/1.8.0/ant-launcher-1.8.0.pom
Download https://jcenter.bintray.com/backport-util-concurrent/backport-util-concurrent/3.1/backport-util-concurrent-3.1.pom
Download https://jcenter.bintray.com/org/apache/maven/maven-repository-metadata/2.2.1/maven-repository-metadata-2.2.1.pom
Download https://jcenter.bintray.com/org/apache/maven/maven-profile/2.2.1/maven-profile-2.2.1.pom
Download https://jcenter.bintray.com/org/apache/maven/maven-plugin-registry/2.2.1/maven-plugin-registry-2.2.1.pom
Download https://jcenter.bintray.com/org/apache/maven/wagon/wagon-http-shared/1.0-beta-6/wagon-http-shared-1.0-beta-6.pom
Download https://jcenter.bintray.com/junit/junit/3.8.1/junit-3.8.1.pom
Download https://jcenter.bintray.com/nekohtml/nekohtml/1.9.6.2/nekohtml-1.9.6.2.pom
Download https://jcenter.bintray.com/nekohtml/xercesMinimal/1.9.6.2/xercesMinimal-1.9.6.2.pom
Download https://jcenter.bintray.com/com/jfrog/bintray/gradle/gradle-bintray-plugin/1.7.3/gradle-bintray-plugin-1.7.3.jar
Download https://jcenter.bintray.com/org/codehaus/groovy/modules/http-builder/http-builder/0.7.2/http-builder-0.7.2.jar
Download https://jcenter.bintray.com/com/github/dcendents/android-maven-gradle-plugin/1.5/android-maven-gradle-plugin-1.5.jar
Download https://jcenter.bintray.com/net/sf/json-lib/json-lib/2.3/json-lib-2.3-jdk15.jar
Download https://jcenter.bintray.com/org/apache/maven/maven-ant-tasks/2.1.3/maven-ant-tasks-2.1.3.jar
Download https://jcenter.bintray.com/net/sourceforge/nekohtml/nekohtml/1.9.16/nekohtml-1.9.16.jar
Download https://jcenter.bintray.com/xml-resolver/xml-resolver/1.2/xml-resolver-1.2.jar
Download https://jcenter.bintray.com/org/apache/ant/ant/1.8.0/ant-1.8.0.jar
Download https://jcenter.bintray.com/org/apache/maven/maven-project/2.2.1/maven-project-2.2.1.jar
Download https://jcenter.bintray.com/org/apache/maven/maven-artifact-manager/2.2.1/maven-artifact-manager-2.2.1.jar
Download https://jcenter.bintray.com/org/apache/maven/maven-error-diagnostics/2.2.1/maven-error-diagnostics-2.2.1.jar
Download https://jcenter.bintray.com/org/apache/maven/maven-settings/2.2.1/maven-settings-2.2.1.jar
Download https://jcenter.bintray.com/org/apache/maven/maven-profile/2.2.1/maven-profile-2.2.1.jar
Download https://jcenter.bintray.com/org/apache/maven/maven-plugin-registry/2.2.1/maven-plugin-registry-2.2.1.jar
Download https://jcenter.bintray.com/org/codehaus/plexus/plexus-container-default/1.0-alpha-9-stable-1/plexus-container-default-1.0-alpha-9-stable-1.jar
Download https://jcenter.bintray.com/classworlds/classworlds/1.1-alpha-2/classworlds-1.1-alpha-2.jar
Download https://jcenter.bintray.com/org/apache/maven/maven-artifact/2.2.1/maven-artifact-2.2.1.jar
Download https://jcenter.bintray.com/org/apache/maven/maven-model/2.2.1/maven-model-2.2.1.jar
Download https://jcenter.bintray.com/org/apache/maven/wagon/wagon-file/1.0-beta-6/wagon-file-1.0-beta-6.jar
Download https://jcenter.bintray.com/org/apache/maven/wagon/wagon-http-lightweight/1.0-beta-6/wagon-http-lightweight-1.0-beta-6.jar
Download https://jcenter.bintray.com/org/apache/maven/wagon/wagon-http-shared/1.0-beta-6/wagon-http-shared-1.0-beta-6.jar
Download https://jcenter.bintray.com/org/apache/maven/wagon/wagon-provider-api/1.0-beta-6/wagon-provider-api-1.0-beta-6.jar
Download https://jcenter.bintray.com/org/apache/maven/maven-repository-metadata/2.2.1/maven-repository-metadata-2.2.1.jar
Download https://jcenter.bintray.com/org/codehaus/plexus/plexus-utils/1.5.15/plexus-utils-1.5.15.jar
Download https://jcenter.bintray.com/org/codehaus/plexus/plexus-interpolation/1.11/plexus-interpolation-1.11.jar
Download https://jcenter.bintray.com/commons-beanutils/commons-beanutils/1.8.0/commons-beanutils-1.8.0.jar
Download https://jcenter.bintray.com/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1.jar
Download https://jcenter.bintray.com/net/sf/ezmorph/ezmorph/1.0.6/ezmorph-1.0.6.jar
Download https://jcenter.bintray.com/commons-lang/commons-lang/2.4/commons-lang-2.4.jar
Download https://jcenter.bintray.com/org/apache/ant/ant-launcher/1.8.0/ant-launcher-1.8.0.jar
Download https://jcenter.bintray.com/xerces/xercesImpl/2.9.1/xercesImpl-2.9.1.jar
Download https://jcenter.bintray.com/backport-util-concurrent/backport-util-concurrent/3.1/backport-util-concurrent-3.1.jar
Download https://jcenter.bintray.com/junit/junit/3.8.1/junit-3.8.1.jar
Download https://jcenter.bintray.com/nekohtml/xercesMinimal/1.9.6.2/xercesMinimal-1.9.6.2.jar
Download https://jcenter.bintray.com/nekohtml/nekohtml/1.9.6.2/nekohtml-1.9.6.2.jar
publishNonDefault is deprecated and has no effect anymore. All variants are now published.
WARNING: The specified Android SDK Build Tools version (23.0.2) is ignored, as it is below the minimum supported version (26.0.2) for Android Gradle Plugin 3.0.0.
Android SDK Build Tools 26.0.2 will be used.
To suppress this warning, remove "buildToolsVersion '23.0.2'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.
Exception while marshalling /usr/lib/android-sdk/build-tools/23.0.2/package.xml. Probably the SDK is read-only
Exception while marshalling /usr/lib/android-sdk/platform-tools/package.xml. Probably the SDK is read-only
Exception while marshalling /usr/lib/android-sdk/tools/package.xml. Probably the SDK is read-only
Exception while marshalling /usr/lib/android-sdk/build-tools/23.0.2/package.xml. Probably the SDK is read-only
Exception while marshalling /usr/lib/android-sdk/platform-tools/package.xml. Probably the SDK is read-only
Exception while marshalling /usr/lib/android-sdk/tools/package.xml. Probably the SDK is read-only
Exception while marshalling /usr/lib/android-sdk/build-tools/23.0.2/package.xml. Probably the SDK is read-only
Exception while marshalling /usr/lib/android-sdk/platform-tools/package.xml. Probably the SDK is read-only
Exception while marshalling /usr/lib/android-sdk/tools/package.xml. Probably the SDK is read-only
File /home/keyjoo/.android/repositories.cfg could not be loaded.
Checking the license for package Android SDK Build-Tools 26.0.2 in /usr/lib/android-sdk/licenses
Warning: License for package Android SDK Build-Tools 26.0.2 not accepted.
Checking the license for package Android SDK Platform 26 in /usr/lib/android-sdk/licenses
Warning: License for package Android SDK Platform 26 not accepted.

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':CordovaLib'.
> You have not accepted the license agreements of the following SDK components:
  [Android SDK Platform 26, Android SDK Build-Tools 26.0.2].
  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.

* Get more help at https://help.gradle.org

BUILD FAILED in 3m 20s
(node:13794) UnhandledPromiseRejectionWarning: Error: /home/keyjoo/tmp/hello/platforms/android/gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':CordovaLib'.
> You have not accepted the license agreements of the following SDK components:
  [Android SDK Platform 26, Android SDK Build-Tools 26.0.2].
  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.

* Get more help at https://help.gradle.org

BUILD FAILED in 3m 20s
    at ChildProcess.whenDone (/home/keyjoo/tmp/hello/platforms/android/cordova/node_modules/cordova-common/src/superspawn.js:169:23)
    at ChildProcess.emit (events.js:182:13)
    at maybeClose (internal/child_process.js:961:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:248:5)
(node:13794) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:13794) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

@vovs03
Copy link
Author

vovs03 commented Jul 30, 2018

братва, это реально необъяснимое чуство, что порой долбишься с настройкой окружения, но... на всё как у всех...
И кажется что за час делаешь только несколько шагов, хотя пройти надо 6 км.... А до результата даже сложно представить сколько ещё надо времени.
Сейчас, сегодня для меня переломный момент, когда получилось создать своё первое АПП без всяких там сайтов-клепатлей .apk.
Час назад выехал на велосипеде, раздумывая что не так у меня в создании билда, были потом тёрки несостыковки с версией эмулятора.... Типо лицензия не подходит. Поехал, отдохнул и потом за 3 минутки новый проект сделал, назвав его HelloLife )) и всё сбилдилось, залил на свой смарт. Да, 1,7 Мб.
Так что дерзайте и держите и держитесь вместе!!!! Ты не один, мы - вместе!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment