Refer to Sweet-alert-dialog in Android and solve problems encountered

Source: Internet
Author: User

Overview

Sweet-alert-dialog is an animated custom dialog box style that allows you to have a much more beautiful dialog box for your Android program. GitHub Address

Referenced in Android studio
repositories {    mavenCentral()}dependencies {    compile ‘cn.pedant.sweetalert:library:1.3‘}
Problems and Solutions
    1. Error message
      Error:Execution failed for task ‘:app:processDebugManifest‘.> Manifest merger failed : Attribute [email protected] value=(@mipmap/ic_launcher) from AndroidManifest.xml:27:9-43is also present at [com.pnikosis:materialish-progress:1.0] AndroidManifest.xml:13:9-45 value=(@drawable/ic_launcher).Suggestion: add ‘tools:replace="android:icon"‘ to <application> element at AndroidManifest.xml:25:5-46:19 to override.

      Direct make project encountered this manifest merger error because the icon I set in application was inconsistent with the icon set in Sweet-alert-dialog.

    2. Solution Solutions
      In the Manifest tab, add:
      xmlns:tools="http://schemas.android.com/tools"

      Join in the application

      tools:replace="icon"

      Re-make Project, problem solving ~

Refer to Sweet-alert-dialog in Android and solve problems encountered

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.