[英]Does Google app-indexing require minSdkVersion 9?
I'm trying to integrate google's app indexing into my app. 我正在尝试将Google的应用程序索引集成到我的应用程序中。 One of the steps is to include Google play services http://developer.android.com/google/play-services/setup.html
步骤之一是包括Google Play服务http://developer.android.com/google/play-services/setup.html
Setting up as seen in the link requires adding two lines: 如链接所示进行设置需要添加两行:
compile 'com.google.android.gms:play-services:5.0.77'
<meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />
However when I add these lines, I get this error when I try to build: 但是,当我添加这些行时,在尝试构建时出现此错误:
Error:Execution failed for task :MyApp:processDebugManifest. Manifest merging failed. See console for more info.
After looking around on StackOverflow, I found that this is fixed by changing my minSdkVersion from 8 to 9. 环顾StackOverflow之后,我发现可以通过将minSdkVersion从8更改为9来解决此问题。
Does this mean I have to use a min sdk of 9 for app indexing? 这是否意味着我必须使用9的最小sdk进行应用程序索引? Or is there another way around this?
还是有其他解决方法?
Thanks. 谢谢。
Yes, as of Google Play Services 4.0 (released back in October 2013): 是的,自Google Play服务4.0 (于2013年10月发布)起:
With over 97% of devices now running Android 2.3 (Gingerbread) or newer platform versions, we're dropping support for Froyo from this release of the Google Play services SDK in order to make it possible to offer more powerful APIs in the future.
由于现在有超过97%的设备运行Android 2.3(姜饼)或更新的平台版本,因此我们从此版本的Google Play服务SDK中删除了对Froyo的支持,以便将来可以提供更强大的API。 That means you will not be able to utilize these new APIs on devices running Android 2.2 (Froyo).
这意味着您将无法在运行Android 2.2(Froyo)的设备上使用这些新API。
This includes app indexing which were introduced in the recent Google Play Services 5.0 . 这包括在最近的Google Play服务5.0中引入的应用程序索引编制 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.