" /> 设置 compileSdkV-6ren">
gpt4 book ai didi

安卓 M 应用链接 : unknown autoVerify attribute

转载 作者:行者123 更新时间:2023-11-29 01:30:54 26 4
gpt4 key购买 nike

整合 App Links进入我的应用程序,我将此代码放入 AndroidManifest:

<intent-filter android:autoVerify="true"> 
<action android:name="android.intent.action.VIEW" />

<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />

<data android:scheme="@string/deep_link_scheme" />
<data android:scheme="http" android:host="<my host>" />
<data android:scheme="https" android:host="<my host>" />
</intent-filter>

设置

compileSdkVersion 22
buildToolsVersion "22.0.1"
targetSdkVersion 22

我有编译时错误:

No resource identifier found for attribute 'autoVerify' in package 'android'

什么是正确的解决方法?

最佳答案

根据 setting up the Android M SDK ,您必须专门编译和定位 M:

  • compileSdkVersion is set to 'android-MNC'

  • minSdkVersion is set to 'MNC'

  • targetSdkVersion is set to 'MNC'

关于安卓 M 应用链接 : unknown autoVerify attribute,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31250828/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com