三年没碰过安卓开发了,最近要做个小调研,在获取ADID的时候遇到了一些麻烦,想麻烦高手帮忙看看
用AndroidStudio,已经将别人发给我的google-play-services.jar放入lib
在Activity代码中起子线程执行代码:
adInfo[0] = AdvertisingIdClient.getAdvertisingIdInfo(getApplicationContext());
这句话出错:
java.lang.IllegalStateException: The meta-data tag in your app's AndroidManifest.xml does not have the right value. Expected 4030500 but found 9452000. 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" />
我已经配置了:
compile 'com.google.android.gms:play-services:9.4.0'
和
<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
我对AndroidStudio不太熟,手头也没别的IDE,mac系统,麻烦高手帮忙看看问题出在哪,如果有配置问题应该如何配置,谢谢!
用AndroidStudio,已经将别人发给我的google-play-services.jar放入lib
在Activity代码中起子线程执行代码:
adInfo[0] = AdvertisingIdClient.getAdvertisingIdInfo(getApplicationContext());
这句话出错:
java.lang.IllegalStateException: The meta-data tag in your app's AndroidManifest.xml does not have the right value. Expected 4030500 but found 9452000. 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" />
我已经配置了:
compile 'com.google.android.gms:play-services:9.4.0'
和
<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
我对AndroidStudio不太熟,手头也没别的IDE,mac系统,麻烦高手帮忙看看问题出在哪,如果有配置问题应该如何配置,谢谢!