any help to setup env to build an empty app with android ?
emulator android OK
ionic serve OK
iOS ok
Android on real device => white screen
The app is just ionic start test blank --type=angular -capacitor
Ionic:
Ionic CLI : 6.16.2 (C:\Users\XXX\AppData\Roaming\npm\node_modules\@ionic\cli)
Ionic Framework : @ionic/angular 6.0.3
@angular-devkit/build-angular : 13.0.4
@angular-devkit/schematics : 13.0.4
@angular/cli : 13.0.4
@ionic/angular-toolkit : 5.0.3
Capacitor:
Capacitor CLI : 3.4.0
@capacitor/android : 3.4.0
@capacitor/core : 3.4.0
@capacitor/ios : not installed
Utility:
cordova-res : 0.15.1
native-run : 1.5.0
System:
NodeJS : v16.13.2 (C:\Program Files\nodejs\node.exe)
npm : 8.1.2
OS : Windows 10
Logcat for KO real device
2022-01-26 02:28:26.519 23033-23033/appId E/Zygote: v2
2022-01-26 02:28:26.520 23033-23033/appId E/Zygote: accessInfo : 0
2022-01-26 02:28:27.044 23033-23033/appId E/chromium: [ERROR:filesystem_posix.cc(89)] stat /data/user/0/appId/cache/WebView/Crashpad: No such file or directory (2)
2022-01-26 02:28:27.044 23033-23033/appId E/chromium: [ERROR:filesystem_posix.cc(62)] mkdir /data/user/0/appId/cache/WebView/Crashpad: No such file or directory (2)
2022-01-26 02:28:27.239 23033-23033/appId E/Capacitor: Unable to read file at path public/plugins
2022-01-26 02:28:27.254 23033-23093/appId E/libEGL: validate_display:99 error 3008 (EGL_BAD_DISPLAY)
2022-01-26 02:28:27.939 23033-23033/appId E/Capacitor/Console: File: http://localhost/ - Line 287 - Msg: SyntaxError: Unexpected token .
2022-01-26 02:28:27.943 23033-23136/appId E/Capacitor: JavaScript Error: {"type":"js.error","error":{"message":"Uncaught SyntaxError: Unexpected token .","url":"http://localhost/vendor.js","line":27056,"col":38,"errorObject":"{}"}}
2022-01-26 02:28:27.944 23033-23033/appId E/Capacitor/Console: File: http://localhost/vendor.js - Line 27056 - Msg: Uncaught SyntaxError: Unexpected token .
2022-01-26 02:29:06.170 23033-23033/appId E/Capacitor/Console: File: http://localhost/home - Line 287 - Msg: SyntaxError: Unexpected token .
2022-01-26 02:29:06.176 23033-23136/appId E/Capacitor: JavaScript Error: {"type":"js.error","error":{"message":"Uncaught SyntaxError: Unexpected token .","url":"http://localhost/vendor.js","line":27056,"col":38,"errorObject":"{}"}}
2022-01-26 02:29:06.177 23033-23033/appId E/Capacitor/Console: File: http://localhost/vendor.js - Line 27056 - Msg: Uncaught SyntaxError: Unexpected token .
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: 'app.component.html',
styleUrls: ['app.component.scss'],
})
export class AppComponent {
constructor() {
console.log("Is there anybody out there ?")
}
}
chrome://inspect/#devices
console
SyntaxError: Unexpected token
Uncaught SyntaxError: Unexpected token .
first error : cap.handleError = err => win.console.error(err);
second error : this._platformLocation.historyGo?.(relativePosition);
ideas ?