清单合并失败,Android Studio中出现多个错误
因此,我是Android和Java的初学者.我刚刚开始学习.今天,当我尝试使用 Intent 时,我遇到了一个错误.
So, I am a beginner into Android and Java. I just began learning. While I was experimenting with Intent today, I incurred an error.
Error:Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed with multiple errors, see logs
我在这里找到了一些解决方案,并试图实现它们,但是没有用.
I found some solutions here and tried to implement them, but it did not work.
这是我的build.gradle:
This is my build.gradle :
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.0"
defaultConfig {
applicationId "com.example.rohan.petadoptionthing"
minSdkVersion 10
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:23.0.0'
}
这是我的AndroidManifest:
This is my AndroidManifest :
<?xml version="1.0" encoding="utf-8"?>
package="com.example.rohan.petadoptionthing" >
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name=".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>
<activity android:name=".Second"
/>
<activity android:name=".third"/>
<activity android:name=".MainActivity"/>
</application>
这是我从事编码工作的第一周,如果这真的很愚蠢,我感到抱歉.我真的很陌生,没有找到其他要问的地方.抱歉,如果我违反任何规则
This is my first week with coding, I am sorry if this is a really silly thing. I am really new to this and did not find any other place to ask. Sorry if I broke any rules
打开应用程序清单(AndroidManifest.xml
),然后单击编辑窗格底部的Merged Manifest
选项卡.检查下面的图像:
Open application manifest (AndroidManifest.xml
) and click on Merged Manifest
tab on bottom of your edit pane. Check the image below:
从图像中,您可以在右列中看到错误,尝试解决该错误.它可能会帮助某些人遇到相同的问题.在此处.
From image you can see Error in the right column, try to solve the error. It may help some one with the same problem. Read more here.