title: table raw_contacts has no column named raw_contact_id
body: <p>I am inserting a new contact like this in my android application:
  I am adding my Java Class The Error I got is Error Inserting of Data...............</p>
  
  <p>I did not Understand What I am missing thats why I am facing this error</p>
  
  <p>Here is My Java Class</p>
  
  <p>private static void setContact(Context mContext,Account account){
          ContentResolver contentResolver=mContext.getContentResolver();</p>
  
  <pre><code>        int rawContactInsertIndex = operationList.size();
  
  
              operationList.add(ContentProviderOperation.newInsert(addCallerIsSyncAdapterParameter(ContactsContract.RawContacts.CONTENT_URI,true))
                      .withValue(ContactsContract.RawContacts.ACCOUNT_TYPE,account.type)
                      .withValue(ContactsContract.RawContacts.ACCOUNT_NAME,account.name)
                      .build());
  
              operationList.add(ContentProviderOperation.newInsert(addCallerIsSyncAdapterParameter(ContactsContract.RawContacts.CONTENT_URI,true))
                      .withValueBackReference(ContactsContract.Data.RAW_CONTACT_ID,rawContactInsertIndex)
                      .withValue(ContactsContract.Data.MIMETYPE,ContactsContract.CommonDataKinds.StructuredName.CONTENT_ITEM_TYPE)
                      .withValue(ContactsContract.CommonDataKinds.StructuredName.DISPLAY_NAME,"Alex")
                      .build());
  
              operationList.add(ContentProviderOperation.newInsert(addCallerIsSyncAdapterParameter(ContactsContract.RawContacts.CONTENT_URI,true))
                      .withValueBackReference(ContactsContract.Data.RAW_CONTACT_ID,rawContactInsertIndex)
                      .withValue(ContactsContract.Data.MIMETYPE,ContactsContract.CommonDataKinds.Phone.CONTENT_ITEM_TYPE)
                      .withValue(ContactsContract.CommonDataKinds.Phone.NUMBER,"+99999999")
                      .build());
  
              operationList.add(ContentProviderOperation.newInsert(ContactsContract.RawContacts.CONTENT_URI)
                      .withValueBackReference(ContactsContract.Data.RAW_CONTACT_ID,rawContactInsertIndex)
                      .withValue(ContactsContract.Data.MIMETYPE,"vnd.android.cursor.item/vnd.com.meetingapp.android.profile")
                      .withValue(ContactsContract.Data.DATA1,"Meet App")
                      .withValue(ContactsContract.Data.DATA2,"Meet App")
                      .withValue(ContactsContract.Data.DATA3,"Meet App")
                      .build());
  
  
              try {
                  contentResolver.applyBatch(ContactsContract.AUTHORITY, operationList);
                  Log.i("inPerformSync", "successfully registered!");
              } catch (Exception e) {
                  Log.i("inPerformSync", "register failed "+e.getMessage());
                  e.printStackTrace();
              }
  </code></pre>
  
  <p>I am getting this error:</p>
  
  <pre><code> E/SQLiteLog: (1) table raw_contacts has no column named raw_contact_id
  06-20 10:23:54.819 1610-11666/? E/SQLiteDatabase: Error inserting 
  raw_contact_id=79253 pinned=0 contact_id=null data1=Alex account_id=1 mimetype=vnd.android.cursor.item/name
      android.database.sqlite.SQLiteException: table raw_contacts has no column named raw_contact_id (code 1): , while compiling: INSERT INTO raw_contacts(raw_contact_id,pinned,contact_id,data1,account_id,mimetype) VALUES (?,?,?,?,?,?)
      #################################################################
      Error Code : 1 (SQLITE_ERROR)
      Caused By : SQL(query) error or missing database.
          (table raw_contacts has no column named raw_contact_id (code 1): , while compiling: INSERT INTO raw_contacts(raw_contact_id,pinned,contact_id,data1,account_id,mimetype) VALUES (?,?,?,?,?,?))
      #################################################################
          at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method)
          at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:1058)
          at android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:623)
          at android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:588)
          at android.database.sqlite.SQLiteProgram.&lt;init&gt;(SQLiteProgram.java:59)
          at android.database.sqlite.SQLiteStatement.&lt;init&gt;(SQLiteStatement.java:31)
          at android.database.sqlite.SQLiteDatabase.insertWithOnConflict(SQLiteDatabase.java:1607)
          at android.database.sqlite.SQLiteDatabase.insert(SQLiteDatabase.java:1479)
          at com.android.providers.contacts.ContactsProvider2.insertRawContact(ContactsProvider2.java:4975)
          at com.android.providers.contacts.ContactsProvider2.insertInTransaction(ContactsProvider2.java:4174)
          at com.android.providers.contacts.AbstractContactsProvider.insert(AbstractContactsProvider.java:139)
          at com.android.providers.contacts.ContactsProvider2.insert(ContactsProvider2.java:3441)
          at android.content.ContentProviderOperation.apply(ContentProviderOperation.java:307)
          at com.android.providers.contacts.AbstractContactsProvider.applyBatch(AbstractContactsProvider.java:240)
          at com.android.providers.contacts.ContactsProvider2.applyBatch(ContactsProvider2.java:3721)
          at android.content.ContentProvider$Transport.applyBatch(ContentProvider.java:328)
          at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:192)
          at android.os.Binder.execTransact(Binder.java:453)
  06-20 10:23:54.829 1610-11666/? E/DatabaseUtils: Writing exception to parcel
      android.content.OperationApplicationException: insert failed
          at android.content.ContentProviderOperation.apply(ContentProviderOperation.java:309)
          at com.android.providers.contacts.AbstractContactsProvider.applyBatch(AbstractContactsProvider.java:240)
          at com.android.providers.contacts.ContactsProvider2.applyBatch(ContactsProvider2.java:3721)
          at 
  
  android.content.ContentProvider$Transport.applyBatch(ContentProvider.java:328)
          at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:192)
          at android.os.Binder.execTransact(Binder.java:453)
  </code></pre>