PS C:\Users\otta\mobile\bahiadeportes-mobile> ionic cordova build android
Running app-scripts build: --platform android --target cordova
[17:47:53] build dev started …
[17:47:54] clean started …
[17:47:54] clean finished in 63 ms
[17:47:54] copy started …
[17:47:54] deeplinks started …
[17:47:54] deeplinks finished in 199 ms
[17:47:54] transpile started …
[17:48:00] transpile finished in 6.29 s
[17:48:00] preprocess started …
[17:48:00] preprocess finished in 1 ms
[17:48:00] webpack started …
[17:48:01] copy finished in 7.05 s
[17:48:14] webpack finished in 13.42 s
[17:48:14] sass started …
Witout from
option PostCSS could generate wrong source map or do not find Browserslist config. Set it to CSS file path or to undefined
to prevent this warning
[17:48:17] sass finished in 3.59 s
[17:48:17] postprocess started …
[17:48:18] postprocess finished in 43 ms
[17:48:18] lint started …
[17:48:18] build dev finished in 24.39 s
cordova build android
Preparing Firebase on Android
cordova-android-play-services-gradle-release PLAY_SERVICES_VERSION: 11.+
cordova-android-support-gradle-release ANDROID_SUPPORT_VERSION: 22.+
cordova-android-support-gradle-release : WROTE C:\Users\otta\mobile\bahiadeportes-mobile\platforms\android\build.gradle > 22.+
cordova-android-play-services-gradle-release : WROTE C:\Users\otta\mobile\bahiadeportes-mobile\platforms\android\build.gradle > 11.+
ANDROID_HOME=C:\Users\otta\android-tools
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_152
Subproject Path: CordovaLib
Exception in thread “main”
java.lang.NullPointerException
at org.gradle.wrapper.PathAssembler.getDistName(PathAssembler.java:84)
at org.gradle.wrapper.PathAssembler.getDistribution(PathAssembler.java:40)
at org.gradle.wrapper.Install.createDist(Install.java:44)
at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:107)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
Error: cmd: Command failed with exit code 1 Error output:
Exception in thread “main” java.lang.NullPointerException
at org.gradle.wrapper.PathAssembler.getDistName(PathAssembler.java:84)
at org.gradle.wrapper.PathAssembler.getDistribution(PathAssembler.java:40)
at org.gradle.wrapper.Install.createDist(Install.java:44)
at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:107)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
[ERROR] An error occurred while running cordova build android (exit code 1).
[17:48:23] tslint: C:/Users/otta/mobile/bahiadeportes-mobile/src/services/seccion.service.ts, line: 2
All imports are unused.
L1: import { Injectable } from '@angular/core';
L2: import { URLSearchParams, Headers } from '@angular/http';
L3: import { Configuration } from '../app/app.constants';
[17:48:23] tslint: C:/Users/otta/mobile/bahiadeportes-mobile/src/models/comentario.ts, line: 4
All imports are unused.
L3: import { ModelFactory } from './model-factory.model';
L4: import { Periodista } from './periodista';
L5: import { Usuario } from './usuario';
[17:48:23] tslint: C:/Users/otta/mobile/bahiadeportes-mobile/src/pages/home/home.ts, line: 1
‘ViewChild’ is declared but its value is never read.
L1: import { Component, ViewChild } from '@angular/core';
L2: import { NavController, NavParams, MenuController} from 'ionic-angular';
[17:48:23] tslint: C:/Users/otta/mobile/bahiadeportes-mobile/src/pages/home/home.ts, line: 2
‘NavParams’ is declared but its value is never read.
L1: import { Component, ViewChild } from '@angular/core';
L2: import { NavController, NavParams, MenuController} from 'ionic-angular';
L3: import { NoticiaService } from '../../services/noticia.service';
[17:48:23] tslint: C:/Users/otta/mobile/bahiadeportes-mobile/src/services/noticia.service.ts, line: 49
‘toReturn’ is declared but its value is never read.
L48: return this.http.get(Configuration.API_URL+'noticias/'+id_noticia+'/comentarios').map((res) => {
L49: let toReturn = [];
L50: //res.json().data.forEach((obj) => toReturn.push(new Comentario(obj)) );
[17:48:23] tslint: C:/Users/otta/mobile/bahiadeportes-mobile/src/services/noticia.service.ts, line: 65
‘toReturn’ is declared but its value is never read.
L64: return this.http.get(url).map((res) => {
L65: let toReturn = [];
L66: //res.json().data.forEach((obj) => toReturn.push(new Comentario(obj)) );
[17:48:23] tslint: C:/Users/otta/mobile/bahiadeportes-mobile/src/services/noticia.service.ts, line: 2
All imports are unused.
L1: import { Injectable } from '@angular/core';
L2: import { URLSearchParams, Headers } from '@angular/http';
L3: import { Configuration } from '../app/app.constants';
[17:48:23] tslint: C:/Users/otta/mobile/bahiadeportes-mobile/src/services/noticia.service.ts, line: 5
All imports are unused.
L4: import { Noticia } from '../models/noticia';
L5: import { Comentario } from '../models/comentario';
L6: import { SafeHttp } from './safe-http.service';
[17:48:23] tslint: C:/Users/otta/mobile/bahiadeportes-mobile/src/pages/seccion/seccion.ts, line: 1
‘ViewChild’ is declared but its value is never read.
L1: import { Component, ViewChild } from '@angular/core';
L2: import { IonicPage, NavController, Segment, NavParams, MenuController} from 'ionic-angular';
[17:48:23] tslint: C:/Users/otta/mobile/bahiadeportes-mobile/src/pages/seccion/seccion.ts, line: 2
‘Segment’ is declared but its value is never read.
L1: import { Component, ViewChild } from '@angular/core';
L2: import { IonicPage, NavController, Segment, NavParams, MenuController} from 'ionic-angular';
L3: import { NoticiaService } from '../../services/noticia.service';
[17:48:23] tslint: C:/Users/otta/mobile/bahiadeportes-mobile/src/pages/seccion/seccion.ts, line: 2
‘MenuController’ is declared but its value is never read.
L1: import { Component, ViewChild } from '@angular/core';
L2: import { IonicPage, NavController, Segment, NavParams, MenuController} from 'ionic-angular';
L3: import { NoticiaService } from '../../services/noticia.service';
[17:48:23] tslint: C:/Users/otta/mobile/bahiadeportes-mobile/src/pages/seccion/seccion.ts, line: 4
All imports are unused.
L3: import { NoticiaService } from '../../services/noticia.service';
L4: import { SeccionService } from '../../services/seccion.service';
L5: import { ToastService } from '../../services/toast.service';
[17:48:23] tslint: C:/Users/otta/mobile/bahiadeportes-mobile/src/pages/perfil/perfil.ts, line: 6
‘ViewController’ is declared but its value is never read.
L5: import { FormBuilder, FormGroup, Validators } from '@angular/forms';
L6: import {AlertController, LoadingController, ViewController } from 'ionic-angular';
[17:48:23] tslint: C:/Users/otta/mobile/bahiadeportes-mobile/src/pages/comentar/comentar.ts, line: 41
‘loader’ is declared but its value is never read.
L40: if(this.comentarForm.valid) {
L41: let loader = this.loadingCtrl.create({ dismissOnPageChange: true });
L42: this.noticiaService.comentar(this.noticia.id,this.comentarForm.value.comentario).subscribe(
[17:48:23] tslint: C:/Users/otta/mobile/bahiadeportes-mobile/src/pages/noticia/noticia.ts, line: 4
All imports are unused.
L3: import { Noticia } from '../../models/noticia';
L4: import { Comentario } from '../../models/comentario';
L5: import { Configuration } from '../../app/app.constants';
------------------------------------------------------------------------o------------------------------------------------------------------------
package.json
{
"name": "BahiaDeportes",
"version": "1.0.0",
"author": "Otta",
"homepage": "",
"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"
},
"config": {
"ionic_copy": "./config/copy.config.js"
},
"dependencies": {
"@angular/common": "^4.4.4",
"@angular/compiler": "^4.4.4",
"@angular/compiler-cli": "^4.4.4",
"@angular/core": "^4.4.4",
"@angular/forms": "^4.4.4",
"@angular/http": "^4.4.4",
"@angular/platform-browser": "^4.4.4",
"@angular/platform-browser-dynamic": "^4.4.4",
"@angular/tsc-wrapped": "^4.4.4",
"@ionic-native/app-version": "^4.4.0",
"@ionic-native/core": "^4.4.0",
"@ionic-native/device": "^4.4.0",
"@ionic-native/file": "^4.5.2",
"@ionic-native/firebase": "^4.4.0",
"@ionic-native/google-plus": "^4.4.2",
"@ionic-native/in-app-browser": "^4.4.0",
"@ionic-native/network": "^4.4.0",
"@ionic-native/splash-screen": "4.3.2",
"@ionic-native/status-bar": "4.3.2",
"@ionic/storage": "2.0.1",
"angularfire2": "^5.0.0-rc.3",
"cordova-android": "6.3.0",
"cordova-android-play-services-gradle-release": "^1.1.4",
"cordova-android-support-gradle-release": "^1.1.5",
"cordova-plugin-app-version": "^0.1.9",
"cordova-plugin-console": "^1.1.0",
"cordova-plugin-device": "^1.1.7",
"cordova-plugin-file": "^5.0.0",
"cordova-plugin-firebase": "^0.1.25",
"cordova-plugin-inappbrowser": "^1.7.2",
"cordova-plugin-ionic-webview": "^1.1.16",
"cordova-plugin-network-information": "^1.3.4",
"cordova-plugin-whitelist": "^1.3.3",
"es6-promise-plugin": "^4.1.1",
"firebase": "^4.6.2",
"font-awesome": "^4.7.0",
"ionic-angular": "^3.9.2",
"ionic-native": "^2.9.0",
"ionic-plugin-keyboard": "^2.2.1",
"ionicons": "3.0.0",
"node-pre-gyp": "^0.6.39",
"promise-polyfill": "^6.0.2",
"rxjs": "5.4.3",
"sw-toolbox": "3.6.0",
"tsutils": "^2.12.2",
"zone.js": "0.8.18"
},
"devDependencies": {
"@angular/cli": "^1.5.0",
"@ionic/app-scripts": "^3.1.7",
"hammerjs": "^2.0.8",
"ionic": "^3.18.0",
"typescript": "^2.6.1",
"ws": "3.3.2"
},
"description": "An Ionic project",
"cordova": {
"plugins": {
"cordova-plugin-app-version": {},
"cordova-plugin-device": {},
"cordova-plugin-firebase": {},
"cordova-plugin-ionic-webview": {},
"cordova-plugin-network-information": {},
"cordova-plugin-whitelist": {},
"ionic-plugin-keyboard": {},
"cordova-plugin-inappbrowser": {},
"cordova-android-play-services-gradle-release": {
"PLAY_SERVICES_VERSION": "11.+"
},
"cordova-android-support-gradle-release": {
"ANDROID_SUPPORT_VERSION": "22.+"
},
"cordova-plugin-console": {},
"cordova-plugin-file": {}
},
"platforms": [
"android"
]
}
}
config.xml
<?xml version='1.0' encoding='utf-8'?>
<widget id="io.ionic.starter" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>BahiaDeportes</name>
<description>Mira las ultimas noticias deportivas de Bahía Blanca y la región</description>
<author email="???@gmail.com" href="">otta</author>
<content src="index.html" />
<access origin="*" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
<preference name="ScrollEnabled" value="false" />
<preference name="BackupWebStorage" value="none" />
<preference name="SplashMaintainAspectRatio" value="true" />
<preference name="FadeSplashScreenDuration" value="300" />
<preference name="SplashShowOnlyFirstTime" value="false" />
<preference name="SplashScreen" value="screen" />
<preference name="SplashScreenDelay" value="3000" />
<preference name="KeyboardDisplayRequiresUserAction" value="false" />
<platform name="android">
<allow-intent href="market:*" />
<icon density="ldpi" src="resources/android/icon/drawable-ldpi-icon.png" />
<icon density="mdpi" src="resources/android/icon/drawable-mdpi-icon.png" />
<icon density="hdpi" src="resources/android/icon/drawable-hdpi-icon.png" />
<icon density="xhdpi" src="resources/android/icon/drawable-xhdpi-icon.png" />
<icon density="xxhdpi" src="resources/android/icon/drawable-xxhdpi-icon.png" />
<icon density="xxxhdpi" src="resources/android/icon/drawable-xxxhdpi-icon.png" />
<splash density="land-ldpi" src="resources/android/splash/drawable-land-ldpi-screen.png" />
<splash density="land-mdpi" src="resources/android/splash/drawable-land-mdpi-screen.png" />
<splash density="land-hdpi" src="resources/android/splash/drawable-land-hdpi-screen.png" />
<splash density="land-xhdpi" src="resources/android/splash/drawable-land-xhdpi-screen.png" />
<splash density="land-xxhdpi" src="resources/android/splash/drawable-land-xxhdpi-screen.png" />
<splash density="land-xxxhdpi" src="resources/android/splash/drawable-land-xxxhdpi-screen.png" />
<splash density="port-ldpi" src="resources/android/splash/drawable-port-ldpi-screen.png" />
<splash density="port-mdpi" src="resources/android/splash/drawable-port-mdpi-screen.png" />
<splash density="port-hdpi" src="resources/android/splash/drawable-port-hdpi-screen.png" />
<splash density="port-xhdpi" src="resources/android/splash/drawable-port-xhdpi-screen.png" />
<splash density="port-xxhdpi" src="resources/android/splash/drawable-port-xxhdpi-screen.png" />
<splash density="port-xxxhdpi" src="resources/android/splash/drawable-port-xxxhdpi-screen.png" />
</platform>
<platform name="ios">
<allow-intent href="itms:*" />
<allow-intent href="itms-apps:*" />
<icon height="57" src="resources/ios/icon/icon.png" width="57" />
<icon height="114" src="resources/ios/icon/icon@2x.png" width="114" />
<icon height="40" src="resources/ios/icon/icon-40.png" width="40" />
<icon height="80" src="resources/ios/icon/icon-40@2x.png" width="80" />
<icon height="120" src="resources/ios/icon/icon-40@3x.png" width="120" />
<icon height="50" src="resources/ios/icon/icon-50.png" width="50" />
<icon height="100" src="resources/ios/icon/icon-50@2x.png" width="100" />
<icon height="60" src="resources/ios/icon/icon-60.png" width="60" />
<icon height="120" src="resources/ios/icon/icon-60@2x.png" width="120" />
<icon height="180" src="resources/ios/icon/icon-60@3x.png" width="180" />
<icon height="72" src="resources/ios/icon/icon-72.png" width="72" />
<icon height="144" src="resources/ios/icon/icon-72@2x.png" width="144" />
<icon height="76" src="resources/ios/icon/icon-76.png" width="76" />
<icon height="152" src="resources/ios/icon/icon-76@2x.png" width="152" />
<icon height="167" src="resources/ios/icon/icon-83.5@2x.png" width="167" />
<icon height="29" src="resources/ios/icon/icon-small.png" width="29" />
<icon height="58" src="resources/ios/icon/icon-small@2x.png" width="58" />
<icon height="87" src="resources/ios/icon/icon-small@3x.png" width="87" />
<icon height="1024" src="resources/ios/icon/icon-1024.png" width="1024" />
<splash height="1136" src="resources/ios/splash/Default-568h@2x~iphone.png" width="640" />
<splash height="1334" src="resources/ios/splash/Default-667h.png" width="750" />
<splash height="2208" src="resources/ios/splash/Default-736h.png" width="1242" />
<splash height="1242" src="resources/ios/splash/Default-Landscape-736h.png" width="2208" />
<splash height="1536" src="resources/ios/splash/Default-Landscape@2x~ipad.png" width="2048" />
<splash height="2048" src="resources/ios/splash/Default-Landscape@~ipadpro.png" width="2732" />
<splash height="768" src="resources/ios/splash/Default-Landscape~ipad.png" width="1024" />
<splash height="2048" src="resources/ios/splash/Default-Portrait@2x~ipad.png" width="1536" />
<splash height="2732" src="resources/ios/splash/Default-Portrait@~ipadpro.png" width="2048" />
<splash height="1024" src="resources/ios/splash/Default-Portrait~ipad.png" width="768" />
<splash height="960" src="resources/ios/splash/Default@2x~iphone.png" width="640" />
<splash height="480" src="resources/ios/splash/Default~iphone.png" width="320" />
<splash height="2732" src="resources/ios/splash/Default@2x~universal~anyany.png" width="2732" />
</platform>
<engine name="android" spec="6.3.0" />
<plugin name="cordova-plugin-app-version" spec="^0.1.9" />
<plugin name="cordova-plugin-device" spec="^1.1.7" />
<plugin name="cordova-plugin-firebase" spec="^0.1.25" />
<plugin name="cordova-plugin-ionic-webview" spec="^1.1.16" />
<plugin name="cordova-plugin-network-information" spec="^1.3.4" />
<plugin name="cordova-plugin-whitelist" spec="^1.3.3" />
<plugin name="ionic-plugin-keyboard" spec="^2.2.1" />
<plugin name="cordova-plugin-inappbrowser" spec="^1.7.2" />
<plugin name="cordova-android-play-services-gradle-release" spec="^1.1.4">
<variable name="PLAY_SERVICES_VERSION" value="11.+" />
</plugin>
<plugin name="cordova-android-support-gradle-release" spec="^1.1.5">
<variable name="ANDROID_SUPPORT_VERSION" value="22.+" />
</plugin>
<plugin name="cordova-plugin-console" spec="^1.1.0" />
<plugin name="cordova-plugin-file" spec="^5.0.0" />
</widget>
cordova platform ls
Installed platforms:
android 6.3.0
Available platforms:
blackberry10 ~3.8.0 (deprecated)
browser ~5.0.0
ios ~4.5.1
osx ~4.0.1
ubuntu ~4.3.4 (deprecated)
webos ~3.7.0
windows ~5.0.0
www ^3.12.0