Hello Everyone,
i’ve just updated my ionic version, and when i tried to run it on my real device with the ionic cordova run android --livereload
the build fails for task processDebugRessources. i’ll put the hole running process below
PS C:\Users\Hamza\Desktop\ionic\MyApp> ionic cordova run android --livereload
Starting app-scripts server: --address 0.0.0.0 --port 8100 --livereload-port 35729 --dev-logger-port 53703 --nobrowser
--iscordovaserve --platform android --target cordova - Ctrl+C to cancel
[18:25:51] watch started ...
[18:25:51] build dev started ...
[18:25:51] clean started ...
[18:25:51] clean finished in 49 ms
[18:25:51] copy started ...
[18:25:53] deeplinks started ...
[18:25:53] deeplinks finished in 89 ms
[18:25:53] transpile started ...
[18:26:08] transpile finished in 14.79 s
[18:26:08] preprocess started ...
[18:26:08] preprocess finished in 1 ms
[18:26:08] webpack started ...
[18:26:17] copy finished in 25.10 s
[18:26:26] webpack finished in 18.03 s
[18:26:26] sass started ...
[18:26:35] autoprefixer: <css input>:31939:3: Gradient has outdated direction syntax. New syntax is like `to left`
instead of `right`.
[18:26:35] autoprefixer: <css input>:31979:3: Gradient has outdated direction syntax. New syntax is like `to left`
instead of `right`.
[18:26:35] autoprefixer: <css input>:32111:3: Gradient has outdated direction syntax. New syntax is like `to left`
instead of `right`.
[18:26:35] autoprefixer: <css input>:32392:3: Gradient has outdated direction syntax. New syntax is like `to left`
instead of `right`.
[18:26:35] autoprefixer: <css input>:32406:3: Gradient has outdated direction syntax. New syntax is like `to left`
instead of `right`.
[18:26:35] autoprefixer: <css input>:32439:3: Gradient has outdated direction syntax. New syntax is like `to left`
instead of `right`.
[18:26:36] sass finished in 9.85 s
[18:26:36] postprocess started ...
[18:26:36] postprocess finished in 189 ms
[18:26:36] lint started ...
[18:26:40] build dev finished in 49.23 s
[18:26:42] watch ready in 51.02 s
[18:26:42] dev server running: http://localhost:8100/
[OK] Development server running!
Local: http://localhost:8100
External: http://192.168.1.2:8100
> cordova run android
[18:27:06] tslint: C:/Users/Hamza/Desktop/ionic/Wydad/src/pages/article/article.ts, line: 1
'ViewChild' is declared but never used.
L1: import { Component, ViewChild } from '@angular/core';
L2: import { IonicPage, NavController, NavParams, AlertController } from 'ionic-angular';
[18:27:06] tslint: C:/Users/Hamza/Desktop/ionic/Wydad/src/pages/list/list.ts, line: 1
'ViewChild' is declared but never used.
L1: import { Component, ViewChild, ElementRef } from '@angular/core';
L2: import { NavController, NavParams, AlertController } from 'ionic-angular';
[18:27:06] tslint: C:/Users/Hamza/Desktop/ionic/Wydad/src/pages/list/list.ts, line: 1
'ElementRef' is declared but never used.
L1: import { Component, ViewChild, ElementRef } from '@angular/core';
L2: import { NavController, NavParams, AlertController } from 'ionic-angular';
[18:27:06] tslint: C:/Users/Hamza/Desktop/ionic/Wydad/src/pages/games/games.ts, line: 2
'IonicPage' is declared but never used.
L1: import { Component, ViewChild } from '@angular/core';
L2: import { IonicPage, NavController, Nav, Platform, AlertController } from 'ionic-angular';
L3: import { NativePageTransitions, NativeTransitionOptions } from '@ionic-native/native-page-transitions';
[18:27:06] tslint: C:/Users/Hamza/Desktop/ionic/Wydad/src/pages/games/games.ts, line: 4
All imports are unused.
L3: import { NativePageTransitions, NativeTransitionOptions } from '@ionic-native/native-page-transitions';
L4: import { LocalNotifications } from '@ionic-native/local-notifications';
L5: import { ServersProvider } from '../../providers/servers/servers';
[18:27:06] tslint: C:/Users/Hamza/Desktop/ionic/Wydad/src/pages/games/games.ts, line: 10
All imports are unused.
L9: import { ListPage } from '../list/list';
L10: import { DateTime } from 'ionic-angular/components/datetime/datetime';
[18:27:06] tslint: C:/Users/Hamza/Desktop/ionic/Wydad/src/pages/news/news.ts, line: 4
All imports are unused.
L3: import { NativePageTransitions, NativeTransitionOptions } from '@ionic-native/native-page-transitions';
L4: import { LocalNotifications } from '@ionic-native/local-notifications';
L5: import { ServersProvider } from '../../providers/servers/servers';
[18:27:07] tslint: C:/Users/Hamza/Desktop/ionic/Wydad/src/pages/login/login.ts, line: 4
All imports are unused.
L3: import { Facebook, FacebookLoginResponse } from '@ionic-native/Facebook';
L4: import { LocalNotifications } from '@ionic-native/local-notifications';
L5: import { ServersProvider } from '../../providers/servers/servers';
[18:27:07] tslint: C:/Users/Hamza/Desktop/ionic/Wydad/src/pages/home/home.ts, line: 33
Property 'nativePageTransitions' is declared but never used.
L32: public datasource: DatasourceProvider,
L33: public nav: Nav, private nativePageTransitions: NativePageTransitions,
L34: private facebook: Facebook,
[18:27:07] tslint: C:/Users/Hamza/Desktop/ionic/Wydad/src/pages/home/home.ts, line: 34
Property 'facebook' is declared but never used.
L33: public nav: Nav, private nativePageTransitions: NativePageTransitions,
L34: private facebook: Facebook,
L35: private admobFree: AdMobFree) {
[18:27:07] tslint: C:/Users/Hamza/Desktop/ionic/Wydad/src/pages/home/home.ts, line: 3
'NativeTransitionOptions' is declared but never used.
L2: import { NavController, Nav, Platform, AlertController } from 'ionic-angular';
L3: import { NativePageTransitions, NativeTransitionOptions } from '@ionic-native/native-page-transitions';
L4: import { LocalNotifications } from '@ionic-native/local-notifications';
[18:27:07] tslint: C:/Users/Hamza/Desktop/ionic/Wydad/src/pages/home/home.ts, line: 4
All imports are unused.
L3: import { NativePageTransitions, NativeTransitionOptions } from '@ionic-native/native-page-transitions';
L4: import { LocalNotifications } from '@ionic-native/local-notifications';
L5: import { ServersProvider } from '../../providers/servers/servers';
[18:27:07] tslint: C:/Users/Hamza/Desktop/ionic/Wydad/src/pages/home/home.ts, line: 7
'FacebookLoginResponse' is declared but never used.
L6: import { DatasourceProvider } from '../../providers/datasource/datasource';
L7: import { Facebook, FacebookLoginResponse } from '@ionic-native/Facebook';
L8: import { AdMobFree, AdMobFreeBannerConfig } from '@ionic-native/admob-free';
[18:27:07] tslint: C:/Users/Hamza/Desktop/ionic/Wydad/src/app/app.component.ts, line: 73
'fullName' is declared but never used.
L72: this.isLoggedIn = true;
L73: var fullName = profile.first_name+' '+profile.last_name;
L74: var email = profile.email;
[18:27:07] tslint: C:/Users/Hamza/Desktop/ionic/Wydad/src/app/app.component.ts, line: 74
'email' is declared but never used.
L73: var fullName = profile.first_name+' '+profile.last_name;
L74: var email = profile.email;
L75: var picture = this.userData.picture;
[18:27:07] tslint: C:/Users/Hamza/Desktop/ionic/Wydad/src/app/app.component.ts, line: 75
'picture' is declared but never used.
L74: var email = profile.email;
L75: var picture = this.userData.picture;
L76: this.userPicture = this.userData.picture;
[18:27:07] tslint: C:/Users/Hamza/Desktop/ionic/Wydad/src/app/app.component.ts, line: 1
'enableProdMode' is declared but never used.
L1: import { Component, ViewChild, enableProdMode } from '@angular/core';
L2: import { Nav, Platform, AlertController } from 'ionic-angular';
[18:27:07] tslint: C:/Users/Hamza/Desktop/ionic/Wydad/src/app/app.component.ts, line: 6
'AdMobFreeBannerConfig' is declared but never used.
L5: import { Facebook, FacebookLoginResponse } from '@ionic-native/Facebook';
L6: import { AdMobFree, AdMobFreeBannerConfig } from '@ionic-native/admob-free';
[18:27:07] tslint: C:/Users/Hamza/Desktop/ionic/Wydad/src/app/app.component.ts, line: 15
All imports are unused.
L14: import { PlayersPage } from '../pages/players/players';
L15: import { LoginPage } from '../pages/login/login';
[18:27:07] lint finished in 30.90 s
ANDROID_HOME=C:\Android\android-sdk
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_152
Subproject Path: CordovaLib
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_ev0gyrbmxtgnkrn2t8omx41do.run(C:\Users\Hamza\Desktop\ionic\Wydad\platforms\android\build.gradle:141)
The JavaCompile.setDependencyCacheDir() method has been deprecated and is scheduled to be removed in Gradle 4.0.
Incremental java compilation is an incubating feature.
The TaskInputs.source(Object) method has been deprecated and is scheduled to be removed in Gradle 4.0. Please use TaskInputs.file(Object).skipWhenEmpty() instead.
:preBuild
UP-TO-DATE
:preDebugBuild
UP-TO-DATE
:checkDebugManifest
:preReleaseBuild UP-TO-DATE
:CordovaLib:preBuild UP-TO-DATE
:CordovaLib:preDebugBuild UP-TO-DATE
:CordovaLib:checkDebugManifest
:CordovaLib:prepareDebugDependencies
:CordovaLib:compileDebugAidl
UP-TO-DATE
:CordovaLib:compileDebugNdk
UP-TO-DATE
:CordovaLib:compileLint
UP-TO-DATE
:CordovaLib:copyDebugLint
UP-TO-DATE
:CordovaLib:mergeDebugShaders
UP-TO-DATE
:CordovaLib:compileDebugShaders UP-TO-DATE
:CordovaLib:generateDebugAssets UP-TO-DATE
:CordovaLib:mergeDebugAssets
UP-TO-DATE
:CordovaLib:mergeDebugProguardFiles
UP-TO-DATE
:CordovaLib:packageDebugRenderscript
UP-TO-DATE
:CordovaLib:compileDebugRenderscript
UP-TO-DATE
:CordovaLib:generateDebugResValues
UP-TO-DATE
:CordovaLib:generateDebugResources UP-TO-DATE
:CordovaLib:packageDebugResources
UP-TO-DATE
:CordovaLib:processDebugManifest
UP-TO-DATE
:CordovaLib:generateDebugBuildConfig
UP-TO-DATE
:CordovaLib:processDebugResources
UP-TO-DATE
:CordovaLib:generateDebugSources UP-TO-DATE
:CordovaLib:incrementalDebugJavaCompilationSafeguard
UP-TO-DATE
:CordovaLib:compileDebugJavaWithJavac
UP-TO-DATE
:CordovaLib:processDebugJavaRes
UP-TO-DATE
:CordovaLib:transformResourcesWithMergeJavaResForDebug
UP-TO-DATE
:CordovaLib:transformClassesAndResourcesWithSyncLibJarsForDebug
UP-TO-DATE
:CordovaLib:mergeDebugJniLibFolders
UP-TO-DATE
:CordovaLib:transformNative_libsWithMergeJniLibsForDebug
UP-TO-DATE
:CordovaLib:transformNative_libsWithSyncJniLibsForDebug
UP-TO-DATE
:CordovaLib:bundleDebug
UP-TO-DATE
:CordovaLib:preReleaseBuild UP-TO-DATE
:CordovaLib:checkReleaseManifest
:CordovaLib:prepareReleaseDependencies
:CordovaLib:compileReleaseAidl
UP-TO-DATE
:CordovaLib:compileReleaseNdk
UP-TO-DATE
:CordovaLib:copyReleaseLint UP-TO-DATE
:CordovaLib:mergeReleaseShaders
UP-TO-DATE
:CordovaLib:compileReleaseShaders
UP-TO-DATE
:CordovaLib:generateReleaseAssets UP-TO-DATE
:CordovaLib:mergeReleaseAssets
UP-TO-DATE
:CordovaLib:mergeReleaseProguardFiles
UP-TO-DATE
:CordovaLib:packageReleaseRenderscript
UP-TO-DATE
:CordovaLib:compileReleaseRenderscript
UP-TO-DATE
:CordovaLib:generateReleaseResValues
UP-TO-DATE
:CordovaLib:generateReleaseResources UP-TO-DATE
:CordovaLib:packageReleaseResources
UP-TO-DATE
:CordovaLib:processReleaseManifest
UP-TO-DATE
:CordovaLib:generateReleaseBuildConfig
UP-TO-DATE
:CordovaLib:processReleaseResources
UP-TO-DATE
:CordovaLib:generateReleaseSources UP-TO-DATE
:CordovaLib:incrementalReleaseJavaCompilationSafeguard
UP-TO-DATE
:CordovaLib:compileReleaseJavaWithJavac
UP-TO-DATE
:CordovaLib:processReleaseJavaRes
UP-TO-DATE
:CordovaLib:transformResourcesWithMergeJavaResForRelease
UP-TO-DATE
:CordovaLib:transformClassesAndResourcesWithSyncLibJarsForRelease
UP-TO-DATE
:CordovaLib:mergeReleaseJniLibFolders
UP-TO-DATE
:CordovaLib:transformNative_libsWithMergeJniLibsForRelease
UP-TO-DATE
:CordovaLib:transformNative_libsWithSyncJniLibsForRelease
UP-TO-DATE
:CordovaLib:bundleRelease
UP-TO-DATE
:prepareAndroidArchCoreRuntime110Library UP-TO-DATE
:prepareAndroidArchLifecycleLivedataCore110Library
UP-TO-DATE
:prepareAndroidArchLifecycleRuntime110Library
UP-TO-DATE
:prepareAndroidArchLifecycleViewmodel110Library
UP-TO-DATE
:prepareComAndroidSupportAnimatedVectorDrawable2702Library
UP-TO-DATE
:prepareComAndroidSupportAppcompatV72702Library
UP-TO-DATE
:prepareComAndroidSupportAsynclayoutinflater2800Alpha1Library
UP-TO-DATE
:prepareComAndroidSupportCardviewV72702Library
UP-TO-DATE
:prepareComAndroidSupportCoordinatorlayout2800Alpha1Library
UP-TO-DATE
:prepareComAndroidSupportCursoradapter2800Alpha1Library
UP-TO-DATE
:prepareComAndroidSupportCustomtabs2702Library
UP-TO-DATE
:prepareComAndroidSupportCustomview2800Alpha1Library
UP-TO-DATE
:prepareComAndroidSupportDocumentfile2800Alpha1Library
UP-TO-DATE
:prepareComAndroidSupportDrawerlayout2800Alpha1Library
UP-TO-DATE
:prepareComAndroidSupportInterpolator2800Alpha1Library
UP-TO-DATE
:prepareComAndroidSupportLoader2800Alpha1Library
UP-TO-DATE
:prepareComAndroidSupportLocalbroadcastmanager2800Alpha1Library
UP-TO-DATE
:prepareComAndroidSupportPrint2800Alpha1Library
UP-TO-DATE
:prepareComAndroidSupportSlidingpanelayout2800Alpha1Library
UP-TO-DATE
:prepareComAndroidSupportSupportCompat2800Alpha1Library
UP-TO-DATE
:prepareComAndroidSupportSupportCoreUi2800Alpha1Library
UP-TO-DATE
:prepareComAndroidSupportSupportCoreUtils2800Alpha1Library
UP-TO-DATE
:prepareComAndroidSupportSupportFragment2800Alpha1Library
UP-TO-DATE
:prepareComAndroidSupportSupportMediaCompat2800Alpha1Library
UP-TO-DATE
:prepareComAndroidSupportSupportV42800Alpha1Library
UP-TO-DATE
:prepareComAndroidSupportSupportVectorDrawable2702Library UP-TO-DATE
:prepareComAndroidSupportSwiperefreshlayout2800Alpha1Library
UP-TO-DATE
:prepareComAndroidSupportViewpager2800Alpha1Library
UP-TO-DATE
:prepareComFacebookAndroidFacebookAndroidSdk4310Library
UP-TO-DATE
:prepareComFacebookAndroidFacebookApplinks4310Library
UP-TO-DATE
:prepareComFacebookAndroidFacebookCommon4310Library
UP-TO-DATE
:prepareComFacebookAndroidFacebookCore4310Library
UP-TO-DATE
:prepareComFacebookAndroidFacebookLogin4310Library
UP-TO-DATE
:prepareComFacebookAndroidFacebookMessenger4310Library
UP-TO-DATE
:prepareComFacebookAndroidFacebookPlaces4310Library
UP-TO-DATE
:prepareComFacebookAndroidFacebookShare4310Library
UP-TO-DATE
:prepareComGoogleAndroidGmsPlayServicesAds1104Library
UP-TO-DATE
:prepareComGoogleAndroidGmsPlayServicesAdsLite1104Library
UP-TO-DATE
:prepareComGoogleAndroidGmsPlayServicesBase1104Library
UP-TO-DATE
:prepareComGoogleAndroidGmsPlayServicesBasement1104Library
UP-TO-DATE
:prepareComGoogleAndroidGmsPlayServicesClearcut1104Library
UP-TO-DATE
:prepareComGoogleAndroidGmsPlayServicesGass1104Library UP-TO-DATE
:prepareComGoogleAndroidGmsPlayServicesSafetynet1104Library
UP-TO-DATE
:prepareComGoogleAndroidGmsPlayServicesTasks1104Library UP-TO-DATE
:prepareOrgApacheCordovaCordovaLib630DebugLibrary
UP-TO-DATE
:prepareDebugDependencies
:compileDebugAidl
UP-TO-DATE
:compileDebugRenderscript
UP-TO-DATE
:generateDebugBuildConfig
UP-TO-DATE
:generateDebugResValues
UP-TO-DATE
:generateDebugResources UP-TO-DATE
:mergeDebugResources
:processDebugManifest
UP-TO-DATE
:processDebugResources
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:fontVariationSettings
FAILED
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:ttcIndex
BUILD FAILED
Total time: 1 mins 29.123 secs
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':processDebugResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Error: cmd: Command failed with exit code 1 Error output:
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:fontVariationSettings
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:ttcIndex
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':processDebugResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
[ERROR] An error occurred while running cordova run android (exit code 1).