简体   繁体   中英

Android : APK generated in Gradle not replacing APK generated from native android

I just moved my native android application to gradle. Now if i generate the signed APK using same signature that i used for native.I get a different application in my phone. (it's not replacing the old one - native APK) So i see 2 applications with same name. I checked and the package name hasn't changed. What could be causing this ?

Any suggestions ? Or is it something i need to deal with since i migrated to gradle. Any input will be very helpful.

edit 1 : Thanks for all your replies. I am adding my old Intellij IDEA build manifest and new Android Studio Gradle Build file . Please check and let me know what changes i need to do.

新的Android Studio Gradle构建

The old intellij idea manifest is :

旧的IntelliJ想法清单

Check your build.gradle, defaultConfig, productFlavors and buildTypes.

http://tools.android.com/tech-docs/new-build-system/applicationid-vs-packagename

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM