android - 清单合并失败并出现多个错误,请参阅日志如何解决?
问题描述
安卓清单:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.mkrstudios.switchstuff">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<permission
android:name="net.simplifiedcoding.androidgcm.permission.C2D_MESSAGE"
android:protectionLevel="signature" />
<uses-permission android:name="net.simplifiedcoding.androidgcm.permission.C2D_MESSAGE" />
<uses-permission android:name="net.simplifiedcoding.androidgcm.permission.C2D_MESSAGE" />
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:usesCleartextTraffic="true"
android:theme="@style/Theme.SwitchStuff">
<activity android:name=".SignInActivity"></activity>
<activity android:name=".LoginActivity">
<intent-filter>
<category android:name="android.intent.category.LAUNCHER" />
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>
<!-- GCM Receiver -->
<receiver
android:name="com.google.android.gms.gcm.GcmReceiver"
android:exported="true"
android:permission="com.google.android.c2dm.permission.SEND">
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
<category android:name="com.gnirt69.gcmexample" />
</intent-filter>
</receiver>
<!-- GCM Receiver Service -->
<service
android:exported="false"
android:name="GCMPushReceiverService">
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
</intent-filter>
</service>
<!-- GCM Registration Intent Service -->
<service
android:exported="false"
android:name="GCMRegistrationIntentService">
<intent-filter>
<action android:name="com.google.android.gms.iid.InstanceID" />
</intent-filter>
</service>
<activity android:name=".Principal" />
<activity android:name=".MainActivity" />
</application>
</manifest>
错误:
FAILURE:构建失败并出现异常。
- 出了什么问题:任务“:app:processDebugMainManifest”执行失败。
清单合并失败并出现多个错误,请参阅日志
尝试:使用 --stacktrace 选项运行以获取堆栈跟踪。使用 --info 或 --debug 选项运行以获得更多日志输出。运行 --scan 以获得完整的见解。
在https://help.gradle.org获得更多帮助
在 35 秒内构建失败 9 个可操作的任务:3 个已执行,6 个是最新的
日志猫
解决方案
推荐阅读
- php - Laravel 命令计划无法正常工作
- playframework - 如何使用 sbt-native-packager 插件 v1.9.2 并修复“未找到”错误?
- go - 错误:获取广播客户端时出错:订购者客户端无法连接到订购者:7050:未能创建新连接:上下文截止日期
- flutter - 输入文本后点击 Flutter 集成测试中的 enter/done/return 按钮
- firebase - Firebase 查询未获取具有特定字段的文档
- java - 媒体播放器安卓
- swiftui - 如何在自定义 SwiftUI 视图上添加自定义点击处理程序?
- java - RxJava2 - 将对象处理的结果分组到 Map
> - sql - 为什么在表 (acct_trans) 中插入事务详细信息时出现 oracle 存储过程错误?
- sql-server - sql中的多个数据库创建脚本