Всем привет. Юзаю кордову под линуксом.
Установил Java и Android Studio
в .bashrc добавил строки
setenv JAVA_HOME /usr/lib/jvm/java-8-oracle/jre/
setenv PATH $JAVA_HOME/bin:$PATH
export PATH=$JAVA_HOME/bin:$PATH
если запускаю echo $JAVA_HOME
вижу /usr/lib/jvm/java-8-oracle
после запуска команды cordova build вижу следующую хреновину
cordova-custom-config: Skipping auto-restore of config file backup(s)
Checking Java JDK and Android SDK versions
ANDROID_SDK_ROOT=undefined (recommended setting)
ANDROID_HOME=/usr/lib/android-sdk (DEPRECATED)
Starting a Gradle Daemon (subsequent builds will be faster)
FAILURE: Build failed with an exception.
* What went wrong:
Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the user guide chapter on the daemon at https://docs.gradle.org/4.4.1/userguide/gradle_daemon.html
Please read the following process output to find out more:
-----------------------
FAILURE: Build failed with an exception.
* What went wrong:
java.lang.ExceptionInInitializerError (no error message)
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
/usr/share/gradle/bin/gradle: Command failed with exit code 1
Как решить проблему ума не дам