android - 活动必须被导出或包含一个意图过滤器——即使有一个意图过滤器
问题描述
IDK 为什么会这样,那里有一个意图过滤器。我想我错过了一个小问题,另一个观点可以更快地检测到/谢谢!
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.caloriecalculator">
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".Login"></activity>
<activity android:name=".MainActivity" />
<activity
android:name=".Register"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
解决方案
推荐阅读
- c++ - if 语句中的逻辑运算符是否相互影响?
- php - 选择值时如何自动完成php表单上的多个字段
- python - 无法在散景图中更新 CDSView
- github - 当您关闭 Github 上的里程碑时,未解决的问题会发生什么?
- grafana - 在 Grafana 中将 InfluxDB 数据源中的二进制事件显示为(开/关)单元跳转
- javascript - 在 WordPress 子主题中使用 TypeScript
- javascript - 如何设置使用 window.open 打开的新窗口的宽度和高度
- xcode - 如何在 iOS 中使用缩放的 UI 内容?
- python - 有没有办法在 Plotly for Python 的条形图中突出显示(粗体)条形图的名称?
- javascript - 遍历 Javascript 中的字典列表