title: Android Lollipop Notification Icon setColor on Cordova
body: <p>I'm trying to set background color for small icon color on Lollipop notification by modifying the default GCMIntentService.java from Cordova PushPlugin plugin :</p>
  
  <blockquote>
    <p>GCMIntentService.java</p>
  </blockquote>
  
  <pre><code>[...]
  
  import android.os.Build;
  
  public void createNotification(Context context, Bundle extras)
  {
      [...]
  
      NotificationCompat.Builder mBuilder =
          new NotificationCompat.Builder(context)
              .setDefaults(defaults)
              .setWhen(System.currentTimeMillis())
              .setContentTitle(extras.getString("title"))
              .setTicker(extras.getString("title"))
              .setContentIntent(contentIntent)
              .setAutoCancel(true);
  
      if (Build.VERSION.SDK_INT &gt;= Build.VERSION_CODES.LOLLIPOP) {
          mBuilder
              .setSmallIcon(R.drawable.notification_icon)
              .setColor(getResources().getColor(R.color.main));
      } else {
          mBuilder.setSmallIcon(R.drawable.icon);
      }
  
      [...]
  }
  
  [...]
  </code></pre>
  
  <blockquote>
    <p>colors.xml</p>
  </blockquote>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;resources&gt;
     &lt;color name="main"&gt;#009ee5&lt;/color&gt;
  &lt;/resources&gt;
  </code></pre>
  
  <p>But, it doesn't work, the app crashes on build with the following error :</p>
  
  <pre><code>Error code 1 for command: ant with args: debug,-f,/Users/alex/Developpement/PhoneGap/myProject/platforms/android/build.xml,-Dout.dir=ant-build,-Dgen.absolute.dir=ant-gen
  ERROR running one or more of the platforms: Error: /Users/alex/Developpement/PhoneGap/myProject/platforms/android/cordova/run: Command failed with exit code 8
  You may not have the required environment or OS to run this project
  </code></pre>
  
  <p>If I comment "setColor" line, everything is fine (except the background color is missing), I just don't get why getColor make build fail.
  I'm using SDK 21.</p>
  
  <p><strong>EDIT :</strong>
  Updated sample code.</p>