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
测试工程引用
- 第一步:添加依赖
implementation 'com.github.f0ris.sweetalert:library:1.5.1'
- 第二步:修改了AndroidManifest.xml
xmlns:tools="http://schemas.android.com/tools"
tools:replace="android:icon,android:theme,android:allowBackup,android:label,android:supportsRtl"
- sync
- 使用
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
- 将引用升级
implementation 'com.github.f0ris.sweetalert:library:1.6.2'
- 删除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://download.csdn.net/download/qq471208499/11922191