由于 PushNotification 插件,在 Android 上部署时出错
Error deploying on Android, caused by PushNotification plugin
尝试在 Android 上部署时出错,IOS 工作正常。
当我添加 PushNotification 插件时出现错误。
:apkDebug 失败
失败:构建失败,出现异常。
出了什么问题:
任务“:apkDebug”执行失败。
com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK LICENSE
File 1: /Users/antoniopereira/.gradle/caches/modules-2/files-2.1/com.google.gms/google-services/3.0.0/ee538ce9cf4148485e43017c5542202b8c78ff8e/google-services-3.0.0.jar
File 2: /Users/antoniopereira/.gradle/caches/modules-2/files-2.1/com.google.gms/google-services/3.0.0/ee538ce9cf4148485e43017c5542202b8c78ff8e/google-services-3.0.0.jar
尝试:
运行 使用 --stacktrace 选项获取堆栈跟踪。 运行 使用 --info 或 --debug 选项以获得更多日志输出。
构建失败
我找到了排除的简单且已经完成的解决方案:
包装选项{
exclude 'LICENSE'
}
尝试在 Android 上部署时出错,IOS 工作正常。 当我添加 PushNotification 插件时出现错误。
:apkDebug 失败
失败:构建失败,出现异常。
出了什么问题: 任务“:apkDebug”执行失败。
com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK LICENSE File 1: /Users/antoniopereira/.gradle/caches/modules-2/files-2.1/com.google.gms/google-services/3.0.0/ee538ce9cf4148485e43017c5542202b8c78ff8e/google-services-3.0.0.jar File 2: /Users/antoniopereira/.gradle/caches/modules-2/files-2.1/com.google.gms/google-services/3.0.0/ee538ce9cf4148485e43017c5542202b8c78ff8e/google-services-3.0.0.jar
尝试: 运行 使用 --stacktrace 选项获取堆栈跟踪。 运行 使用 --info 或 --debug 选项以获得更多日志输出。
构建失败
我找到了排除的简单且已经完成的解决方案:
包装选项{
exclude 'LICENSE'
}