title: I can't add an Alarm Clock for intent error
body: <p>I would create an alarm clock, I wrote this code but return this error:</p>
  
  <blockquote>
    <p>2019-02-05 10:58:13.902 2663-10077/com.google.android.gms E/ChromeSync: [Sync,SyncIntentOperation] Error handling the intent:
    Intent { act=android.intent.action.PACKAGE_ADDED
    dat=package:com.example.iacopo.alarmgroup flg=0x4000010
    cmp=com.google.android.gms/.chimera.GmsIntentOperationService (has
    extras) }.</p>
  </blockquote>
  
  <p>How can I fix it? Thanks. And this code doesn't create an icon of alarm in the notification panel, near the clock.</p>
  
  <pre><code>public class MainActivity extends AppCompatActivity {
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
  
          Calendar cal = Calendar.getInstance();
          cal.setTimeInMillis(System.currentTimeMillis());
          cal.clear();
          cal.set(2018,1,5,10,0);
  
          AlarmManager alarmMgr = (AlarmManager)getSystemService(Context.ALARM_SERVICE);
          Intent intent = new Intent(MainActivity.this, AlarmReceiver.class);
          this.startService(intent);
          PendingIntent pendingIntent = PendingIntent.getBroadcast(MainActivity.this, 0, intent, 0);
          alarmMgr.set(AlarmManager.RTC_WAKEUP, cal.getTimeInMillis(), pendingIntent);
      }
  }
  </code></pre>
  
  <p>and the receiver</p>
  
  <pre><code>public class AlarmReceiver extends BroadcastReceiver {
      @Override
      public void onReceive(Context context, Intent intent) {
          Log.i("test","ok");
      }
  }
  </code></pre>