# Error running Ionic app

**URL:** <https://forum.ionicframework.com/t/error-running-ionic-app/125185>\
**Category:** ionic-v3\
**Created:** [March 19, 2018, 11:09pm UTC](https://forum.ionicframework.com/t/error-running-ionic-app/125185 "2018-03-19T23:09:51Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![zolotoy](https://avatars.discourse-cdn.com/v4/letter/z/6bbea6/32.png) [@zolotoy](https://forum.ionicframework.com/u/zolotoy)\
**Post date:** [March 19, 2018, 11:09pm UTC](https://forum.ionicframework.com/t/error-running-ionic-app/125185/1 "2018-03-19T23:09:51Z")

</div>

I am following this link to learn Ionic:

> **[Ionic 3, Angular 4 and SQLite CRUD Offline Mobile App](https://www.djamware.com/post/59c53a1280aca768e4d2b143/ionic-3-angular-4-and-sqlite-crud-offline-mobile-app)**
>
> Step by step tutorial on how to create an offline mobile app with Ionic 3, Angular 4 and SQLite using Native SQLite Plugin.

**After running ionic cordova run ios I get:**  
(node:13712) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): xcodebuild was not found. Please install version 7.0.0 or greater from App Store  
(node:13712) [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.  
**And for Android I get:**  
(node:10000) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: cmd: Command failed with exit code 1 Error output:  
null  
(node:10000) [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.  
After that I get:  
[OK] Your app has been deployed.  
Did you know you can live-reload changes from your app with --livereload?  
But dont see any emulator.

Any idea?

---

<div class="post-metadata">

**Author:** ![zolotoy](https://avatars.discourse-cdn.com/v4/letter/z/6bbea6/32.png) [@zolotoy](https://forum.ionicframework.com/u/zolotoy)\
**Post date:** [March 19, 2018, 11:37pm UTC](https://forum.ionicframework.com/t/error-running-ionic-app/125185/2 "2018-03-19T23:37:29Z")

</div>

Actually, seems like I got a bit further. After running ionic cordova run and replying with Android I had Emulator running. A few different screens were changing but then I got a popup with error:  
 ![image](https://global.discourse-cdn.com/ionicframework/original/3X/f/c/fc9ee741824075987dbf2978d0139e012de11d80.png)

Any idea?

---

<div class="post-metadata">

**Author:** ![wthijmen](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/wthijmen/32/113686_2.png) [@wthijmen](https://forum.ionicframework.com/u/wthijmen)\
**Post date:** [March 21, 2018, 9:29am UTC](https://forum.ionicframework.com/t/error-running-ionic-app/125185/3 "2018-03-21T09:29:24Z")

</div>

Are you using an older Android device?  
Can you provide ionic info and your device information?

Thanks

---

<div class="post-metadata">

**Author:** ![zolotoy](https://avatars.discourse-cdn.com/v4/letter/z/6bbea6/32.png) [@zolotoy](https://forum.ionicframework.com/u/zolotoy)\
**Post date:** [March 21, 2018, 9:42am UTC](https://forum.ionicframework.com/t/error-running-ionic-app/125185/4 "2018-03-21T09:42:04Z")

</div>

Ionic I think is the latest. Tell me how I can check. As for device I am running emulator, it’s not even going to my device.

---

<div class="post-metadata">

**Author:** ![Sujan12](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/sujan12/32/108395_2.png) [@Sujan12](https://forum.ionicframework.com/u/Sujan12)\
**Post date:** [March 21, 2018, 11:33am UTC](https://forum.ionicframework.com/t/error-running-ionic-app/125185/5 "2018-03-21T11:33:33Z")

</div>

Run `ionic info` in the console of your project and post the output you are getting.

---

<div class="post-metadata">

**Author:** ![zolotoy](https://avatars.discourse-cdn.com/v4/letter/z/6bbea6/32.png) [@zolotoy](https://forum.ionicframework.com/u/zolotoy)\
**Post date:** [March 21, 2018, 11:49am UTC](https://forum.ionicframework.com/t/error-running-ionic-app/125185/6 "2018-03-21T11:49:40Z")

</div>

@ionic/cli-utils : 1.19.2  
ionic (Ionic CLI) : 3.20.0

global packages:

```
cordova (Cordova CLI) : 8.0.0

```

local packages:

```
@ionic/app-scripts : 3.1.8
Cordova Platforms : none
Ionic Framework : ionic-angular 3.9.2

```

System:

```
Node : v8.9.4
npm : 5.6.0
OS : Windows 10

```

Environment Variables:

```
ANDROID_HOME : not set

```

Misc:

```
backend : pro
```

---

<div class="post-metadata">

**Author:** ![Sujan12](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/sujan12/32/108395_2.png) [@Sujan12](https://forum.ionicframework.com/u/Sujan12)\
**Post date:** [March 21, 2018, 11:58am UTC](https://forum.ionicframework.com/t/error-running-ionic-app/125185/7 "2018-03-21T11:58:33Z")

</div>

> [@zolotoy](#):
>
> Cordova Platforms : none

This is strange when you are trying to run it on Android.

What does `cordova platform list` return?

What does `ionic cordova requirements` return?

---

<div class="post-metadata">

**Author:** ![zolotoy](https://avatars.discourse-cdn.com/v4/letter/z/6bbea6/32.png) [@zolotoy](https://forum.ionicframework.com/u/zolotoy)\
**Post date:** [March 21, 2018, 1:58pm UTC](https://forum.ionicframework.com/t/error-running-ionic-app/125185/8 "2018-03-21T13:58:19Z")

</div>

> cordova requirements  
> Android Studio project detected

Requirements check results for android:

Java JDK: installed 1.8.0  
Android SDK: installed true  
Android target: installed android-27,android-26,android-25,android-24,android-23,android-22,android-21  
Gradle: installed d:\Program Files\Android\Android Studio\gradle\gradle-4.1\bin\gradle

Requirements check results for ios:  
Apple macOS: not installed  
Cordova tooling for iOS requires Apple macOS  
(node:12828) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): CordovaError: Some of requirements check failed  
(node:12828) [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.

---

<div class="post-metadata">

**Author:** ![Sujan12](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/sujan12/32/108395_2.png) [@Sujan12](https://forum.ionicframework.com/u/Sujan12)\
**Post date:** [March 29, 2018, 9:46am UTC](https://forum.ionicframework.com/t/error-running-ionic-app/125185/9 "2018-03-29T09:46:05Z")

</div>

Split this topic on March 29, 2018, 9:46am UTC

3 posts were split to a new topic: [com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex](https://forum.ionicframework.com/t/com-android-builder-dexing-dexarchivemergerexception-unable-to-merge-dex/126296)

---

<div class="post-metadata">

**Author:** ![Sujan12](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/sujan12/32/108395_2.png) [@Sujan12](https://forum.ionicframework.com/u/Sujan12)\
**Post date:** [March 29, 2018, 10:01am UTC](https://forum.ionicframework.com/t/error-running-ionic-app/125185/10 "2018-03-29T10:01:56Z")

</div>

Split this topic on March 29, 2018, 10:01am UTC

A post was merged into an existing topic: [com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex](https://forum.ionicframework.com/t/com-android-builder-dexing-dexarchivemergerexception-unable-to-merge-dex/126296)

---

<div class="post-metadata">

**Author:** ![Rupnesh](https://avatars.discourse-cdn.com/v4/letter/r/a88e4f/32.png) [@Rupnesh](https://forum.ionicframework.com/u/Rupnesh)\
**Post date:** [March 29, 2018, 10:21am UTC](https://forum.ionicframework.com/t/error-running-ionic-app/125185/11 "2018-03-29T10:21:19Z")

</div>

Use the below preference in config.xml -  
`<preference name="loadUrlTimeoutValue" value="700000" />`

---

<div class="post-metadata">

**Author:** ![tripurarisingh](https://avatars.discourse-cdn.com/v4/letter/t/a587f6/32.png) [@tripurarisingh](https://forum.ionicframework.com/u/tripurarisingh)\
**Post date:** [March 29, 2018, 11:46am UTC](https://forum.ionicframework.com/t/error-running-ionic-app/125185/12 "2018-03-29T11:46:08Z")

</div>

i implemented . but it’s not working

---

<div class="post-metadata">

**Author:** ![Rupnesh](https://avatars.discourse-cdn.com/v4/letter/r/a88e4f/32.png) [@Rupnesh](https://forum.ionicframework.com/u/Rupnesh)\
**Post date:** [March 29, 2018, 12:04pm UTC](https://forum.ionicframework.com/t/error-running-ionic-app/125185/13 "2018-03-29T12:04:04Z")

</div>

this preference solve my issue of “Connection to the server was unscuccessful”.

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 9:44pm UTC](https://forum.ionicframework.com/t/error-running-ionic-app/125185/14 "2021-07-19T21:44:22Z")

</div>

Closed on July 19, 2021, 9:44pm UTC


