导入现有的Andr​​oid项目到Eclipse中重命名项目 [英] Importing Existing Android Project Into Eclipse Renames Project

查看:493
本文介绍了导入现有的Andr​​oid项目到Eclipse中重命名项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我导入现有的Andr​​oid应用程序项目到Eclipse中时,它都会重命名该项目,以我的发射活动的名称。

Every time I import an existing Android Application Project into Eclipse, it renames the project to the name of my launcher activity.

我已经试过这两种方法:

I have tried both of these methods:

File -> Import -> Existing Android Code Into Workspace

File -> New -> Android Project From Existing Code

在这两种情况下,我浏览到项目文件夹,并选择它,这将导致它显示在项目窗口,可用于进口。然而,该项目显示为被名为LauncherActivity,或类似的东西。

In both of these scenarios, I browse to the project folder and select it, which causes it to show in the 'Projects' window as available for importing. However, the project is showing as being titled 'LauncherActivity', or something similar.

编辑:这是很容易改变项目名称回到它本来,我知道如何做到这一点:

It's easy enough to change the project name back to what it was originally, I know how to do this:

Right-click on Project -> Refactor -> Rename

然而,这是恼人的有充分的时间来做到这一点。

However, it is annoying to have to do it every time.

修改2:的项目文件中包含了正确的项目名称,但问题仍然存在。

Edit 2: The .project file contains the correct project name, and yet the problem still occurs.

推荐答案

该项目名称在项目文件中可能设置。 尝试编辑的项目文件,并更改名称标签:

The project name is probably set in the project file. Try to edit the .project file, and change the name tag:

<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
    <name>Projectname</name>
    <projects>

这篇关于导入现有的Andr​​oid项目到Eclipse中重命名项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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