具有相同的Eclipse项目结构两个几乎相同的Andr​​oid项目在我的手机不安装 [英] Two almost similar Android projects having same project structure in eclipse not installing in my phone

查看:249
本文介绍了具有相同的Eclipse项目结构两个几乎相同的Andr​​oid项目在我的手机不安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图让使用Libgdx游戏。我是新来的Andr​​oid和LibGDX。
我做了一个简单的游戏框架,包含与能力来移动和跳跃,敌人的球员。
我做了所有使用Scene2D和不使用。我越开始编码时,code似乎是mesy。
我想我的项目分为3个项目到Eclipse中。

I am trying to make a game using Libgdx. I am new to Android and LibGDX. I made a simple game skeleton that contains the Player with abilities to move and jump and an enemy. I did all using Scene2D and without using that. The more I started coding, the code seemed to be mesy. I wanted to separate my project into 3 projects into eclipse.

我在不同的位置做了两个不同的workspcaes。
我在项目文件中使用不同的名称。即使我在资源string.xml改变应用程序的名称
从那里AndroidManifest.xml中需要他们的name.I甚至改变了启动图标他们。
一些不同的两个项目都运行得非常好。

I made two different workspcaes at different locations. I used different names in .project file. Even I changed the name of application in the string.xml of resources from where AndroidManifest.xml takes their name.I even changed the launch icons for them. Both projects with some different are running very well.

但是,当我在我的三星细胞部署它们,我能够一次安装一个应用程序。

But when I am deploying them on my Samsung Cell, I am able to install one application at a time.

我注意到一个奇怪的行为..我无力解决这个问题。首先,我花了很多时间来运行相同的
在有多种不同的工作区中的应用程序,在我的previous运行良好one.After我解决了,不知怎的,
此启动。请建议如何两个项目被认为是由Eclipse的。

I noticed a strange behaviour .. I am unable to solve this. First it took me alot of time to run the same application in the diffrent workspace that was running well in my previous one.After I resolved that somehow, this started. Please suggest on how both the projects are considered the same by Eclipse.

虽然项目的结构是一样的。但是所有的相关性资产完全分开。
否则怎么做区分它们为食。

Though the structure of the project is same. But all the dependencies are assets are entirely separated. How else to do distinguish them for eclipse.

推荐答案

您不能安装两个应用程序具有相同包名称:

You can't install two apps with the same package name:

package="com.jungle.main"

更改其中之一,你会被罚款。
参见:的http://developer.android.com/guide/topics/manifest/manifest-element.html#package

Change one of them and you'll be fine. See also: http://developer.android.com/guide/topics/manifest/manifest-element.html#package

这篇关于具有相同的Eclipse项目结构两个几乎相同的Andr​​oid项目在我的手机不安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆