ionic-team / ionic-framework

A powerful cross-platform UI toolkit for building native-quality iOS, Android, and Progressive Web Apps with HTML, CSS, and JavaScript.
https://ionicframework.com
MIT License
50.93k stars 13.51k forks source link

Android vendor.js error when running the debug APK #14519

Closed nawwa closed 5 years ago

nawwa commented 6 years ago

Hello,

Here is my Ionic Info :

cli packages: (/home/nawwa/.nvm/versions/node/v8.9.4/lib/node_modules)

    @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.9
    Cordova Platforms  : android 7.0.0 browser 5.0.3
    Ionic Framework    : ionic-angular 3.9.2

System:

    Android SDK Tools : 26.1.1
    Node              : v8.9.4
    npm               : 5.6.0 
    OS                : Linux 4.11

Environment Variables:

    ANDROID_HOME : /home/nawwa/Android/Sdk

Misc:

    backend : pro

And package.json :


{
  "name": "xxx",
  "version": "0.0.1",
  "author": "Ionic Framework",
  "homepage": "http://ionicframework.com/",
  "private": true,
  "scripts": {
    "clean": "ionic-app-scripts clean",
    "build": "ionic-app-scripts build",
    "lint": "ionic-app-scripts lint",
    "ionic:build": "ionic-app-scripts build",
    "ionic:serve": "ionic-app-scripts serve"
  },
  "dependencies": {
    "@angular/animations": "5.2.9",
    "@angular/common": "5.2.9",
    "@angular/compiler": "5.2.9",
    "@angular/compiler-cli": "5.2.9",
    "@angular/core": "5.2.9",
    "@angular/forms": "5.2.9",
    "@angular/http": "5.2.9",
    "@angular/platform-browser": "5.2.9",
    "@angular/platform-browser-dynamic": "5.2.9",
    "@ionic-native/camera": "4.7.0",
    "@ionic-native/core": "4.7.0",
    "@ionic-native/file": "^4.7.0",
    "@ionic-native/file-transfer": "^4.7.0",
    "@ionic-native/splash-screen": "4.7.0",
    "@ionic-native/status-bar": "4.7.0",
    "@ionic/pro": "1.0.20",
    "@ionic/storage": "^2.1.3",
    "@types/google-maps": "3.2.0",
    "@types/node": "^9.6.5",
    "@types/paho-mqtt": "^1.0.3",
    "@types/zen-observable": "^0.5.3",
    "aws-amplify": "^0.2.15",
    "chart.js": "^2.7.2",
    "cordova-android": "7.0.0",
    "cordova-browser": "^5.0.3",
    "cordova-plugin-device": "^2.0.1",
    "cordova-plugin-file": "^6.0.1",
    "cordova-plugin-file-transfer": "^1.7.1",
    "cordova-plugin-ionic-keyboard": "^2.0.5",
    "cordova-plugin-ionic-webview": "^1.2.0",
    "cordova-plugin-splashscreen": "git+https://github.com/apache/cordova-plugin-splashscreen.git",
    "cordova-plugin-statusbar": "^2.4.2",
    "cordova-plugin-whitelist": "^1.3.3",
    "ionic-angular": "3.9.2",
    "ionicons": "3.0.0",
    "json2csv": "^4.1.2",
    "mysql": "^2.15.0",
    "node-js-marker-clusterer": "^1.0.0",
    "rxjs": "5.5.8",
    "sw-toolbox": "3.6.0",
    "zone.js": "0.8.20"
  },
  "devDependencies": {
    "@ionic/app-scripts": "3.1.9",
    "typescript": "~2.6.2"
  },
  "description": "An Ionic project",
  "cordova": {
    "plugins": {
      "cordova-plugin-whitelist": {},
      "cordova-plugin-device": {},
      "cordova-plugin-splashscreen": {},
      "cordova-plugin-ionic-webview": {},
      "cordova-plugin-ionic-keyboard": {},
      "cordova-plugin-file-transfer": {},
      "cordova-plugin-file": {},
      "cordova-plugin-statusbar": {}
    },
    "platforms": [
      "browser",
      "android"
    ]
  }
}

ionic cordova build android --prod

Then :

My Ionic App is working perfectly on Browser, It's my first time trying to build the app for an Android Device.

This is the exact same error as : https://forum.ionicframework.com/t/vendor-js-error-on-android/99647 This is working well on emulator (Nexus 5) Any Idea ?

Thanks

nivasvarma commented 6 years ago

Did you find the solution for this? Even I am having the same issue. Mine is bit different, when the spinner continue and if I close the app and again open then it is allowing to login

nivasvarma commented 6 years ago

Akhilsahu, is this happening on a specific android version? for me it is happening on the Nougut on my Moto g5 plus

akhilsahu commented 6 years ago

Please share your code if you are not able to login and also check debug window for any errors @nivasvarma

marvinug commented 5 years ago

@nawwa You managed to fix this error I have been stuck for 2 days, the problem is that my application does not run on Android 5 but in 6,7 and 8 it runs like a charm ...

ionitron-bot[bot] commented 5 years ago

This issue has been automatically identified as an Ionic 3 issue. We recently moved Ionic 3 to its own repository. I am moving this issue to the repository for Ionic 3. Please track this issue over there.

If I've made a mistake, and if this issue is still relevant to Ionic 4, please let the Ionic Framework team know!

Thank you for using Ionic!

ionitron-bot[bot] commented 5 years ago

Issue moved to: https://github.com/ionic-team/ionic-v3/issues/633