Error saying that Activity was not declared in Androidmanifest.xlm?

0

This is the code for my Androidmanifest.xml:

<uses-permission android:name="android.permission.INTERNET" />

<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=".Activitys.mainActivity"
        android:label="@string/app_name"
        android:theme="@style/AppTheme.NoActionBar">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
    <activity android:name=".Activitys.loginActivity" />
</application>

And this is the error:

  

Error running 'app': The activity 'loginActivity' is not declared in AndroidManifest.xml

Img:

    
asked by anonymous 25.12.2018 / 20:19

1 answer

1

What may happen is that you have one more file loginActivity or it does not exist in that directory.

To make sure it exists or which one you are pointing to, specify the full path of Activity to find out if it is really correct.

You can declare it this way:

<activity
   android:name="com.example.Activitys.loginActivity"
   android:label="@string/app_name" >
</activity>
    
26.12.2018 / 11:11