问题描述
运行项目报错:Manifest merger failed with multiple errors, see logs
命令行输入:gradlew processDebugManifest --stacktrace寻找问题:
D:\coding\NSIN_Android4.1\app\src\main\AndroidManifest.xml Error:
Attribute data@scheme at AndroidManifest.xml requires a placeholder substitution but no value for is provided.
解决办法:
<activity
android:name="com.tencent.tauth.AuthActivity"
android:launchMode="singleTask"
android:noHistory="true">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="${qqappid}" />
</intent-filter>
scheme标签设置占位符
项目的build.gradle的android{}模块中添加
android{
defaultConfig {
*******************
manifestPlaceholders = [qqappid:"自己的qqappid"]
}
}
问题解决