【发布时间】:2016-01-25 04:10:06
【问题描述】:
在我的项目中使用的清单格式下方,但每当我尝试运行我的模拟器时,我都会遇到下面提到的错误。请给我一个解决错误的确切解决方案。
工具信息
Android studio
Nexus S API 22 (android 5.1.1)
我的清单文件格式
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.info.androidapp" >
<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="app"
android:supportsRtl="true"
android:theme="@style/AppTheme" >
<!-- Splash activity -->
<activity
android:name=".SplashActivity"
android:label="app"
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>
<!-- Login activity -->
<activity
android:name=".LoginActivity"
android:label="app"
android:theme="@android:style/Theme.Holo.Light.NoActionBar.Fullscreen">
</activity>
<!-- List activity -->
<activity
android:name=".listActivity"
android:label="app"
android:theme="@android:style/Theme.Holo.Light.NoActionBar.Fullscreen">
</activity>
</application>
</manifest>
我的错误:
Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.example.info.androidapp/.SplashActivity }
Error type 3
Error: Activity class {com.example.info.androidapp/com.example.info.androidapp.SplashActivity} does not exist.
NOTE : Sometimes I am facing Unfortunately, the process com.android.phone has stopped alert into emulator!
【问题讨论】:
-
放入build.gradle文件
-
对不起,我找不到你!
-
你为什么有
在所有 Activity 中,只保留一个 Activity @android -
@android : 将
Launcher意图只保留在一项活动中。!!从登录活动中删除..!! -
能否请您编辑我的代码!这对我很有帮助。我是安卓的新开发者!