<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.mirroreye">    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:supportsRtl="true"
        android:theme="@style/AppTheme">
        <activity android:name="com.example.mirroreye.welcome">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
      
    </application></manifest>
------------------------------------清单文件配置--------------------------------------------------
import android.os.Handler;
import android.support.v7.app.AppCompatActivity;
import android.view.Window;/**
 * Created by Administrator on 2017/4/18.
 */public class welcome extends MainActivity {    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.welcome);
        Handler handler = new Handler();
        //当计时结束,跳转至主界面
        handler.postDelayed(new Runnable() {
            @Override
            public void run() {
                Intent intent = new Intent(welcome.this, MainActivity.class);
                startActivity(intent);
                welcome.this.finish();
            }
        }, 3000);
    }
}
--------------------------------------------欢迎界面java文件------------------------------------

解决方案 »

  1.   

    你 MainActivity 这个活动忘记注册了吧。
      

  2.   


    改成这样, 如果解决了请结贴哦
    <manifest xmlns:android="http://schemas.android.com/apk/res/android"
        package="com.example.mirroreye">    <application
            android:allowBackup="true"
            android:icon="@mipmap/ic_launcher"
            android:label="@string/app_name"
            android:supportsRtl="true"
            android:theme="@style/AppTheme">
            <activity android:name="com.example.mirroreye.welcome">
                <intent-filter>
                    <action android:name="android.intent.action.MAIN" />                <category android:name="android.intent.category.LAUNCHER" />
                </intent-filter>
            </activity>
          
    <activity android:name="com.example.mirroreye. MainActivity">
            
            </activity>    </application></manifest>
      

  3.   

    Intent intent = new Intent(welcome.this, MainActivity.class); 这个貌似也错了
      

  4.   

    多看看别人写得好的例子,你这个写的实在是不伦不类的。
    错误是跳转到MainActivity,但是你没有注册它。
      

  5.   

    因为你没有注册你要跳转的Activity,所以跳转时就会崩溃,下面是你的源码,按照这个方式再试一下
    <?xml version="1.0" encoding="utf-8"?>
    <manifest xmlns:android="http://schemas.android.com/apk/res/android"
        package="com.example.mirroreye">    <application
            android:allowBackup="true"
            android:icon="@mipmap/ic_launcher"
            android:label="@string/app_name"
            android:supportsRtl="true"
            android:theme="@style/AppTheme">
            <activity android:name="com.example.mirroreye.welcome">
                <intent-filter>
                    <action android:name="android.intent.action.MAIN" />                <category android:name="android.intent.category.LAUNCHER" />
                </intent-filter>
            </activity>
     <- 在这下面添加你要跳转的Activity 名字 例如 ->

          <activity android:name="com.example.mirroreye.XXX"/>

        </application></manifest>