[SOLVED] Wrong build with android

Im trying to test my app in Android but it looks like its not wrapping all dependencies.

Its working fine in web with ‘ionic serve’

Here is my info

Cordova CLI: 6.2.0
Gulp version: CLI version 3.9.1
Gulp local: Local version 3.9.1
Ionic Framework Version: 2.0.0-beta.10
Ionic CLI Version: 2.0.0-beta.32
Ionic App Lib Version: 2.0.0-beta.18
ios-deploy version: 1.8.6
ios-sim version: 5.0.8
OS: Mac OS X El Capitan
Node Version: v4.4.3
Xcode version: Xcode 7.3.1 Build version 7D1014

Any idea ?

UPDATE:

  • Same problem in IOS
  • beta 30 and 31 tested with same problem

did you run gulp build?

Yes, I will try later in other computer

I have just tryied in other computer and same error so I have tryied with a new project. ‘ionic start test --v2’ and it works fine.

The problem must be my app structure ??

. ├── app.ts ├── core │ ├── app.component.ts │ ├── config │ ├── router │ │ └── app.routes.ts │ └── services │ ├── auth.guard.ts │ ├── auth.service.ts │ ├── index.ts │ └── push.service.ts ├── feature │ ├── home │ │ ├── home.component.ts │ │ ├── home.html │ │ ├── home.scss │ │ └── index.ts │ ├── login │ │ ├── index.ts │ │ ├── login.component.ts │ │ ├── login.html │ │ └── login.scss │ └── profile │ ├── index.ts │ ├── profile.component.ts │ ├── profile.html │ ├── profile.scss │ └── profile.service.ts └── theme ├── app.core.scss ├── app.ios.scss ├── app.md.scss ├── app.variables.scss └── app.wp.scss

Why is working in desktop browser ?¿

Its done, it was a problem with de new Angular router, I need to add to my config.xml to allow it with

<allow-navigation href="http://*/*"/>

Thanks !