Android M 应用程序链接:未知的自动验证属性
Android M App links: unknown autoVerify attribute
将 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'
将 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'