push notification - Failed to resolve Intent Service Android -


i getting following error when trying configure push notification:

06-07 01:05:59.735 18708-18708/com.ebr.apps.ebr.development e/firebaseinstanceid: failed resolve target intent service, skipping classname enforcement 06-07 01:05:59.735 18708-18708/com.ebr.apps.ebr.development e/firebaseinstanceid: error while delivering message: serviceintent not found. 

i have different flavors in gradle:

my code package name : com.ebr.apps.ebr product flavor package is: com.ebr.apps.ebr.development

i have placed google-services.json in app/src/development

manifest:

    <permission         android:name="${applicationid}.permission.c2d_message"         android:protectionlevel="signature"/>      <uses-permission android:name="${applicationid}.permission.c2d_message"/>           <receiver             android:name="com.google.android.gms.gcm.gcmreceiver"             android:exported="true"             android:permission="com.google.android.c2dm.permission.send" >             <intent-filter>                 <action android:name="com.google.android.c2dm.intent.receive" />                 <action android:name="com.google.android.c2dm.intent.registration" />                 <category android:name="${applicationid}" />             </intent-filter>         </receiver>          <service             android:name=".gcm.pushnotificationservice"             android:exported="false">             <intent-filter>                 <action android:name="com.google.android.c2dm.intent.receive"/>             </intent-filter>         </service> 

i have looked @ many example still getting error.

i found solution, problem instabug gcmlistener conflicting gcmlistener. set priority of gcm listener , started working.

<service     android:name=".gcm.pushnotificationservice"     android:exported="false">     <intent-filter android:priority="10000">         <action android:name="com.google.android.c2dm.intent.receive"/>     </intent-filter> </service>