title: duplicate registration for activity "androidstutio"
body: <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
  package="android.testlocalserver"&gt;
  
  &lt;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"&gt;
      &lt;activity android:name=".MainActivity"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.MAIN" /&gt;
              &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
          &lt;/intent-filter&gt;
  
      &lt;/activity&gt;
      &lt;activity android:name=".confirmActivity" /&gt;
      &lt;activity
          android:name=".confirmActivity"
  
          android:label="@string/title_activity_confrim"
          android:theme="@style/AppTheme.NoActionBar"&gt;&lt;/activity&gt;
  &lt;/application&gt;
  </code></pre>
  
  <p></p>
  
  <p>Below is the error:</p>
  
  <pre><code>error:at android:name=".confirmActivity" 
  duplicate registration for activity 
  android.testlocalservice.confirmactivity
  </code></pre>
  
  <p>I don't why this is happenning and i read some answers and says select the mode !!
  how can i set the mode of activity ,why ?</p>