title: Error in manifest file during signed apk creation
body: <p>There is no error in my problem while compiling it and it runs good in device.When i am trying to create an signed apk it shows error in manifest.xml file which is shown below</p>
  
  <pre><code>E:\updated one\Wed Studio\app\src\main\AndroidManifest.xml:842: Error: The &lt;activity&gt; element must be a direct child of the &lt;application&gt; element [WrongManifestParent]
              &lt;activity
              ^
  E:\updated one\Wed Studio\app\src\main\AndroidManifest.xml:845: Error: The &lt;activity&gt; element must be a direct child of the &lt;application&gt; element [WrongManifestParent]
              &lt;activity
              ^
  
     Explanation for issues of type "WrongManifestParent":
     The &lt;uses-library&gt; element should be defined as a direct child of the
     &lt;application&gt; tag, not the &lt;manifest&gt; tag or an &lt;activity&gt; tag. Similarly,
     a &lt;uses-sdk&gt; tag much be declared at the root level, and so on. This check
     looks for incorrect declaration locations in the manifest, and complains if
     an element is found in the wrong place.
  </code></pre>
  
  <p>Tell me the possible solution to solve this issue friends
  Thank you in advance.</p>
  
  <p>manifest.xml</p>
  
  <pre><code>    &lt;!-- android:installLocation="preferExternal" --&gt;
      &lt;uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /&gt;
      &lt;uses-permission android:name="com.android.vending.BILLING" /&gt;
      &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_LOCATION" /&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /&gt;
      &lt;uses-permission android:name="android.permission.VIBRATE" /&gt;
      &lt;uses-permission
          android:name="android.permission.READ_CONTACTS"
          android:required="false" /&gt;
      &lt;uses-permission android:name="android.permission.GET_ACCOUNTS" /&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
      &lt;uses-permission android:name="android.permission.CAMERA" /&gt;
      &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /&gt;
      &lt;!--
      &lt;uses-feature android:name="android.hardware.camera" /&gt;
      &lt;uses-feature android:name="android.hardware.camera.autofocus" /&gt;
      --&gt;
      &lt;uses-permission android:name="android.permission.FLASHLIGHT" /&gt;
   &lt;application
          android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
          android:icon="@drawable/wedicon"
          android:label="iWedplanner"
          android:theme="@android:style/Theme.NoTitleBar" &gt;
          &lt;activity android:name="com.google.android.gms.ads.AdActivity" /&gt;
  
          &lt;meta-data
              android:name="com.google.android.gms.version"
              android:value="@integer/google_play_services_version" /&gt;
  
          &lt;activity
              android:name=".Frontpage"
              android:label="iWedPlanner" &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;uses-library android:name="com.google.android.maps" /&gt;
  &lt;activity
              android:name=".Fsearch"
              android:label="@string/title_activity_fsearch" /&gt;
          &lt;activity
              android:name=".Rsvp_listeng"
              android:label="@string/title_activity_rsvp_listeng" /&gt;
          &lt;activity
              android:name=".Rsvp_guestnores"
              android:label="@string/title_activity_rsvp_guestnores" /&gt;
          &lt;activity
              android:name=".Engagement_edit"
              android:label="@string/title_activity_engagement_edit" /&gt;
          &lt;activity android:name=".Reception_edit" /&gt;
          &lt;activity android:name=".Reception_Tabledetail" /&gt;
          &lt;activity android:name=".Wedding_edit" /&gt;
          &lt;activity android:name=".Wedding_Tabledetail" /&gt;
     &lt;/application&gt;
   &lt;activity android:name=".Countdownsongplay" /&gt;
          &lt;activity android:name=".Wedtime" /&gt;
          &lt;activity android:name=".Unitcal" /&gt;
          &lt;activity android:name=".Heart" /&gt;
          &lt;activity android:name=".Kisses" /&gt;
          &lt;activity android:name=".Phrase" /&gt;
          &lt;activity android:name=".Remainshow" /&gt;
          &lt;activity android:name=".ColorPickerActivity" /&gt;
          &lt;activity android:name=".Logout" /&gt;
          &lt;activity
              android:name="jim.h.common.android.zxinglib.CaptureActivity"
              android:configChanges="orientation|keyboardHidden"
              android:screenOrientation="landscape"
              android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
              android:windowSoftInputMode="stateAlwaysHidden" /&gt;
          &lt;activity android:name=".Hair" /&gt;
          &lt;activity android:name=".Hair1" /&gt;
          &lt;activity android:name=".Inapp" /&gt;
          &lt;activity
              android:name=".websiteview"
              android:label="@string/title_activity_websiteview" &gt;
          &lt;/activity&gt;
          &lt;activity
              android:name=".CountdownSlideshow"
              android:label="@string/title_activity_countdown_slideshow" &gt;
          &lt;/activity&gt;
          &lt;activity
              android:name=".InappCountdown"
              android:label="@string/title_activity_inapp_countdown" &gt;
          &lt;/activity&gt;
          &lt;activity
              android:name=".InappSeating"
              android:label="@string/title_activity_inapp_seating" &gt;
          &lt;/activity&gt;
  
  &lt;/manifest&gt;
  </code></pre>