@perenyitamas wrote:
I am using the native local notification plugin, after installing i cannot run any of my projects:
> cordova run android ANDROID_HOME=C:\Users\Thomas\AppData\Local\Android\sdk JAVA_HOME=C:\Program Files\java\jdk1.8.0_144 Subproject Path: CordovaLib [17:56:04] tslint: ...homas/mobiledevelopment/feederhorgasz/src/pages/fogasfeltoltes/fogasfeltoltes.ts, line: 4 All imports are unused. L3: import { MytoPage } from '../myto/myto'; L4: import { dateSortValue } from 'ionic-angular/umd/util/datetime-util'; L5: import { Component } from '@angular/core'; [17:56:04] tslint: ...homas/mobiledevelopment/feederhorgasz/src/pages/fogasfeltoltes/fogasfeltoltes.ts, line: 8 All imports are unused. L7: import { Camera } from '@ionic-native/camera'; L8: import { storage } from 'firebase'; L9: import firebase from 'firebase'; [17:56:04] tslint: ...sers/Thomas/mobiledevelopment/feederhorgasz/src/pages/fogasinaplo/fogasinaplo.ts, line: 27 Property 'event' is declared but never used. L27: constructor(private event:Events,private modal: ModalController, public navCtrl: NavController, public nav L28: console.log('Passed params', navParams.data); [17:56:04] tslint: ...homas/mobiledevelopment/feederhorgasz/src/pages/csalifeltoltes/csalifeltoltes.ts, line: 3 All imports are unused. L2: import { IonicPage, NavController, NavParams } from 'ionic-angular'; L3: import firebase from 'firebase'; L4: import { AngularFireDatabase } from 'angularfire2/database'; [17:56:04] tslint: ...sers/Thomas/mobiledevelopment/feederhorgasz/src/pages/tofeltoltes/tofeltoltes.ts, line: 36 Property 'view' is declared but never used. L36: rl: NavController, public navParams: NavParams, private view: ViewController, private firebasedb: AngularFir [17:56:04] tslint: ...sers/Thomas/mobiledevelopment/feederhorgasz/src/pages/tofeltoltes/tofeltoltes.ts, line: 45 'megyemappa' is declared but never used. L45: var megyemappa=this.megye; L46: this.firebasedb.list("/tavak/") [17:56:04] tslint: ...sers/Thomas/mobiledevelopment/feederhorgasz/src/pages/tofeltoltes/tofeltoltes.ts, line: 1 All imports are unused. L1: import { Loading } from 'ionic-angular/es2015'; L2: import { Component } from '@angular/core'; [17:56:04] tslint: ...sers/Thomas/mobiledevelopment/feederhorgasz/src/pages/tofeltoltes/tofeltoltes.ts, line: 4 All imports are unused. L3: import { IonicPage, NavController, NavParams, ViewController } from 'ionic-angular'; L4: import firebase from 'firebase'; L5: import { AngularFireDatabase } from 'angularfire2/database'; [17:56:04] tslint: C:/Users/Thomas/mobiledevelopment/feederhorgasz/src/pages/profile/profile.ts, line: 26 Property 'modal' is declared but never used. L26: constructor(private modal: ModalController,public navCtrl: NavController, public navParams: NavParams, pri [17:56:04] tslint: C:/Users/Thomas/mobiledevelopment/feederhorgasz/src/pages/profile/profile.ts, line: 2 All imports are unused. L1: import { UdvozoljukPage } from '../udvozoljuk/udvozoljuk'; L2: import { EtetoanyagfeltoltesPage } from '../etetoanyagfeltoltes/etetoanyagfeltoltes'; L3: import { CsalifeltoltesPage } from '../csalifeltoltes/csalifeltoltes'; [17:56:04] tslint: C:/Users/Thomas/mobiledevelopment/feederhorgasz/src/pages/profile/profile.ts, line: 3 All imports are unused. L2: import { EtetoanyagfeltoltesPage } from '../etetoanyagfeltoltes/etetoanyagfeltoltes'; L3: import { CsalifeltoltesPage } from '../csalifeltoltes/csalifeltoltes'; L4: import { BeallitasokPage } from '../beallitasok/beallitasok'; [17:56:04] tslint: C:/Users/Thomas/mobiledevelopment/feederhorgasz/src/pages/profile/profile.ts, line: 7 All imports are unused. L6: import { IonicPage, NavController, NavParams, ModalController, App } from 'ionic-angular'; L7: import { TofeltoltesPage } from '../tofeltoltes/tofeltoltes'; L8: import { LadaPage } from '../lada/lada'; [17:56:04] tslint: ...sers/Thomas/mobiledevelopment/feederhorgasz/src/pages/terkeplista/terkeplista.ts, line: 4 'NavParams' is declared but never used. L3: import { Component } from '@angular/core'; L4: import { IonicPage, NavController, NavParams } from 'ionic-angular'; [17:56:04] tslint: C:/Users/Thomas/mobiledevelopment/feederhorgasz/src/pages/item/item.ts, line: 3 All imports are unused. L2: import { IonicPage, NavController, NavParams } from 'ionic-angular'; L3: import firebase from 'firebase'; L4: import { AngularFireDatabase } from 'angularfire2/database'; [17:56:04] tslint: C:/Users/Thomas/mobiledevelopment/feederhorgasz/src/pages/idomero/idomero.ts, line: 19 Property 'localNotifications' is declared but never used. L19: public navCtrl: NavController, public navParams: NavParams,private localNotifications: LocalNotifications) { [17:56:04] tslint: .../Users/Thomas/mobiledevelopment/feederhorgasz/src/pages/udvozoljuk/udvozoljuk.ts, line: 25 Property 'fire' is declared but never used. L25: constructor(private fire: AngularFireAuth, public navCtrl: NavController, public navParams: NavParams) { [17:56:04] tslint: C:/Users/Thomas/mobiledevelopment/feederhorgasz/src/app/app.component.ts, line: 7 All imports are unused. L6: import { UdvozoljukPage } from '../pages/udvozoljuk/udvozoljuk'; L7: import { TabsPage } from '../pages/tabs/tabs'; [17:56:04] lint finished in 7.44 s 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_bm7026xymjq1nxhxtcrn6p6er.run(C:\Users\Thomas\mobiledevelopment\feederhorgasz\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 :CordovaLib:compileDebugNdk UP-TO-DATE :CordovaLib:compileLint :CordovaLib:copyDebugLint UP-TO-DATE :CordovaLib:mergeDebugShaders :CordovaLib:compileDebugShaders :CordovaLib:generateDebugAssets :CordovaLib:mergeDebugAssets :CordovaLib:mergeDebugProguardFiles UP-TO-DATE :CordovaLib:packageDebugRenderscript UP-TO-DATE :CordovaLib:compileDebugRenderscript :CordovaLib:generateDebugResValues :CordovaLib:generateDebugResources :CordovaLib:packageDebugResources :CordovaLib:processDebugManifest :CordovaLib:generateDebugBuildConfig :CordovaLib:processDebugResources :CordovaLib:generateDebugSources :CordovaLib:incrementalDebugJavaCompilationSafeguard :CordovaLib:compileDebugJavaWithJavac :CordovaLib:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.). Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. :CordovaLib:processDebugJavaRes UP-TO-DATE :CordovaLib:transformResourcesWithMergeJavaResForDebug :CordovaLib:transformClassesAndResourcesWithSyncLibJarsForDebug :CordovaLib:mergeDebugJniLibFolders :CordovaLib:transformNative_libsWithMergeJniLibsForDebug :CordovaLib:transformNative_libsWithSyncJniLibsForDebug :CordovaLib:bundleDebug :CordovaLib:preReleaseBuild UP-TO-DATE :CordovaLib:checkReleaseManifest :CordovaLib:prepareReleaseDependencies :CordovaLib:compileReleaseAidl :CordovaLib:compileReleaseNdk UP-TO-DATE :CordovaLib:copyReleaseLint UP-TO-DATE :CordovaLib:mergeReleaseShaders :CordovaLib:compileReleaseShaders :CordovaLib:generateReleaseAssets :CordovaLib:mergeReleaseAssets :CordovaLib:mergeReleaseProguardFiles UP-TO-DATE :CordovaLib:packageReleaseRenderscript UP-TO-DATE :CordovaLib:compileReleaseRenderscript :CordovaLib:generateReleaseResValues :CordovaLib:generateReleaseResources :CordovaLib:packageReleaseResources :CordovaLib:processReleaseManifest :CordovaLib:generateReleaseBuildConfig :CordovaLib:processReleaseResources :CordovaLib:generateReleaseSources :CordovaLib:incrementalReleaseJavaCompilationSafeguard :CordovaLib:compileReleaseJavaWithJavac :CordovaLib:compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.). Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. :CordovaLib:processReleaseJavaRes UP-TO-DATE :CordovaLib:transformResourcesWithMergeJavaResForRelease :CordovaLib:transformClassesAndResourcesWithSyncLibJarsForRelease :CordovaLib:mergeReleaseJniLibFolders :CordovaLib:transformNative_libsWithMergeJniLibsForRelease :CordovaLib:transformNative_libsWithSyncJniLibsForRelease :CordovaLib:bundleRelease :prepareAndroidArchLifecycleRuntime100Library :prepareComAndroidSupportCustomtabs2330Library :prepareComAndroidSupportSupportCompat2610Library :prepareComAndroidSupportSupportCoreUi2610Library :prepareComAndroidSupportSupportCoreUtils2610Library :prepareComAndroidSupportSupportFragment2610Library :prepareComAndroidSupportSupportMediaCompat2610Library :prepareComAndroidSupportSupportV42610Library :prepareMeLeolinShortcutBadger1119Library :prepareOrgApacheCordovaCordovaLib623DebugLibrary :prepareDebugDependencies :compileDebugAidl :compileDebugRenderscript :generateDebugBuildConfig :generateDebugResValues :generateDebugResources :mergeDebugResources :processDebugManifest :processDebugResources :generateDebugSources :incrementalDebugJavaCompilationSafeguard :compileDebugJavaWithJavac :compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.). C:\Users\Thomas\mobiledevelopment\feederhorgasz\platforms\android\src\de\appplant\cordova\plugin\notification\Manager.java:25: error: cannot find symbol import android.app.NotificationChannel; ^ symbol: class NotificationChannel location: package android.app C:\Users\Thomas\mobiledevelopment\feederhorgasz\platforms\android\src\de\appplant\cordova\plugin\notification\Manager.java:43: error: cannot find symbol import static android.os.Build.VERSION_CODES.O; ^ symbol: static O location: class C:\Users\Thomas\mobiledevelopment\feederhorgasz\platforms\android\src\de\appplant\cordova\plugin\notification\Manager.java:112: error: cannot find symbol if (SDK_INT < O) ^ symbol: variable O location: class Manager C:\Users\Thomas\mobiledevelopment\feederhorgasz\platforms\android\src\de\appplant\cordova\plugin\notification\Manager.java:115: error: cannot find symbol NotificationChannel channel = mgr.getNotificationChannel(CHANNEL_ID); ^ symbol: class NotificationChannel location: class Manager C:\Users\Thomas\mobiledevelopment\feederhorgasz\platforms\android\src\de\appplant\cordova\plugin\notification\Manager.java:115: error: cannot find symbol NotificationChannel channel = mgr.getNotificationChannel(CHANNEL_ID); ^ symbol: method getNotificationChannel(String) location: variable mgr of type NotificationManager C:\Users\Thomas\mobiledevelopment\feederhorgasz\platforms\android\src\de\appplant\cordova\plugin\notification\Manager.java:120: error: cannot find symbol channel = new NotificationChannel( ^ symbol: class NotificationChannel location: class Manager Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. :compileDebugJavaWithJavac FAILED 6 errors FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':compileDebugJavaWithJavac'. > Compilation failed; see the compiler error output for details. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. BUILD FAILED Total time: 25.946 secs Error: cmd: Command failed with exit code 1 Error output: Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. C:\Users\Thomas\mobiledevelopment\feederhorgasz\platforms\android\src\de\appplant\cordova\plugin\notification\Manager.java:25: error: cannot find symbol import android.app.NotificationChannel; ^ symbol: class NotificationChannel location: package android.app C:\Users\Thomas\mobiledevelopment\feederhorgasz\platforms\android\src\de\appplant\cordova\plugin\notification\Manager.java:43: error: cannot find symbol import static android.os.Build.VERSION_CODES.O; ^ symbol: static O location: class C:\Users\Thomas\mobiledevelopment\feederhorgasz\platforms\android\src\de\appplant\cordova\plugin\notification\Manager.java:112: error: cannot find symbol if (SDK_INT < O) ^ symbol: variable O location: class Manager C:\Users\Thomas\mobiledevelopment\feederhorgasz\platforms\android\src\de\appplant\cordova\plugin\notification\Manager.java:115: error: cannot find symbol NotificationChannel channel = mgr.getNotificationChannel(CHANNEL_ID); ^ symbol: class NotificationChannel location: class Manager C:\Users\Thomas\mobiledevelopment\feederhorgasz\platforms\android\src\de\appplant\cordova\plugin\notification\Manager.java:115: error: cannot find symbol NotificationChannel channel = mgr.getNotificationChannel(CHANNEL_ID); ^ symbol: method getNotificationChannel(String) location: variable mgr of type NotificationManager C:\Users\Thomas\mobiledevelopment\feederhorgasz\platforms\android\src\de\appplant\cordova\plugin\notification\Manager.java:120: error: cannot find symbol channel = new NotificationChannel( ^ symbol: class NotificationChannel location: class Manager Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. 6 errors FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':compileDebugJavaWithJavac'. > Compilation failed; see the compiler error output for details. * 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).
Posts: 2
Participants: 1