введите в /home/user/.extend.bashrc такой alias: alias trans='trans :ru'
у меня есть в .bashrc:
на русском
alias transr='trans :ru'
на Польский
alias transp='trans :pl'
на эсперанто
alias transe='trans :eo'
alias transw='trans -l ru -t ru'
пример:
$ transw liberty
liberty
/ˈlibərtē/
свобода
(svoboda)
liberty – определения
[ English -> Русский ]
имя существительное
свобода
freedom, liberty, latitude, play, disengagement, unrestraint
вольности
liberty
вольность
liberty, freedom, licentiousness
воля
will, freedom, volition, pleasure, liberty, purpose
бесцеремонность
presumptuousness, liberty
увольнение на берег
shore leave, liberty
привилегии
privilege, liberties, liberty
sh-4.4$ echo $ANDROID_HOME
/opt/android-sdk
sh-4.4$ echo $JAVA_HOME
sh-4.4$ почему-то выводится пустой результат, так и должно быть?
Попробовал создать новый проект, ошибка не ушла.
Спойлер!
sh-4.4$ tns create MyNewProject
sh-4.4$#
sh-4.4$#
sh-4.4$#
sh-4.4$#
Installing tns-template-hello-world
/srv/http/portfolio/NativeScript/MyNewProject
└─┬ tns-template-hello-world@2.5.0
└── nativescript-theme-core@1.0.2
/srv/http/portfolio/NativeScript/MyNewProject
└─┬ tns-core-modules@2.5.1
└── tns-core-modules-widgets@2.5.0
> nativescript-dev-android-snapshot@0.0.6 postinstall /srv/http/portfolio/NativeScript/MyNewProject/node_modules/nativescript-dev-android-snapshot
> node postinstall.js
/srv/http/portfolio/NativeScript/MyNewProject
└─┬ nativescript-dev-android-snapshot@0.0.6
├── adm-zip@0.4.7
├─┬ nativescript-hook@0.2.1
│ ├─┬ glob@6.0.4
│ │ ├─┬ inflight@1.0.6
│ │ │ └── wrappy@1.0.2
│ │ ├── inherits@2.0.3
│ │ ├─┬ minimatch@3.0.3
│ │ │ └─┬ brace-expansion@1.1.6
│ │ │ ├── balanced-match@0.4.2
│ │ │ └── concat-map@0.0.1
│ │ ├── once@1.4.0
│ │ └── path-is-absolute@1.0.1
│ └─┬ mkdirp@0.5.1
│ └── minimist@0.0.8
├── semver@5.3.0
└── shelljs@0.6.1
Project MyNewProject was successfully created.
sh-4.4$ cd MyNewProject/
sh-4.4$#
sh-4.4$#
sh-4.4$#
sh-4.4$#
sh-4.4$ tns platform add android
sh-4.4$#
sh-4.4$#
sh-4.4$#
sh-4.4$#
Copying template files...
◠ Installing tns-androidInstalling tns-android
/srv/http/portfolio/NativeScript/MyNewProject
└── tns-android@2.5.0
You need to have Android SDK 22 or later and the latest Android Support Repository installed on your system.
Sending exception report (press Ctrl+C to stop).....
sh-4.4$ tns run android
sh-4.4$#
sh-4.4$#
sh-4.4$#
sh-4.4$#
Copying template files...
◟ Installing tns-androidInstalling tns-android
/srv/http/portfolio/NativeScript/MyNewProject
└── tns-android@2.5.0
Exception: The plugin tns-android@2.5.0 is already installed
# run android
┌───────────────────────┬──────────────────────────────────────────────────────────────────────────────────────┐
│ Usage │ Synopsis │
│ Run on all connected │ $ tns run android [--key-store-path <File Path> --key-store-password <Password> - │
│ devices and running │ -key-store-alias <Name> --key-store-alias-password <Password>] [--release] [- │
│ emulators │ -justlaunch] │
│ Run on a selected │ $ tns run android --device <Device ID> [--key-store-path <File Path> --key-store │
│ connected device or │ -password <Password> --key-store-alias <Name> --key-store-alias-password <Password>] │
│ running emulator │ [--release] [--justlaunch] │
│ Start an emulator and │ $ tns run android --emulator [<Emulator Options>] [--key-store-path <File Path> - │
│ run the app inside it │ -key-store-password <Password> --key-store-alias <Name> --key-store-alias-password │
│ │ <Password>] [--release] [--justlaunch] │
└───────────────────────┴──────────────────────────────────────────────────────────────────────────────────────┘
Runs your project on a connected Android device or in a native Android emulator, if configured. This is shorthand for prepare, build and deploy. While your app is running, prints the output from the application in the console and watches for changes in your code. Once a change is detected, it synchronizes the change with all selected devices and restarts/refreshes the application.
### Options
* --no-watch - If set, changes in your code will not be reflected during the execution of this command.
* --device - Specifies a connected device/emulator on which to run the app.
* --emulator - If set, runs the app in a native emulator for the target platform, if configured. When set, you can also set any other valid combination of emulator options as listed by $ tns help emulate android.
* --release - If set, produces a release build. Otherwise, produces a debug build. When set, you must also specify the --key-store-* options.
* --key-store-path - Specifies the file path to the keystore file (P12) which you want to use to code sign your APK. You can use the --key-store-* options along with --release to produce a signed release build. You need to specify all --key-store-* options.
* --key-store-password - Provides the password for the keystore file specified with --key-store-path. You can use the --key-store-* options along with --release to produce a signed release build. You need to specify all --key-store-* options.
* --key-store-alias - Provides the alias for the keystore file specified with --key-store-path. You can use the --key-store-* options along with --release to produce a signed release build. You need to specify all --key-store-* options.
* --key-store-alias-password - Provides the password for the alias specified with --key-store-alias-password. You can use the --key-store-* options along with --release to produce a signed release build. You need to specify all --key-store-* options.
* --justlaunch - If set, does not print the application output in the console.
* --clean - If set, forces rebuilding the native application.
### Attributes
* <Device ID> is the index or name of the target device as listed by $ tns device android
* <Emulator Options> is any valid combination of options as listed by $ tns help emulate android
Sending exception report (press Ctrl+C to stop).....
По ошибке почитал, действительно есть косяк разработчиков с релизом, обещают выпустить обновление на днях. Попробуйте создать новый проект и посмотреть, не уйдет ли ошибка
Нажмите Esc в момент появления заставки и вы увидите ход загрузки (возможно поможет определить виновника).
Далее следует загрузится в live режиме с установочного диска/флешки и, используя chroot, определить и установить видео-драйверов (MHWD)
<code>sh-4.4$ tns platform add android
Package name must look like: com.company.Name
# platform add
┌────────────────┬─────────────────────────────────────────────────────────────────────────────────────────────┐
│ Usage │ Synopsis │
│ Android latest │ $ tns platform add android [--framework-path <File Path>] [--symlink] [--sdk <API Level>] [ │
│ runtime │ --platform-template <Platform Template>] │
│ Android │ $ tns platform add android[@<Version>] [--framework-path <File Path>] [--symlink] [--sdk │
│ selected │ <API Level>] [--platform-template <Platform Template>] │
│ runtime │ │
└────────────────┴─────────────────────────────────────────────────────────────────────────────────────────────┘
Configures the current project to target the selected platform.
### Options
* --framework-path - Sets the path to a NativeScript runtime for the specified platform that you want to use instead of the default runtime. If --symlink is specified, <File Path> must point to directory in which the runtime is already extracted. If --symlink is not specified, <File Path> must point to a valid npm package.
* --symlink - Creates a symlink to a NativeScript runtime for the specified platform that you want to use instead of the default runtime. If --frameworkPath is specified, creates a symlink to the specified directory. If --frameworkPath is not specified, creates a symlink to platform runtime installed with your current version of NativeScript.
* --sdk - Sets the target Android SDK for the project.
* --platform-template - Sets the platform template that will be used for the native application.
### Attributes
* <API Level> is a valid Android API level. For example: 17, 19, MNC.
* <File Path> is the complete path to a valid npm package or a directory that contains a NativeScript runtime for the selected platform.
* <Platform Template> is a valid npm package, path to directory, .tgz or GitHub URL that contains a native Android or iOS template.
* <Version> is any available version of the respective platform runtime published in npm.
Sending exception report (press Ctrl+C to stop).....</code>
А если не убирать это свойство ««id»: «org.nativescript.MyApp»», то остается старая ошибка.
Возможно что-то, я не правильно понял (плохо понимаю английский), или редактировал package.json не в том месте, так я редактировал его именно в своем проекте MyApp. Поэтому есть предположения, что автор этого поста имел ввиду глобальный package.json, но не написал об этом потому-что это ему показалось и так очевидно. Если это так то мне нужно знать где его найти и не приведёт ли это к непредсказуемому поведению, в случаи ошибки?
Copying template files...
◜ Installing tns-androidInstalling tns-android
/srv/http/portfolio/NativeScript/MyApp
└── tns-android@2.5.0
◜ Installing tns-android
Exception: The plugin tns-android@2.5.0 is already installed
# run android
┌───────────────────────┬──────────────────────────────────────────────────────────────────────────────────────┐
│ Usage │ Synopsis │
│ Run on all connected │ $ tns run android [--key-store-path <File Path> --key-store-password <Password> - │
│ devices and running │ -key-store-alias <Name> --key-store-alias-password <Password>] [--release] [- │
│ emulators │ -justlaunch] │
│ Run on a selected │ $ tns run android --device <Device ID> [--key-store-path <File Path> --key-store │
│ connected device or │ -password <Password> --key-store-alias <Name> --key-store-alias-password <Password>] │
│ running emulator │ [--release] [--justlaunch] │
│ Start an emulator and │ $ tns run android --emulator [<Emulator Options>] [--key-store-path <File Path> - │
│ run the app inside it │ -key-store-password <Password> --key-store-alias <Name> --key-store-alias-password │
│ │ <Password>] [--release] [--justlaunch] │
└───────────────────────┴──────────────────────────────────────────────────────────────────────────────────────┘
Runs your project on a connected Android device or in a native Android emulator, if configured. This is shorthand for prepare, build and deploy. While your app is running, prints the output from the application in the console and watches for changes in your code. Once a change is detected, it synchronizes the change with all selected devices and restarts/refreshes the application.
### Options
* --no-watch - If set, changes in your code will not be reflected during the execution of this command.
* --device - Specifies a connected device/emulator on which to run the app.
* --emulator - If set, runs the app in a native emulator for the target platform, if configured. When set, you can also set any other valid combination of emulator options as listed by $ tns help emulate android.
* --release - If set, produces a release build. Otherwise, produces a debug build. When set, you must also specify the --key-store-* options.
* --key-store-path - Specifies the file path to the keystore file (P12) which you want to use to code sign your APK. You can use the --key-store-* options along with --release to produce a signed release build. You need to specify all --key-store-* options.
* --key-store-password - Provides the password for the keystore file specified with --key-store-path. You can use the --key-store-* options along with --release to produce a signed release build. You need to specify all --key-store-* options.
* --key-store-alias - Provides the alias for the keystore file specified with --key-store-path. You can use the --key-store-* options along with --release to produce a signed release build. You need to specify all --key-store-* options.
* --key-store-alias-password - Provides the password for the alias specified with --key-store-alias-password. You can use the --key-store-* options along with --release to produce a signed release build. You need to specify all --key-store-* options.
* --justlaunch - If set, does not print the application output in the console.
* --clean - If set, forces rebuilding the native application.
### Attributes
* <Device ID> is the index or name of the target device as listed by $ tns device android
* <Emulator Options> is any valid combination of options as listed by $ tns help emulate android
Sending exception report (press Ctrl+C to stop).....
Я посмотрел у них там на github, есть такая ошибка.
1-вая моя версия, по приоритету
Если суди по тамошнему материалу, я настроил не правильно эти переменные.
Я смотрел в интернете, есть много вариантов создания и вывода данных из этих переменных. Я даже ими пользовался, выводило пустой результат, для ANDROID_HOME и JAVA_HOME.
Но здесь у меня возник вопрос в том, что я не знаю толком bash и соответственно не могу гарантировать, что я получил правильный результат. Поэтому прошу вас указать на то, как правильно проверить работоспособность этих переменных.
Теперь 2-рая версия от ту даже
Нужно удалить tns-android зависимость из package.json. Для этого надо убрать одно свойства из подобъекта «dependencies: { }», под название ««tns-android»: "^2.5.0",» и ещё одну запись android, уже из другого подобъекта «nativescript: { }».
Но в подобъекте «dependencies: { }» есть только одно свойство ««id»: «org.nativescript.MyApp»». На всякий случай, я попробовал его полностью удалить.
После чего по инструкции очистил кеш NPM
npm cache clear
Повторно установить платформу.
tns platform add android
В результате этот способ у меня не прокатил. Начал жаловаться: "Package name must look like: com.company.Name", после ввоода команды tns platform add android. И из этого я понял, что нужно всё-таки ««id»: «здесь что-то указать»».
А если запустить «tns run android» (без ключа --emulator) с запущенной машиной Genymotion?
Похоже что скрипт запуска не может найти что-то, вот пока не пойму что ему нужно.
Как вариант, если эта команда тоже с ошибкой завершится, можно отписаться на официальный форум по NS…
1. Проверьте, запускается ли android sdk по команде «android» в консоли.
2. Проверьте, что у вас установлена adb и она работает. Можно выполнить команду «adb devices» с подключенным телефоном или запущенным эмулятором.
Отпишитесь по результатам, если не сложно.
<code>sh-4.4$ tns run android --emulator
Copying template files...
◝ Installing tns-androidInstalling tns-android
◜ Installing tns-android[..................] / normalizeTr ◠ Installing tns-android[..................] / normalizeTr ◝ Installing tns-android[..................] / normalizeTr ◞ Installing tns-android[..................] \ normalizeTr ◡ Installing tns-android[ ..............] \ loadRequest ◟ Installing tns-android[ ..............] \ loadRequest ◜ Installing tns-android[ ..............] \ loadRequest ◠ Installing tns-android[ ..............] \ loadRequest ◝ Installing tns-android[ ..............] \ loadRequest ◞ Installing tns-android[ ..............] \ loadRequest ◡ Installing tns-android[ ...........] \ loadRequest ◟ Installing tns-android[ .....] - extract:tns ◜ Installing tns-android[ .....] \ extract:tns ◠ Installing tns-android[ .....] / extract:tns ◝ Installing tns-android[ .....] / extract:tns ◞ Installing tns-android[ .....] / extract:tns ◡ Installing tns-android[ .....] - extract:tns ◟ Installing tns-android[ .....] - extract:tns ◜ Installing tns-android[ .....] - extract:tns ◠ Installing tns-android[ .....] | extract:tns ◝ Installing tns-android[ .....] | extract:tns ◞ Installing tns-android[ ...] \ remove:tns-/srv/http/portfolio/NativeScript/MyApp
└── tns-android@2.5.0
◡ Installing tns-android
Exception: The plugin tns-android@2.5.0 is already installed
# run android
┌───────────────┬────────────────────────────────────────┐
│ Usage │ Synopsis │
│ Run on all │ $ tns run android [--key-store-path │
│ connected │ <File Path> --key-store-password │
│ devices and │ <Password> --key-store-alias <Name> - │
│ running │ -key-store-alias-password <Password>] │
│ emulators │ [--release] [--justlaunch] │
│ Run on a │ $ tns run android --device <Device ID> │
│ selected │ [--key-store-path <File Path> --key │
│ connected │ -store-password <Password> --key-store │
│ device or │ -alias <Name> --key-store-alias │
│ running │ -password <Password>] [--release] [- │
│ emulator │ -justlaunch] │
│ Start an │ $ tns run android --emulator [ │
│ emulator and │ <Emulator Options>] [--key-store-path │
│ run the app │ <File Path> --key-store-password │
│ inside it │ <Password> --key-store-alias <Name> - │
│ │ -key-store-alias-password <Password>] │
│ │ [--release] [--justlaunch] │
└───────────────┴────────────────────────────────────────┘
Runs your project on a connected Android device or in a native Android emulator, if configured. This is shorthand for prepare, build and deploy. While your app is running, prints the output from the application in the console and watches for changes in your code. Once a change is detected, it synchronizes the change with all selected devices and restarts/refreshes the application.
### Options
* --no-watch - If set, changes in your code will not be reflected during the execution of this command.
* --device - Specifies a connected device/emulator on which to run the app.
* --emulator - If set, runs the app in a native emulator for the target platform, if configured. When set, you can also set any other valid combination of emulator options as listed by $ tns help emulate android.
* --release - If set, produces a release build. Otherwise, produces a debug build. When set, you must also specify the --key-store-* options.
* --key-store-path - Specifies the file path to the keystore file (P12) which you want to use to code sign your APK. You can use the --key-store-* options along with --release to produce a signed release build. You need to specify all --key-store-* options.
* --key-store-password - Provides the password for the keystore file specified with --key-store-path. You can use the --key-store-* options along with --release to produce a signed release build. You need to specify all --key-store-* options.
* --key-store-alias - Provides the alias for the keystore file specified with --key-store-path. You can use the --key-store-* options along with --release to produce a signed release build. You need to specify all --key-store-* options.
* --key-store-alias-password - Provides the password for the alias specified with --key-store-alias-password. You can use the --key-store-* options along with --release to produce a signed release build. You need to specify all --key-store-* options.
* --justlaunch - If set, does not print the application output in the console.
* --clean - If set, forces rebuilding the native application.
### Attributes
* <Device ID> is the index or name of the target device as listed by $ tns device android
* <Emulator Options> is any valid combination of options as listed by $ tns help emulate android
Sending exception report (press Ctrl+C to stop).....</code>
А вот тоже самое, но со стандартным эмулятором:
1)
tns update
<code>sh-4.4$ tns update
Succsessfully removed plugin tns-core-modules
Succsessfully removed plugin tns-core-modules-widgets
> nativescript-dev-android-snapshot@0.0.6 postinstall /srv/http/portfolio/NativeScript/MyApp/node_modules/nativescript-dev-android-snapshot
> node postinstall.js
/srv/http/portfolio/NativeScript/MyApp
├─┬ nativescript-dev-android-snapshot@0.0.6
│ ├── adm-zip@0.4.7
│ ├─┬ nativescript-hook@0.2.1
│ │ ├─┬ glob@6.0.4
│ │ │ ├─┬ inflight@1.0.6
│ │ │ │ └── wrappy@1.0.2
│ │ │ ├── inherits@2.0.3
│ │ │ ├─┬ minimatch@3.0.3
│ │ │ │ └─┬ brace-expansion@1.1.6
│ │ │ │ ├── balanced-match@0.4.2
│ │ │ │ └── concat-map@0.0.1
│ │ │ ├── once@1.4.0
│ │ │ └── path-is-absolute@1.0.1
│ │ └─┬ mkdirp@0.5.1
│ │ └── minimist@0.0.8
│ ├── semver@5.3.0
│ └── shelljs@0.6.1
├── nativescript-theme-core@1.0.2
└── tns-android@2.5.0
/srv/http/portfolio/NativeScript/MyApp
└─┬ tns-core-modules@2.5.1
└── tns-core-modules-widgets@2.5.0
Successfully installed plugin tns-core-modules.
sh-4.4$ tns run android --geny em
Copying template files...
◞ Installing tns-androidInstalling tns-android
◝ Installing tns-android[..................] / normalizeT ◞ Installing tns-android[..................] / normalizeT ◡ Installing tns-android[..................] / normalizeT ◟ Installing tns-android[..................] \ normalizeT ◜ Installing tns-android[ ..............] \ loadReques ◠ Installing tns-android[ ..............] \ loadReques ◝ Installing tns-android[ ..............] \ loadReques ◞ Installing tns-android[ ..............] \ loadReques ◡ Installing tns-android[ ..............] \ loadReques ◟ Installing tns-android[ ..............] \ loadReques ◜ Installing tns-android[ ..............] \ loadReques ◠ Installing tns-android[ ..............] \ loadReques ◝ Installing tns-android[ ..............] \ loadReques ◞ Installing tns-android[ ..............] \ loadReques ◡ Installing tns-android[ ........] / diffTrees: ◟ Installing tns-android[ .....] - extract:tn ◜ Installing tns-android[ .....] | extract:tn ◠ Installing tns-android[ .....] / extract:tn ◝ Installing tns-android[ .....] / extract:tn ◞ Installing tns-android[ .....] / extract:tn ◡ Installing tns-android[ .....] / extract:tn ◟ Installing tns-android[ .....] / extract:tn ◜ Installing tns-android[ .....] / extract:tn ◠ Installing tns-android[ .....] - extract:tn ◝ Installing tns-android[ .....] - extract:tn ◞ Installing tns-android[ .....] - extract:tn ◡ Installing tns-android[ .....] - extract:tn ◟ Installing tns-android[ .....] | extract:tn ◜ Installing tns-android[ .....] | extract:tn ◠ Installing tns-android[ .....] | extract:tn ◝ Installing tns-android[ .....] | extract:tn ◞ Installing tns-android[ .....] | extract:tn ◡ Installing tns-android[ .....] | extract:tn ◟ Installing tns-android[ .....] | extract:tn ◜ Installing tns-android[ .....] | extract:tn ◠ Installing tns-android[ .....] | extract:tn ◝ Installing tns-android[ .....] | extract:tn ◞ Installing tns-android[ .....] | extract:tn ◡ Installing tns-android[ ...] \ postinstal/srv/http/portfolio/NativeScript/MyApp
└── tns-android@2.5.0
Exception: The plugin tns-android@2.5.0 is already installed
# run android
┌───────────────┬───────────────────────────────────────┐
│ Usage │ Synopsis │
│ Run on all │ $ tns run android [--key-store-path │
│ connected │ <File Path> --key-store-password │
│ devices and │ <Password> --key-store-alias <Name> - │
│ running │ -key-store-alias-password <Password>] │
│ emulators │ [--release] [--justlaunch] │
│ Run on a │ $ tns run android --device <Device ID │
│ selected │ > [--key-store-path <File Path> --key │
│ connected │ -store-password <Password> --key │
│ device or │ -store-alias <Name> --key-store-alias │
│ running │ -password <Password>] [--release] [- │
│ emulator │ -justlaunch] │
│ Start an │ $ tns run android --emulator [ │
│ emulator and │ <Emulator Options>] [--key-store-path │
│ run the app │ <File Path> --key-store-password │
│ inside it │ <Password> --key-store-alias <Name> - │
│ │ -key-store-alias-password <Password>] │
│ │ [--release] [--justlaunch] │
└───────────────┴───────────────────────────────────────┘
Runs your project on a connected Android device or in a native Android emulator, if configured. This is shorthand for prepare, build and deploy. While your app is running, prints the output from the application in the console and watches for changes in your code. Once a change is detected, it synchronizes the change with all selected devices and restarts/refreshes the application.
### Options
* --no-watch - If set, changes in your code will not be reflected during the execution of this command.
* --device - Specifies a connected device/emulator on which to run the app.
* --emulator - If set, runs the app in a native emulator for the target platform, if configured. When set, you can also set any other valid combination of emulator options as listed by $ tns help emulate android.
* --release - If set, produces a release build. Otherwise, produces a debug build. When set, you must also specify the --key-store-* options.
* --key-store-path - Specifies the file path to the keystore file (P12) which you want to use to code sign your APK. You can use the --key-store-* options along with --release to produce a signed release build. You need to specify all --key-store-* options.
* --key-store-password - Provides the password for the keystore file specified with --key-store-path. You can use the --key-store-* options along with --release to produce a signed release build. You need to specify all --key-store-* options.
* --key-store-alias - Provides the alias for the keystore file specified with --key-store-path. You can use the --key-store-* options along with --release to produce a signed release build. You need to specify all --key-store-* options.
* --key-store-alias-password - Provides the password for the alias specified with --key-store-alias-password. You can use the --key-store-* options along with --release to produce a signed release build. You need to specify all --key-store-* options.
* --justlaunch - If set, does not print the application output in the console.
* --clean - If set, forces rebuilding the native application.
### Attributes
* <Device ID> is the index or name of the target device as listed by $ tns device android
* <Emulator Options> is any valid combination of options as listed by $ tns help emulate android
Sending exception report (press Ctrl+C to stop).....</code>
собираются они долго, и не всегда успешно.
не стоит времени на это тратить.
у меня есть в .bashrc:
на русском
alias transr='trans :ru'
на Польский
alias transp='trans :pl'
на эсперанто
alias transe='trans :eo'
alias transw='trans -l ru -t ru'
пример:
$ transw liberty
liberty
/ˈlibərtē/
свобода
(svoboda)
liberty – определения
[ English -> Русский ]
имя существительное
свобода
freedom, liberty, latitude, play, disengagement, unrestraint
вольности
liberty
вольность
liberty, freedom, licentiousness
воля
will, freedom, volition, pleasure, liberty, purpose
бесцеремонность
presumptuousness, liberty
увольнение на берег
shore leave, liberty
привилегии
privilege, liberties, liberty
Попробовал создать новый проект, ошибка не ушла.
По ошибке почитал, действительно есть косяк разработчиков с релизом, обещают выпустить обновление на днях. Попробуйте создать новый проект и посмотреть, не уйдет ли ошибка
Далее следует загрузится в live режиме с установочного диска/флешки и, используя chroot, определить и установить видео-драйверов (MHWD)
Также можно посмотреть журнал загрузки, переустановить необходимые пакеты или обновить всю систему .
Кстати, сегодня вышло обновление manjaro-17_0-rc1
UPD
добавил ссылкиА если не убирать это свойство ««id»: «org.nativescript.MyApp»», то остается старая ошибка.
Возможно что-то, я не правильно понял (плохо понимаю английский), или редактировал package.json не в том месте, так я редактировал его именно в своем проекте MyApp. Поэтому есть предположения, что автор этого поста имел ввиду глобальный package.json, но не написал об этом потому-что это ему показалось и так очевидно. Если это так то мне нужно знать где его найти и не приведёт ли это к непредсказуемому поведению, в случаи ошибки?
Я посмотрел у них там на github, есть такая ошибка.
1-вая моя версия, по приоритету
Если суди по тамошнему материалу, я настроил не правильно эти переменные.
Я смотрел в интернете, есть много вариантов создания и вывода данных из этих переменных. Я даже ими пользовался, выводило пустой результат, для ANDROID_HOME и JAVA_HOME.
Но здесь у меня возник вопрос в том, что я не знаю толком bash и соответственно не могу гарантировать, что я получил правильный результат. Поэтому прошу вас указать на то, как правильно проверить работоспособность этих переменных.
Теперь 2-рая версия от ту даже
Нужно удалить tns-android зависимость из package.json. Для этого надо убрать одно свойства из подобъекта «dependencies: { }», под название ««tns-android»: "^2.5.0",» и ещё одну запись android, уже из другого подобъекта «nativescript: { }».
Но в подобъекте «dependencies: { }» есть только одно свойство ««id»: «org.nativescript.MyApp»». На всякий случай, я попробовал его полностью удалить.
После чего по инструкции очистил кеш NPM
Повторно установить платформу.
В результате этот способ у меня не прокатил. Начал жаловаться: "Package name must look like: com.company.Name", после ввоода команды tns platform add android. И из этого я понял, что нужно всё-таки ««id»: «здесь что-то указать»».
Похоже что скрипт запуска не может найти что-то, вот пока не пойму что ему нужно.
Как вариант, если эта команда тоже с ошибкой завершится, можно отписаться на официальный форум по NS…
2. При запущенном эмуляторе Genymotion.
sh-4.4$ adb devices
При подключено телефоне
sh-4.4$ adb devices
2. Проверьте, что у вас установлена adb и она работает. Можно выполнить команду «adb devices» с подключенным телефоном или запущенным эмулятором.
Отпишитесь по результатам, если не сложно.
1)