Good morning, guys.
I have seen that this issue was already open but I do not see that they resolve it and I have been trying to solve it for 2 days but I still can not.
My application runs like a charm in Chrome and in Android 6,7,8 but in 5 down it loads and everything is fine but it gives me the following “ERROR”, source: http: // localhost: 8080 / build / vendor.js
Which is totally false since that js is found.
Someone to make me a hand.
My ionic cordova run android --device --prod --verbose
iMac-de-DesarrolloMKTech:CBXUsuarios desarrollomktech$ ionic cordova run android --device --prod --verbose
ionic:lib Terminal info: { tty: true, ci: false } +0ms
ionic:lib CLI global options: { _: [ 'cordova', 'run', 'android' ], help: null, h: null, verbose: true, quiet: null, interactive: true, color: true, confirm: null, json: null, device: true, prod: true, project: null, '--': [] } +4ms
ionic:lib:project Project type from config: Ionic Angular 3 (ionic-angular) +0ms
ionic:lib Project name: undefined +311ms
ionic Context: { binPath: '/usr/local/lib/node_modules/ionic/bin/ionic', libPath: '/usr/local/lib/node_modules/ionic', execPath: '/Users/desarrollomktech/Desktop/CBXUsuarios', version: '4.2.1' } +0ms
ionic:lib:integrations:cordova:config Using config.xml: /Users/desarrollomktech/Desktop/CBXUsuarios/config.xml +0ms
ionic:lib:hooks Looking for ionic:build:before npm script. +0ms
ionic:lib:project:ionic-angular:build Looking for ionic:build npm script. +0ms
> ionic-app-scripts build --prod --target cordova --platform android
[08:54:09] ionic-app-scripts 3.2.0
[08:54:09] build prod started ...
[08:54:09] clean started ...
[08:54:09] clean finished in 39 ms
[08:54:09] copy started ...
[08:54:09] deeplinks started ...
[08:54:10] deeplinks finished in 142 ms
[08:54:10] ngc started ...
[08:54:24] ngc finished in 13.98 s
[08:54:24] preprocess started ...
[08:54:24] preprocess finished in less than 1 ms
[08:54:24] webpack started ...
[08:54:24] copy finished in 14.79 s
[08:54:51] webpack finished in 27.48 s
[08:54:51] uglify started ...
[08:54:51] sass started ...
[08:54:56] sass finished in 4.50 s
[08:54:56] cleancss started ...
[08:54:59] cleancss finished in 3.23 s
[08:55:17] uglify finished in 26.31 s
[08:55:17] postprocess started ...
[08:55:18] postprocess finished in 171 ms
[08:55:18] lint started ...
[08:55:18] build prod finished in 68.42 s
[08:55:24] tslint: src/providers/ubicacion/ubicacion.ts, line: 238
'data' is declared but its value is never read.
L237: loading.present();
L238: let data = new URLSearchParams();
L239: let point1_lat = latInicial.toString();
'marker' is declared but its value is never read.
[08:55:24] tslint: src/pages/solicitar/solicitar.ts, line: 165
L164: if(status === 'OK' && results[0]){
L165: let marker = new google.maps.Marker({
L166: position: results[0].geometry.location,
[08:55:24] tslint: src/pages/solicitar/solicitar.ts, line: 6
All imports on this line are unused.
L5: declare var google;
L6: import { Observable } from 'rxjs/Observable';
L7: //pages
[08:55:24] tslint: src/pages/solicitar/solicitar.ts, line: 8
All imports on this line are unused.
L7: //pages
L8: import { HomePage } from '../home/home';
L9: //Providers
[08:55:24] tslint: src/pages/home/home.ts, line: 37
Property 'alertCtrl' is declared but its value is never read.
L36: constructor(public navCtrl: NavController, public zone: NgZone, public geolocation: Geolocation,public loadingCtrl: LoadingController,
L37: private modalCtrl:ModalController, private alertCtrl: AlertController, private userProv:UsuarioP
L38: this.geocoder = new google.maps.Geocoder;
'marker' is declared but its value is never read.
L129: if(status === 'OK' && results[0]){
L130: let marker = new google.maps.Marker({
L131: position: results[0].geometry.location,
Property 'alertCtrl' is declared but its value is never read.
L31: Ctrl: NavController, public navParams: NavParams,public fb: FormBuilder, private alertCtrl: AlertController,
L32: private usersProv:UsuarioProvider, private ubiProv: UbicacionProvider, //private facebook: Facebook,
Property 'loadingCtrl' is declared but its value is never read.
L32: private usersProv:UsuarioProvider, private ubiProv: UbicacionProvider, //private facebook: Facebook,
[08:55:24] tslint: src/pages/home/home.ts, line: 130
[08:55:24] tslint: src/pages/login/login.ts, line: 31
[08:55:24] tslint: src/pages/login/login.ts, line: 33
L33: private loadingCtrl: LoadingController) {
L34: console.log(this.usersProv.fotoPerfil)
Property 'ubiProv' is declared but its value is never read.
L29: constructor(public platform: Platform, public statusBar: StatusBar, public splashScreen: SplashScreen, public usersProv:UsuarioProvider,
L30: private ubiProv: UbicacionProvider ) {
L31: //this.usersProv.cargarStorage();
All imports on this line are unused.
[08:55:24] tslint: src/app/app.component.ts, line: 30
[08:55:24] tslint: src/app/app.component.ts, line: 13
L12: import { ListPage } from '../pages/list/list';
L13: import { LoginPage } from '../pages/login/login';
L14: //Providers
[08:55:24] lint finished in 6.36 s
ionic:lib:hooks Looking for ionic:build:after npm script. +1m
> cordova run android --device --verbose
No scripts found for hook "before_run".
No scripts found for hook "before_prepare".
Checking config.xml and package.json for saved platforms that haven't been added to the project
Config.xml and package.json platforms are the same. No pkg.json modification.
Package.json and config.xml platforms are different. Updating config.xml with most current list of platforms.
PlatformApi successfully found for platform android
Android Studio project detected
Checking config.xml for saved plugins that haven't been added to the project
Checking for any plugins added to the project that have not been installed in android platform
No differences found between plugins added to project and installed in android platform. Continuing...
Generating platform-specific config.xml from defaults for android at /Users/desarrollomktech/Desktop/CBXUsuarios/platforms/android/app/src/main/res/xml/config.xml
Merging project's config.xml into platform-specific android config.xml
Merging and updating files from [www, platforms/android/platform_www] to platforms/android/app/src/main/assets/www
copy www/assets/fonts/ionicons.woff platforms/android/app/src/main/assets/www/assets/fonts/ionicons.woff (updated file)
copy www/assets/fonts/ionicons.woff2 platforms/android/app/src/main/assets/www/assets/fonts/ionicons.woff2 (updated file)
copy www/assets/icon/favicon.ico platforms/android/app/src/main/assets/www/assets/icon/favicon.ico (updated file)
copy www/assets/imgs/logo.png platforms/android/app/src/main/assets/www/assets/imgs/logo.png (updated file)
copy www/build/main.css platforms/android/app/src/main/assets/www/build/main.css (updated file)
copy www/build/main.js platforms/android/app/src/main/assets/www/build/main.js (updated file)
copy www/build/polyfills.js platforms/android/app/src/main/assets/www/build/polyfills.js (updated file)
copy www/build/sw-toolbox.js platforms/android/app/src/main/assets/www/build/sw-toolbox.js (updated file)
copy www/build/vendor.js platforms/android/app/src/main/assets/www/build/vendor.js (updated file)
copy www/index.html platforms/android/app/src/main/assets/www/index.html (updated file)
copy www/manifest.json platforms/android/app/src/main/assets/www/manifest.json (updated file)
copy www/service-worker.js platforms/android/app/src/main/assets/www/service-worker.js (updated file)
Wrote out android application name "CBXUsuarios" to /Users/desarrollomktech/Desktop/CBXUsuarios/platforms/android/app/src/main/res/values/strings.xml
android-versionCode not found in config.xml. Generating a code based on version in config.xml (0.0.5): 5
Wrote out Android package name "com.grupomktech.carbox.users" to /Users/desarrollomktech/Desktop/CBXUsuarios/platforms/android/app/src/main/java/com/grupomktech/carbox/users/MainActivity.java
Updating icons at platforms/android/app/src/main/res
Updating splash screens at platforms/android/app/src/main/res
This app does not have additional resource files defined
Prepared android project successfully
No scripts found for hook "after_prepare".
Running command: /usr/libexec/java_home
Command finished with error code 0: /usr/libexec/java_home
ANDROID_HOME=/Users/desarrollomktech/Library/Android/sdk
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_171.jdk/Contents/Home
studio
Subproject Path: CordovaLib
Subproject Path: app
Running command: /Users/desarrollomktech/Desktop/CBXUsuarios/platforms/android/gradlew cdvBuildDebug -b /Users/desarrollomktech/Desktop/CBXUsuarios/platforms/android/build.gradle -Dorg.gradle.daemon=true -Dorg.gradle.jvmargs=-Xmx2048m -Pandroid.useDeprecatedNdk=true
publishNonDefault is deprecated and has no effect anymore. All variants are now published.
The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
at build_e6pg1sn01mwj0g6433e73qvhc.run(/Users/desarrollomktech/Desktop/CBXUsuarios/platforms/android/app/build.gradle:143)
Configuration 'compile' in project ':app' is deprecated. Use 'implementation' instead.
:CordovaLib:preBuild UP-TO-DATE
:CordovaLib:preDebugBuild UP-TO-DATE
:CordovaLib:compileDebugAidl UP-TO-DATE
:CordovaLib:compileDebugRenderscript UP-TO-DATE
:CordovaLib:checkDebugManifest UP-TO-DATE
:CordovaLib:generateDebugBuildConfig UP-TO-DATE
:CordovaLib:prepareLintJar UP-TO-DATE
:CordovaLib:generateDebugResValues UP-TO-DATE
:CordovaLib:generateDebugResources UP-TO-DATE
:CordovaLib:packageDebugResources UP-TO-DATE
:CordovaLib:platformAttrExtractor UP-TO-DATE
:CordovaLib:processDebugManifest UP-TO-DATE
:CordovaLib:processDebugResources
:CordovaLib:generateDebugSources
:CordovaLib:javaPreCompileDebug UP-TO-DATE
:CordovaLib:compileDebugJavaWithJavac UP-TO-DATE
:CordovaLib:processDebugJavaRes NO-SOURCE
:CordovaLib:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug UP-TO-DATE
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:compileDebugAidl UP-TO-DATE
:CordovaLib:packageDebugRenderscript NO-SOURCE
:app:compileDebugRenderscript UP-TO-DATE
:app:checkDebugManifest UP-TO-DATE
:app:generateDebugBuildConfig UP-TO-DATE
:app:prepareLintJar UP-TO-DATE
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources UP-TO-DATE
:app:mergeDebugResources UP-TO-DATE
:app:createDebugCompatibleScreenManifests UP-TO-DATE
:app:processDebugManifest
:app:splitsDiscoveryTaskDebug UP-TO-DATE
:app:processDebugResources
:app:generateDebugSources
:app:javaPreCompileDebug UP-TO-DATE
:app:compileDebugJavaWithJavac UP-TO-DATE
:app:compileDebugNdk NO-SOURCE
:app:compileDebugSources UP-TO-DATE
:CordovaLib:mergeDebugShaders UP-TO-DATE
:CordovaLib:compileDebugShaders UP-TO-DATE
:CordovaLib:generateDebugAssets UP-TO-DATE
:CordovaLib:mergeDebugAssets UP-TO-DATE
:app:mergeDebugShaders UP-TO-DATE
:app:compileDebugShaders UP-TO-DATE
:app:generateDebugAssets UP-TO-DATE
:app:mergeDebugAssets UP-TO-DATE
:app:extractTryWithResourcesSupportJarDebug UP-TO-DATE
:app:transformClassesWithStackFramesFixerForDebug
:app:transformClassesWithDesugarForDebug
:app:transformClassesWithDexBuilderForDebug UP-TO-DATE
:app:transformDexArchiveWithExternalLibsDexMergerForDebug UP-TO-DATE
:app:transformDexArchiveWithDexMergerForDebug UP-TO-DATE
:CordovaLib:compileDebugNdk NO-SOURCE
:CordovaLib:mergeDebugJniLibFolders UP-TO-DATE
:CordovaLib:transformNativeLibsWithMergeJniLibsForDebug UP-TO-DATE
:CordovaLib:transformNativeLibsWithIntermediateJniLibsForDebug UP-TO-DATE
:app:mergeDebugJniLibFolders UP-TO-DATE
:app:transformNativeLibsWithMergeJniLibsForDebug UP-TO-DATE
:app:processDebugJavaRes NO-SOURCE
:app:transformResourcesWithMergeJavaResForDebug UP-TO-DATE
:app:validateSigningDebug
:app:packageDebug
:app:assembleDebug
:app:cdvBuildDebug
BUILD SUCCESSFUL in 6s
47 actionable tasks: 7 executed, 40 up-to-date
Command finished with error code 0: /Users/desarrollomktech/Desktop/CBXUsuarios/platforms/android/gradlew cdvBuildDebug,-b,/Users/desarrollomktech/Desktop/CBXUsuarios/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Dorg.gradle.jvmargs=-Xmx2048m,-Pandroid.useDeprecatedNdk=true
Built the following apk(s):
/Users/desarrollomktech/Desktop/CBXUsuarios/platforms/android/app/build/outputs/apk/debug/app-debug.apk
No scripts found for hook "before_deploy".
ANDROID_HOME=/Users/desarrollomktech/Library/Android/sdk
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_171.jdk/Contents/Home
Running command: adb devices
Command finished with error code 0: adb devices
Running adb shell command "cat /proc/cpuinfo" on target A3P9K17726902412...
Running command: adb -s A3P9K17726902412 shell cat /proc/cpuinfo
Command finished with error code 0: adb -s,A3P9K17726902412,shell,cat,/proc/cpuinfo
none
Skipping build...
Built the following apk(s):
/Users/desarrollomktech/Desktop/CBXUsuarios/platforms/android/app/build/outputs/apk/debug/app-debug.apk
Using apk: /Users/desarrollomktech/Desktop/CBXUsuarios/platforms/android/app/build/outputs/apk/debug/app-debug.apk
Package name: com.grupomktech.carbox.users
Installing apk /Users/desarrollomktech/Desktop/CBXUsuarios/platforms/android/app/build/outputs/apk/debug/app-debug.apk on target A3P9K17726902412...
Running command: adb -s A3P9K17726902412 install -r /Users/desarrollomktech/Desktop/CBXUsuarios/platforms/android/app/build/outputs/apk/debug/app-debug.apk
Command finished with error code 0: adb -s,A3P9K17726902412,install,-r,/Users/desarrollomktech/Desktop/CBXUsuarios/platforms/android/app/build/outputs/apk/debug/app-debug.apk
Running adb shell command "input keyevent 82" on target A3P9K17726902412...
Running command: adb -s A3P9K17726902412 shell input keyevent 82
Command finished with error code 0: adb -s,A3P9K17726902412,shell,input,keyevent,82
Starting application "com.grupomktech.carbox.users/.MainActivity" on target A3P9K17726902412...
Running adb shell command "am start -W -a android.intent.action.MAIN -ncom.grupomktech.carbox.users/.MainActivity" on target A3P9K17726902412...
Running command: adb -s A3P9K17726902412 shell am start -W -a android.intent.action.MAIN -ncom.grupomktech.carbox.users/.MainActivity
Command finished with error code 0: adb -s,A3P9K17726902412,shell,am,start,-W,-a,android.intent.action.MAIN,-ncom.grupomktech.carbox.users/.MainActivity
LAUNCH SUCCESS
No scripts found for hook "after_run".
iMac-de-DesarrolloMKTech:CBXUsuarios desarrollomktech$
Any expert that can help me please.