zoukankan      html  css  js  c++  java
  • Android Studio 出现Activity supporting ACTION_VIEW is not set as BROWSABLE错误

    1 <activity android:name=".ThirdActivity">
    2     <intent-filter>
    3         <action android:name="android.intent.action.VIEW" />
    4 
    5         <category android:name="android.intent.category.DEFAULT" />
    6         <data android:scheme="http" />
    7     </intent-filter>
    8 </activity>

    初学者在学安卓的时候,在《第一行代码》中,出现:

    Activity supporting ACTION_VIEW is not set as BROWSABLE less... (Ctrl+F1)
    Inspection info:Ensure the URL is supported by your app, to get installs and traffic to your app from Google Search.

    Issue id: AppLinkUrlError

    More info: https://g.co/AppIndexing/AndroidStudio

    需要再添加一个catagory:BROWSABLE

    1 <activity android:name=".ThirdActivity">
    2     <intent-filter>
    3         <action android:name="android.intent.action.VIEW" />
    4 
    5         <category android:name="android.intent.category.DEFAULT" />
    6         <category android:name="android.intent.category.BROWSABLE"/>
    7         <data android:scheme="http" />
    8     </intent-filter>
    9 </activity>
  • 相关阅读:
    86. 分隔链表
    85. 最大矩形
    84. 柱状图中最大的矩形
    82. 删除排序链表中的重复元素 II
    80. 删除排序数组中的重复项 II
    77. 组合
    java-xml
    java-反射
    springboot解决跨域问题(CorsConfig )
    解决oracle锁表
  • 原文地址:https://www.cnblogs.com/lihuawei/p/10519840.html
Copyright © 2011-2022 走看看