简体   繁体   English

Google应用索引是否需要minSdkVersion 9?

[英]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.

相关问题 应用索引后,应用仍未显示在Google搜索结果中 - App Not showing in Google Search results even after App-Indexing 应用程序索引错误 - java.lang.NoClassDefFoundError:解析失败:Lcom / google / android / gms / appindexing / AppIndex - App-indexing Error - java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/appindexing/AppIndex 这是用于Android中的应用程序编制索引的链接元素的正确格式吗? - Is this a proper format of link element for app-indexing in Android? Google Play为Android应用显示错误的minSdkVersion - Google Play shows wrong minSdkVersion for Android app Android App-Google Play开发者控制台是否允许您降级minSDKVersion - Android App - Does Google Play Developer Console allow you to downgrade your minSDKVersion Android在Google Play上发布应用的优化提示(检查targetSdkVersion和minSdkVersion) - android publish app on google play optimization tips (check targetSdkVersion and minSdkVersion) 在Google Play上更新应用程序时,可以将minsdkversion从5更改为8吗? - Can change minsdkversion from 5 to 8 while updating the app on google play? Google Play商店:应用程序不需要任何其他特殊权限 - Google Play Store: App does not require any additional special permissions 谷歌播放控制台中的数据安全表单是否需要发布应用程序? - Data safety form in google play console does it require a publishing of the app? 在我的应用程序中实现Google索引编制 - implementing Google indexing in my App
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM