将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'
对此有什么正确的解决方法?
答案 0 :(得分:1)
根据setting up the Android M SDK,您必须专门编译和定位M:
compileSdkVersion设置为
'android-MNC'
minSdkVersion设置为
'MNC'
targetSdkVersion设置为
'MNC'