我对Android开发很新。我使用android studio创建了一个项目,并选择了我的第一个活动作为登录活动。在更改布局中的一些基本内容/尝试在java中添加一些功能之后,我想我要进行一次测试运行。在尝试构建apk并安装应用程序时,它在我的手机上安装得很好,但AIDE(一个开发Android应用程序)说没有找到启动器活动。这是我的清单文件:
包=" com.rrdevs.peerboard" >
<!-- To auto-complete the email text field in the login form with the user's emails -->
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.READ_PROFILE" />
<uses-permission android:name="android.permission.READ_CONTACTS" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name=".LoginActivity"
android:label="@string/app_name"
android:windowSoftInputMode="adjustResize|stateVisible" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.categor.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
那我错过了什么?我已经搜索了很多,但我找到了一个适用于我的场景的答案。任何帮助,将不胜感激。谢谢!
编辑:已更改
android.intent.categor.LAUNCHER
至
android.intent.category.LAUNCHER
它有效!感谢大家的建议!
答案 0 :(得分:6)
<category android:name="android.intent.categor.LAUNCHER" />
应该是
<category android:name="android.intent.category.LAUNCHER" />