Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to solve Android Error type 3?

Below manifest formation I am using into my project but whenever I am trying to run my emulator, I am getting below mentioned error. please give me a exact solution for solving the error.

Tools informations

Android studio 
Nexus S API 22 (android 5.1.1)

My Manifest file formate

<?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>

My Error :

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!
like image 850
android Avatar asked Nov 27 '22 02:11

android


2 Answers

After searching it for so long what helped me was.

1) File -> Sync Project with Gradle Files.

Or

This helped me too.

2) Uninstalling the previous installed application from emulator/mobile and re-run it and install it again.

like image 147
Maz341 Avatar answered Dec 08 '22 00:12

Maz341


Uninstall your app via 'adb' in the terminal: adb uninstall com.example.yourapp

like image 22
Alektas Avatar answered Dec 07 '22 23:12

Alektas