title: Android Manifest Validate errors with uses-permissions
body: <p>So, I am trying to use the built in contact picker in my android application, but I got the following error for this line:</p>
  
  <pre><code>  cursor = getContext().getContentResolver().query(ContactsContract.CommonDataKinds.Phone.CONTENT_URI,null,
                              ContactsContract.CommonDataKinds.Phone.CONTACT_ID +" = "+ id,null, null);
  </code></pre>
  
  <p>The error:</p>
  
  <pre><code>Permission Denial: reading com.android.providers.contacts.ContactsProvider2 uri content://com.android.contacts/data/phones from pid=11135, uid=10057 requires android.permission.READ_CONTACTS, or grantUriPermission()
  </code></pre>
  
  <p>So, I figured I have to add the uses-permission in my AndroidManifest.xml like so (this is my manifest:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android" package="balevski.meetme" &gt;
  &lt;uses-permission android:name="android.permission.READ_CONTACTS"/&gt;
  &lt;application
      android:allowBackup="true"
      android:icon="@mipmap/ic_launcher"
      android:label="@string/app_name"
      android:theme="@style/AppTheme" &gt;
      &lt;activity
          android:name=".MainActivity"
          android:label="@string/app_name"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.MAIN" /&gt;
              &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
  &lt;/application&gt;
  &lt;/manifest&gt;
  </code></pre>
  
  <p>So, I rebuilt my project after adding the READ_CONTACTS permission, and I still get the same issue.</p>
  
  <p>Next, I validated my AndroidManifest.xml file, and the following errors are shown:</p>
  
  <pre><code>C:\Users\dbale\AndroidStudioProjects\MeetMe\app\src\main\AndroidManifest.xml
  Error:(2, 97) cvc-elt.1: Cannot find the declaration of element 'manifest'.
  Error:(1, 56) s4s-elt-schema-ns: The namespace of element 'x' must be from the schema namespace, 'http://www.w3.org/2001/XMLSchema'.
  Error:(1, 56) s4s-elt-invalid: Element 'x' is not a valid element in a schema document.
  Error:(1, 56) schema_reference.4: Failed to read schema document 'null', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not &lt;xsd:schema&gt;.
  </code></pre>
  
  <p>Here is my Gradle app file:</p>
  
  <pre><code>apply plugin: 'com.android.application'
  
  android {
  compileSdkVersion 23
  buildToolsVersion "23.0.1"
  
  defaultConfig {
      applicationId "balevski.meetme"
      minSdkVersion 7
      targetSdkVersion 23
      versionCode 1
      versionName "1.0"
  }
  buildTypes {
      release {
          minifyEnabled false
          proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
      }
  }
  }
  
  dependencies {
  compile fileTree(include: ['*.jar'], dir: 'libs')
  compile 'com.android.support:appcompat-v7:23.0.1'
  compile 'com.android.support:support-v4:23.0.1'
  }
  </code></pre>
  
  <p>I am new the android studio and if someone can help me figure out this issue!</p>
  
  <p>Much appreciated.</p>