title: Adding application to manifest: attribute Android: name is not allowed here
body: <p>I'm trying to add an application to my manifest but I receive and error: <code>attribute Android: name is not allowed here</code></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
          package="com.test.app" &gt;
  
          &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
          &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
  
  
  
    &lt;application
          android:allowBackup="true"
          android:icon="@drawable/ic_launcher"
          android:label="@string/app_name"
          android:theme="@style/AppTheme" &gt;
          &lt;activity
              android:screenOrientation="portrait"
              android:name="com.test.app.activity.MainActivity"
              android:label="@string/app_name" &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;meta-data android:name="com.google.android.gms.version"
              android:value="@integer/google_play_services_version" /&gt;
  
      &lt;/application&gt;
  
      &lt;application
          android:name="com.test.app.connection.AppController" &lt;--- problem
          android:allowBackup="true"
          android:icon="@drawable/ic_launcher"
          android:label="@string/app_name"
          android:theme="@style/AppTheme" &gt;
          &lt;!-- all activities and other stuff --&gt;
      &lt;/application&gt;
  
  &lt;/manifest&gt;
  </code></pre>