google_play_services_version not found

2019-08-02 14:23发布

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

3条回答
淡お忘
2楼-- · 2019-08-02 15:05

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

查看更多
男人必须洒脱
3楼-- · 2019-08-02 15:11

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.

查看更多
【Aperson】
4楼-- · 2019-08-02 15:17

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

enter image description here

查看更多
登录 后发表回答