android - The <activity> element must be a direct child of the <application> element -


i wanted launch application, fails , gives me error. before, install .apk file, fails start @ all. began , following android developing tutorial.

<?xml version="1.0" encoding="utf-8"?>     <manifest xmlns:android="http://schemas.android.com/apk/res/android"         package="com.example.myfirstapp"         android:versioncode="1"         android:versionname="1.0" >          <uses-sdk             android:minsdkversion="8"             android:targetsdkversion="17" />          <application             android:allowbackup="true"             android:icon="@drawable/ic_launcher"             android:label="@string/app_name"             android:theme="@style/apptheme" >             <activity                 android:name="com.example.myfirstapp.mainactivity"                 android:label="@string/app_name" >                 <activity                     android:name="com.example.myfirstapp.displaymessageactivity"                     android:label="@string/title_activity_display_message"                     android:parentactivityname="com.example.myfirstapp.mainactivity" >                     <meta-data                         android:name="android.support.parent_activity"                         android:value="com.example.myfirstapp.mainactivity" >                         <intent-filter>                             <action android:name="android.intent.action.main" />                             <category android:name="android.intent.category.launcher" />                         </intent-filter>                     </meta-data>                 </activity>             </activity>         </application>      </manifest> 

you can't have nested activity tags inside manifest, fix issue , should work.


Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -