gpt4 book ai didi

android - list 中的应用程序标签向我展示 [Google 搜索无法将应用程序编入索引;考虑添加至少一个带有 ACTION-VIEW Intent 过滤器的 Activity ]

转载 作者:数据小太阳 更新时间:2023-10-29 02:43:55 25 4
gpt4 key购买 nike

manifest 中添加类似 service 的行后,我正在尝试在我的应用程序中添加通知服务....标记 Application 显示我不知道这个消息是什么意思,

enter image description here

  <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="ddd">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<meta-data
android:name="com.google.firebase.messaging.default_notification_icon"
android:resource="@mipmap/animal" />
<meta-data
android:name="com.google.firebase.messaging.default_notification_color"
android:resource="@color/colorPrimary" />
<activity
android:name=".Splashscreen"
android:configChanges="orientation|screenSize"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustResize"
android:label="@string/app_name"
android:theme="@android:style/Theme.Holo.Light.NoActionBar.Fullscreen">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:configChanges="orientation|screenSize"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustResize"
android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<service
android:name=".MyFirebaseMessagingService">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT"/>
</intent-filter>
</service>
</application>
</manifest>

最佳答案

Your Solution is here

您不能根据 google 索引在多个 Activity 标签中编写以下代码。

因此,从所有 Activity 标签中删除此代码,只需在主要 Activity 标签上键入一次

<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>

关于android - list 中的应用程序标签向我展示 [Google 搜索无法将应用程序编入索引;考虑添加至少一个带有 ACTION-VIEW Intent 过滤器的 Activity ],我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43701114/

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