gradle - Android - The package conflicts with an existing package by the same name -


i´ve default config on gradle.

defaultconfig {     applicationid "com.my.application"     minsdkversion 16     targetsdkversion 22     versioncode 190011     versionname "2.2.1" } 

and flavors

productflavors {     dev {         applicationidsuffix ".dev"         versioncode 333333         buildconfigfield "string", "anvil_base_url", "debug_url"         resvalue "string", "app_name", "app name dev"         signingconfig signingconfigs.releasesign     }     prod {         buildconfigfield "string", "anvil_base_url", "prod_url"         resvalue "string", "app_name", "app name"         signingconfig signingconfigs.releasesign     } } 

i´ve got app released on play store default application id "com.my.application" when i´ve play store version installed , want install "dev" flavored application pop message says this:

app name dev  app not installed package conflicts existing package same name 

am doing wrong? i´ve tried changing buildcode dev didn't work either.

any guess?

thanks in advance.

well, while trying install modified version of app through command line found following error:

adb install ~/desktop/app-dev-release.apk failed install /users/axier/desktop/app-dev-release.apk: failure [install_failed_duplicate_permission: package com.my.application.dev attempting redeclare permission com.my.application.permission.c2d_message owned com.my.application] 

so i´ve modified androidmanifest.xml file this:

<uses-permission android:name="${applicationid}.permission.c2d_message" /> 

pretty poor error description one. hope solution works me in future.

thanks anyway.


Comments

Popular posts from this blog

unity3d - Rotate an object to face an opposite direction -

angular - Is it possible to get native element for formControl? -

javascript - Why jQuery Select box change event is now working? -