我正在 android studio 中使用 actionbar sherlock 构建一个演示应用程序,我遇到了问题,在以下链接中提到:-上一个问题 https://stackoverflow.com/questions/17945111/actionbar-sherlock-with-android-studio-0-2-2
现在,在遵循上面链接上发布的回复后,我做了一些更改,现在我面临着这个
Gradle: Execution failed for task ':SherlockTest:processDebugManifest'.
> Manifest merging failed. See console for more info.
我的应用程序清单文件是:-
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.sherlocktest"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="10"
android:targetSdkVersion="16" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name="com.example.sherlocktest.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>
</manifest>
操作栏 Sherlock 清单文件是:-
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
android:versionCode="440"
android:versionName="4.4.0"
package="com.actionbarsherlock">
<uses-sdk
android:minSdkVersion="10"
android:targetSdkVersion="16"/>
<application/>
</manifest>
我无法弄清楚这里出了什么问题,请帮忙
确保在所有 build.gradle 脚本中 minSdkVersion 和 targetSdkVersion 与清单中的内容相对应:
android {
defaultConfig {
minSdkVersion 10
targetSdkVersion 16
}
}
这对我有用,我希望它对你有用,干杯。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)