androidandroid-manifestgoogle-drive-realtime-api

Google Drive, meta-data tag in app's AndroidManifest.xml?


I used the Google Drive API to transfer files on device to Google Drive, but following error occurred after updated to new version.(android 4.4)

java.lang.IllegalStateException: A required meta-data tag in your app's AndroidManifest.xml does not exist. You must have the following declaration within the -application- element: meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />

Added following code in AndroidManifest.xml

meta-data android:name="com.google.android.gms.version" android:value="4030500" />

After modifying AndroidManifest.xml and clicking the file transfer button, Play Store will be launched and theGoogle Play Service app page will be displayed.

I don't know, what's wrong?


Solution

  • Update Drive API new version (drive-v2r106lv1.15.0-rc)