have you declared this activity in your AndroidManifest.xml?

1

Hello, I created a Data Entry Activity and another of "Result", when the button event is activated, to perform the calculation and to open the activity Result, the error appears that was not declared in the manifest. Can anyone help?

My Manifest

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="uerj.normal">

    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:supportsRtl="true"
        android:theme="@style/AppTheme">
        <activity android:name=".Menu_Principal">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity android:name=".Entrada_Dados">
        <activity android:name=".Resultado" />
        </activity>


    </application>

</manifest>

Error

    
asked by anonymous 12.02.2017 / 22:35

1 answer

2

The declaration of the Activity Result is within a couple of <activity></activity> tags.

<activity android:name=".Entrada_Dados"> Falta um / antes de >
<activity android:name=".Resultado" />
</activity> Está a mais

Change this way:

<application
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:supportsRtl="true"
    android:theme="@style/AppTheme">
    <activity android:name=".Menu_Principal">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
    <activity android:name=".Entrada_Dados"/>
    <activity android:name=".Resultado" />

</application>
    
12.02.2017 / 22:55