Ionic:
ionic (Ionic CLI) : 4.0.1
Ionic Framework : @ionic/angular 4.0.0-beta.0
@angular-devkit/core : 0.7.0-rc.3
@angular-devkit/schematics : 0.7.0-rc.3
@angular/cli : 6.0.8
@ionic/ng-toolkit : 1.0.0
@ionic/schematics-angular : 1.0.1
Cordova:
cordova (Cordova CLI) : 7.1.0
Cordova Platforms : android 6.3.0
System:
Android SDK Tools : 25.2.5
NodeJS : v8.11.3
npm : 5.10.0
OS : macOS High Sierra
Xcode : Xcode 9.4.1 Build version 9F2000
=============================================
ionic serve…
works fine.
ionic cordova run android…
build without no errors…
But only a blank page on screen.
Using devtools to track, find following:
Navigated to file:///android_asset/www/index.html
index.html:9 The key “viewport-fit” is not recognized and ignored.
index.html:22 GET file:///runtime.js net::ERR_FILE_NOT_FOUND
index.html:22 GET file:///polyfills.js net::ERR_FILE_NOT_FOUND
index.html:22 GET file:///styles.js net::ERR_FILE_NOT_FOUND
index.html:22 GET file:///cordova.js net::ERR_FILE_NOT_FOUND
index.html:22 GET file:///vendor.js net::ERR_FILE_NOT_FOUND
index.html:22 GET file:///main.js net::ERR_FILE_NOT_FOUND
/assets/icon/favicon.png:1 GET file:///assets/icon/favicon.png net::ERR_FILE_NOT_FOUND
Found a <base href=“/” /> in the index.html, which seems to guide the relative url can’t be resolved.
==========================================
Next test:
ionic cordova run android -l
Still a blank page there, but this time the devtools errors changed as:
The key “viewport-fit” is not recognized and ignored.
vendor.js:65004 Uncaught SyntaxError: Unexpected token function