google_play_services_version not found

那年仲夏 提交于 2019-12-24 07:09:50

问题


I'm trying to use google analytics, I'm sure i did what I was suppose to.

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.dose.apps.brainnoodles" >



    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />


<application
    android:allowBackup="true"
    android:icon="@drawable/official_launcher_icon1"
    android:label="@string/app_name"
    android:theme="@style/AppTheme"


>


    <meta-data
        android:name="com.google.android.gms.version"
        android:value="@integer/google_play_services_version" />

here the redness of the messagehttp://i.imgur.com/dP76cxr.png


回答1:


Go to Android SDK Manager (on "Window" option in eclipse), and make sure the google_play_services are installed:




回答2:


I think the <meta-data android:name="com.google.android.gms.version" .../> element is optional. You can remove it from your ApplicationManifest.xml and Analytics will function correctly. You still need to add Google Play services to your app project.




回答3:


Please do Build--> Make Project in your Android Studio first, then Run your App.



来源:https://stackoverflow.com/questions/29020856/google-play-services-version-not-found

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!