Sweet Alert Dialog 201910使用记录 + Manifest merger failed with multiple errors

本文详细记录了在AndroidStudio3.5.1环境下使用SweetAlertDialog库的过程,包括依赖添加、配置修改及解决Manifestmergerfailedwithmultipleerrors错误的方法。通过升级库版本和调整AndroidManifest.xml文件,成功解决了引用冲突问题。

Sweet Alert Dialog 201910使用记录(20191028记录修改 + Manifest merger failed with multiple errors)

PS. 处女作,不喜勿喷。

环境:
android studio 3.5.1
jdk 1.8
build:gradle:3.5.1

在这里插入图片描述
在这里插入图片描述

测试工程引用

  1. 第一步:添加依赖
implementation 'com.github.f0ris.sweetalert:library:1.5.1'

在这里插入图片描述

  1. 第二步:修改了AndroidManifest.xml
xmlns:tools="http://schemas.android.com/tools"

tools:replace="android:icon,android:theme,android:allowBackup,android:label,android:supportsRtl"

在这里插入图片描述

  1. sync

在这里插入图片描述

  1. 使用
SweetAlertDialog pDialog = new SweetAlertDialog(this, SweetAlertDialog.PROGRESS_TYPE);
pDialog.getProgressHelper().setBarColor(Color.parseColor("#A5DC86"));
pDialog.setTitleText("Loading");
pDialog.setCancelable(false);
pDialog.show();

在这里插入图片描述

实际项目引用出现:Manifest merger failed with multiple errors

  1. 将引用升级
implementation 'com.github.f0ris.sweetalert:library:1.6.2'
  1. 删除AndroidManifest.xml的

xmlns:tools=“http://schemas.android.com/tools”

tools:replace=“android:icon,android:theme,android:allowBackup,android:label,android:supportsRtl”

在这里插入图片描述

更多使用,参考官网

参考文档:

https://blog.csdn.net/ljb780830997/article/details/79065576

https://stackoverflow.com/questions/47195517/android-studio-3-0-error-with-sweet-alert-dialog-library

源码地址:https://download.csdn.net/download/qq471208499/11922191

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值