google map api v2, and older version of google play services lib

前端 未结 3 907
情深已故
情深已故 2021-01-12 14:08

I am going to use maps in my android application and I should use google play services. I read lots of q\\a here like this. In the mentioned question, the accepted answers s

3条回答
  •  被撕碎了的回忆
    2021-01-12 14:27

    I downloaded google play services r10 and used it in my app

    The above statement is the root cause of your problems. If you really used r10 (or even r12), than after removing

    
    

    from your AndroidManifest, you would not get this error:

    java.lang.IllegalStateException: The meta-data tag in your app's AndroidManifest.xml does not have the right value.  Expected 4030500 but found 0.  You must have the following declaration within the  element:     
    

    This error simply says, you are linked to 4.0.30 version of the Google Play services library.

    So the solution is to remove the above meta-data and making sure you link to one of the previous versions.

    If using gradle or maven, just set your dependency version to 3.2.65. If developing the old way, download Google Play services for Froyo in Android SDK Manager, copy that from sdk/extras/google/ into your working directory and in your project preferences choose this project as a library dependency project.

提交回复
热议问题