简体   繁体   English

Android Dev的新手-安装SECOND App / APK时出现问题

[英]New to Android Dev - Problem installing SECOND App/APK

I am writing some test Android apps using Eclipse. 我正在使用Eclipse编写一些测试Android应用程序。 I created my 1st project, a simple hello app, built the apk (app1.apk), and was able to install and run that on an Android tablet. 我创建了我的第一个项目,一个简单的hello应用,构建了apk(app1.apk),并能够在Android平板电脑上安装和运行该项目。

I then created a new project in eclipse, for a 2nd app. 然后,我在eclipse中为第二个应用程序创建了一个新项目。 I exported the apk (app2.apk). 我导出了apk(app2.apk)。 But, when I try to install this 2nd apk (app2.apk) on the tablet, it warns me that it wants to REPLACE the 1st app. 但是,当我尝试在平板电脑上安装此第二个APK(app2.apk)时,它警告我它想替换第一个应用程序。

When I built the apks, I used a different key for app1 vs. app2, and the project and class names are different, so what is it that the Android installer is using that makes it think that both apks are the same app? 生成APK时,我对app1和app2使用了不同的密钥,并且项目和类名不同,因此Android安装程序正在使用什么,使其认为两个APK都是同一应用?

Thanks, Jim 谢谢,吉姆

听起来您在两个应用程序中都使用了相同的程序包名称。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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