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

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

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