Android的 - Eclipse的不是部署新版本 [英] Android - Eclipse not deploying new build

查看:118
本文介绍了Android的 - Eclipse的不是部署新版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这个问题后的我做的改动我的code和运行项目后,我得到这个总是在控制台中。

I've got this problem that after I do changes to My code and Run the project, I get this always in the console.

Application already deployed. No need to reinstall.
Starting activity authentication.LoginActivity on device nexus4testdev
ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.example.myapp/authentication.LoginActivity }
ActivityManager: Warning: Activity not started, its current task has been brought to the front

previously它用于卸载旧的应用程序并安装新的到device.Now它抛出这个在控制台每次。

Previously it used to uninstall old app and install the new one onto the device.Now it throws this in the console every time.

在做一些研究,我发现, Java的生成器已启用了解决此问题后。不过,我首先禁用 Java的生成器,因为我正在 R型已被定义错误。这一切都开始突然。现在,我不能没有手动卸载由这是一个很头痛的设备应用程序部署我的应用程序。任何帮助AP preciated。

After doing some research I found out that Java Builder has to enabled to resolve this problem. However I disabled Java Builder in the first place because I was getting The Type R is already defined error. It all started all of a sudden. Now I cannot deploy My app without manually uninstalling the app from the device which is a big headache. Any help appreciated.

编辑:现在我看到了bin文件夹,并注意到* .apk文件是从来没有建立

Now I saw the bin folder and noticed that the *.apk is never built.

推荐答案

Eclipse中再次部署之前不会卸载同名的任何现有应用程序。即使你做code更改,然后清洁/编译,然后部署到您的设备或模拟器,也不能保证,一切都从设备了。

Eclipse does NOT uninstall any existing app of the same name before deploying it again. Even if you make code changes, and then clean/compile, then deploy to your device or emulator, there is no guarantee that everything is gone from the device.

如果您已经创建任何文件,如共享preferences或SQLite数据库,因为你卸载了最后一次这是尤其如此。

This is especially true if you have created any files, such as SharedPreferences or SQLite databases, since the last time you uninstalled.

这就是为什么我始终保持一个终端窗口开放:

This is why I always keep a terminal window open with:

adb uninstall my.app.name

映射到一个名为U的别名。我可以很快将其卸载,然后重新部署。这可以自动化,对如何做到这一点在这里一个伟大的新手必看:

Mapped to an alias called 'u'. I can uninstall it quickly and then redeploy. This can be automated, there is a great writeup on how to do that here:

卸载Android应用程序的每个调试之前

祝你好运。

这篇关于Android的 - Eclipse的不是部署新版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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