简体   繁体   English

表现出多个问题,活动元素必须是直接子元素

[英]manifest multiple problems the activity element must be a direct child

i have added a splash screen but now i'm facing multiple problems saying for the first -the activity element must be a direct child for the application element 我添加了一个启动屏幕,但现在我面临多个问题,首先要说-activity元素必须是application元素的直接子元素

i wish you can help me this is my code 我希望你能帮我这是我的代码

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="imamalsajadsayings.android.com"
android:versionCode="1"
android:versionName="1.0" >

<uses-sdk
    android:minSdkVersion="7"
    android:targetSdkVersion="19" />

<application
    android:allowBackup="true"
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/splashScreenTheme" />    
    <activity
        android:name="imamalsajadsayings.android.com.MainActivity"
        android:label="@string/app_name" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
</application>

Remove / from application tag, replace application with below 从应用标签中删除/从应用标签中替换为以下内容

<application
    android:allowBackup="true"
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/splashScreenTheme" >    

Remove / from application tag 从应用标签中删除/

<application
    android:allowBackup="true"
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/splashScreenTheme" /> 

to

<application
    android:allowBackup="true"
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/splashScreenTheme" >   

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM