I am facing the following error while running an ionic app.
UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): xcodebuild was not found. Please install version 7.0.0 or greater from App Store
(node:6853) 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.
Please help me..
Related
I am using VS code and eslint extension.
Sometimes eslint is crashed with following error:
(node:1615011) 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: 257)
(node:1615011) UnhandledPromiseRejectionWarning: Error: Unhandled method eslint/confirmESLintExecution
at /home/desktop/.vscode-server/extensions/dbaeumer.vscode-eslint-2.1.14/server/out/eslintServer.js:1:53829
at /home/desktop/.vscode-server/extensions/dbaeumer.vscode-eslint-2.1.14/server/out/eslintServer.js:1:54123
at Immediate.<anonymous> (/home/desktop/.vscode-server/extensions/dbaeumer.vscode-eslint-2.1.14/server/out/eslintServer.js:1:54488)
at processImmediate (internal/timers.js:439:21)
(node:1615011) 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: 258)
Why? What is frong and how can I fix it?
Eslint extension:
2.1.14
VSCODE:
Version: 1.52.1 (user setup)
Commit: ea3859d4ba2f3e577a159bc91e3074c5d85c0523
Date: 2020-12-16T16:34:46.910Z
Electron: 9.3.5
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Windows_NT x64 10.0.18363
There is an issue raised on the official GitHub repo regarding this, you can follow up there
https://github.com/microsoft/vscode-eslint/issues/1156
Hello guys Im trying to build my Ionic app but I got the following error, someone could help me? Thanks (Command used: ionic cordova build android)
Installing "ionic-plugin-keyboard" for android
Discovered plugin "cordova-sqlite-storage" in config.xml. Adding it to the project
Installing "cordova-sqlite-storage" for android
installing external dependencies via npm
npm install of external dependencies ok
(node:31485) UnhandledPromiseRejectionWarning: Error: Source path does not exist: resources/android/icon/drawable-hdpi-icon.png
at updatePathInternal (/home/kill/Documents/iapp/ioo/ionic1/platforms/android/cordova/node_modules/cordova-common/src/FileUpdater.js:145:19)
at /home/kill/Documents/iapp/ioo/ionic1/platforms/android/cordova/node_modules/cordova-common/src/FileUpdater.js:223:19
at Array.forEach (<anonymous>)
at Object.updatePaths (/home/kill/Documents/iapp/ioo/ionic1/platforms/android/cordova/node_modules/cordova-common/src/FileUpdater.js:221:33)
at updateIcons (/home/kill/Documents/iapp/ioo/ionic1/platforms/android/cordova/lib/prepare.js:387:17)
at /home/kill/Documents/iapp/ioo/ionic1/platforms/android/cordova/lib/prepare.js:49:9
at _fulfilled (/home/kill/Documents/iapp/ioo/ionic1/platforms/android/cordova/node_modules/q/q.js:854:54)
at /home/kill/Documents/iapp/ioo/ionic1/platforms/android/cordova/node_modules/q/q.js:883:30
at Promise.promise.promiseDispatch (/home/kill/Documents/iapp/ioo/ionic1/platforms/android/cordova/node_modules/q/q.js:816:13)
at /home/kill/Documents/iapp/ioo/ionic1/platforms/android/cordova /node_modules/q/q.js:624:44
(node:31485) 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:31485) [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.
run ionic cordova resources if that doesnt work the go into the resources folder delete the ios and android folders the run ionic cordova resources again and check to see if the files icon.png and splash.png in the resources folder are not corrupt.
(node:7592) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejec
tion id: 1): [object Object]
(node:7592) [DEP0018] DeprecationWarning: Unhandled promise rejections are depre
cated. In the future, promise rejections that are not handled will terminate the
Node.js process with a non-zero exit code.
I am facing these error when I run
ionic cordova build android
Platform: Ionic
Trying to install a plugin, no pluging getting installed.
Following error appears:
ionic cordova plugin add onesignal-cordova-plugin
> cordova plugin add onesignal-cordova-plugin --save
Installing "onesignal-cordova-plugin" for ios
Failed to install 'onesignal-cordova-plugin': Error: EPERM: operation not permitted, chmod '/Users/heptagon/infos/platforms/ios/cordova/version'
at Error (native)
at Object.fs.chmodSync (fs.js:1154:18)
at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:176:24
at Array.map (native)
at callEngineScripts (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:169:17)
at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:311:16
at _fulfilled (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:787:54)
at self.promiseDispatch.done (/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/q/q.js:816:13)
at /usr/local/lib/node_modules/cordova/node_modules/q/q.js:624:44
(node:1127) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: EPERM: operation not permitted, chmod '/Users/{my username is here }/infos/platforms/ios/cordova/version'
Fixed the problem with updating ruby version,it took me weeks to realise this, found the solution here:
How to update Ruby Version 2.0.0 to the latest version in Mac OSX Yosemite?
I'm having a serious problem with Android Gradle,
I created a project, and emulated by Android, this is what happened:
commands:
ionic start simple tabs
cd simple
ionic cordova emulate android
is this a normal response, am I doing something wrong here or not?
[19:02:48] build dev finished in 13.28 s
> cordova run android
You have been opted out of telemetry. To change this, run: cordova telemetry on.
Android Studio project detected
ANDROID_HOME=G:\dl\Android\sdk
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_162
studio
[19:02:53] lint finished in 4.70 s
Starting a Gradle Daemon (subsequent builds will be faster)
:wrapper
BUILD SUCCESSFUL
in 13s
1 actionable task: 1 executed
Subproject Path: CordovaLib
Subproject Path: app
Exception in thread "main"
java.lang.NullPointerException
at org.gradle.wrapper.PathAssembler.getDistName(PathAssembler.java:84)
at org.gradle.wrapper.PathAssembler.getDistribution(PathAssembler.java:40)
at org.gradle.wrapper.Install.createDist(Install.java:44)
at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:107)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
(node:2388) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: cmd: Command failed with exit code 1 Error output:
Exception in thread "main" java.lang.NullPointerException
at org.gradle.wrapper.PathAssembler.getDistName(PathAssembler.java:84)
at org.gradle.wrapper.PathAssembler.getDistribution(PathAssembler.java:40)
at org.gradle.wrapper.Install.createDist(Install.java:44)
at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:107)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
(node:2388) [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.
[OK] Your app has been deployed.
Did you know you can live-reload changes from your app with --livereload?
I had the same problem. I solved it by adding the variable of the Gradle address to the "path" of the system's variables, in my case: "C: \ Gradle \ gradle-4.9 \ bin"