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

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -