title: android.support.v4.app does not exist
body: <blockquote>
    <p>..../cordova/sms_receiver/SmsReceiverPlugin.java:8: error: package
    android.support.v4.app does not exist
    import android.support.v4.content.ContextCompat;</p>
  </blockquote>
  
  <p>also:</p>
  
  <blockquote>
    <p>..../cordova/sms_receiver/SmsReceiverPlugin.java:121: error: cannot find symbol
    ActivityCompat.requestPermissions(this.cordova.getActivity(), new String[]{type}, requestCode);</p>
  </blockquote>
  
  <p>and:</p>
  
  <blockquote>
    <p>..../cordova/sms_receiver/SmsReceiver.java uses or overrides a deprecated API.</p>
  </blockquote>
  
  <p>Driving me nuts. Trying to build a cordova app for android. I've followed a ton of different google results to try and get rid of this error. </p>
  
  <p>Including adding this to plugin.xml:</p>
  
  <pre><code>&lt;framework src="com.android.support:support-v4:+" /&gt;
  </code></pre>
  
  <p>also a reference to a build.gradle file with:</p>
  
  <pre><code>dependencies: {
      compile 'com.android.support:support-v4:+'
  }
  </code></pre>
  
  <p>Also adding numerous paths to $PATH, selecting <em>everything</em> in Android SDK manager etc etc, nothing works!</p>
  
  <p>New to this I'll admit, this is on a Mac with Java 1.8 JDK installed. Tried 10.0 also.</p>
  
  <p>I've lost track of all the things I've tried. Please can someone put me out of my misery. </p>