Share Coding

Tutorials, Problems, Stuffs …

An existing package by the same name with a conflicting signature is already installed (安裝套件與現有套件名稱相同但簽名不符)

When the existing apps or the apk file that you want to install signed by a special key,

this error message may occur.

 

Method:

Place this into your module build.gradle

android {
    signingConfigs {
        config {
            storeFile file('C:/AndroidKey.key')
            storePassword '1234'
            keyAlias 'adb_key'
            keyPassword '1234'
        }
    }.......

More explain:

AndroidStudio use a  default debug key to sign your apk every time.
Some tutorial use a wrong way to make both key as a debug key. It is wrong.
The correct way should be both key is the release apk key.

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: