Cordova-plugin-firebase: Issue in com.google.firebase.iid.FirebaseInstanceIdService;

Created on 31 May 2019  ·  4Comments  ·  Source: arnesson/cordova-plugin-firebase

Hi,
I am using Ionic version 1 and facing the issue in creating the Android build.

:mergeDebugJniLibFolders
:CordovaLib:processDebugResources
:processDebugResources
:generateDebugSources
:CordovaLib:generateDebugSources
:CordovaLib:compileDebugJavaWithJavacNote: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

    :CordovaLib:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug
    :javaPreCompileDebug
    :compileDebugJavaWithJavac/home/juan/Documents/Work/Players/app_players/platforms/android/src/com/gae/scaffolder/plugin/MyFirebaseInstanceIDService.java:6: 
    error: cannot find symbol
    import com.google.firebase.iid.FirebaseInstanceIdService;
                                   ^
       symbol:   class FirebaseInstanceIdService
       location: package com.google.firebase.iid
    /home/juan/Documents/Work/Players/app_players/platforms/android/src/com/gae/scaffolder/plugin/MyFirebaseInstanceIDService.java:11: 
    error: cannot find symbol
    public class MyFirebaseInstanceIDService extends FirebaseInstanceIdService {
                                                      ^
       symbol: class FirebaseInstanceIdService
    /home/juan/Documents/Work/Players/app_players/platforms/android/src/com/gae/scaffolder/plugin/MyFirebaseInstanceIDService.java:15: 
    error: method does not override or implement a method from a supertype
         @Override
         ^
    Note: Some input files use or override a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    3 errors
      FAILED

    FAILURE: Build failed with an exception.

Most helpful comment

see https://github.com/arnesson/cordova-plugin-firebase/issues/1057

couldn't find the issue in the given URL.

All 4 comments

@wilderjva I have tried with this solution as well but still getting the same error. Below is my Ionic info:

Ionic:

ionic (Ionic CLI) : 4.5.0 (/usr/lib/node_modules/ionic)
Ionic Framework : ionic1 1.3.3
@ionic/v1-toolkit : 1.0.22

Cordova:

cordova (Cordova CLI) : 7.0.1
Cordova Platforms : android 6.4.0
Cordova Plugins : no whitelisted plugins (17 plugins total)

System:

Android SDK Tools : 26.1.1 (/home/arun/Android/Sdk/)
NodeJS : v8.16.0 (/usr/bin/node)
npm : 2.15.12
OS : Linux 4.15

see https://github.com/arnesson/cordova-plugin-firebase/issues/1057

couldn't find the issue in the given URL.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

LKruglov picture LKruglov  ·  4Comments

rolinger picture rolinger  ·  3Comments

dhavalsoni2001 picture dhavalsoni2001  ·  5Comments

rlz picture rlz  ·  4Comments

matthitachi picture matthitachi  ·  5Comments