为什么我的code没有更新我的应用程序? (更新后的Eclipse) [英] Why is my code not updating on my app? (After updated eclipse)

查看:127
本文介绍了为什么我的code没有更新我的应用程序? (更新后的Eclipse)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在你downvote我的问题,因为你看不到任何code(可笑的理由downvote),阅读它。

Before you downvote my question because you don't see any code (ridiculous reason to downvote), read it.

现在的问题是,即使我改变我的code和在我的手机上运行它,它会运行,但应用程序将不会实际改变。

The problem is that even when I change my code and run it on my phone, it will run but the app won't have actually changed.

例如:如果我曾经有吐司,将说的Hello World中的onCreate,但后来我改变了文字应更新,然后运行它,敬酒仍然说的Hello World

For example: if I used to have Toast that would say "hello world" in onCreate, but then I changed the text to "should be updated" and then ran it, the toast would still say "hello world".

我更新了我的SDK工具,然后更新的Eclipse。我更新了这一切说需要在SDK管理器的更新我的Andr​​oid SDK工具。然后,我这样做是为了更新日食:帮助 - >安装新软件... 然后我点击添加... ,然后进入ADT插件'的名称和
<$ C C> https://dl-ssl.google.com/android/eclipse/ $的位置。然后,我更新并重新启动Eclipse或别的什么东西。

I updated my SDK Tools and then updated Eclipse. I updated all of my Android SDK tools that said needed an update in the SDK manager. Then, I did this to update eclipse: Help --> Install New Software... then I clicked Add..., then entered 'ADT plugin' for the Name and
https://dl-ssl.google.com/android/eclipse/ for the Location. Then I updated and restarted Eclipse or whatever.

下面是我的工作空间装载的屏幕截图:

Here is the screenshot of my workspace loading:

  • 删除我的手机应用程序,然后运行它
  • 删除我的手机上的应用程序,改变应用程序的包名称,然后运行它(虽然我没能看到这是否会工作过,因为Eclipse是如此糟糕,它没有让我甚至可以运行我的手机上的应用程序)。我以前已经改变了包的名字,我知道该怎么做。 Eclipse的太烂了,不是我。
  • 清洁项目(未生成我的R.java文件,所以我没能看到这是否会工作过)
  • Deleting the app on my phone and then running it
  • Deleting the app on my phone, changing the package name of the app and then running it (although I didn't get to see if this would've worked because Eclipse is so bad that it didn't let me even run the app on my phone). I've changed the package name before and I know how to do it. Eclipse sucks, not me.
  • Cleaning the project (it didn't generate my R.java file, so I didn't get to see if this would've worked)

我读过这一点,它并不能帮助:<一href="http://stackoverflow.com/questions/8038971/why-is-my-updated-eclipse-android-setup-not-building-my-apk-anymore">Why是我更新的Eclipse / Android的设置没有建立我的APK了吗?

I've read this and it doesn't help: Why is my updated Eclipse / Android setup not building my APK anymore?

我可以尝试从头开始重新安装Eclipse的,但后来我担心一些愚蠢的事将与我的应用程序签名,并由于某种原因,我不能用我的老项目,就像他们发生。我通过我的老钛在下载一个也运行Eclipse。我不使用钛,但原来我的Eclipse正在下载的钛包。这可能会对这将是多么容易恢复我的老项目,并让他们的工作有一定的影响。

I could try reinstalling Eclipse from scratch, but then I'm worried that something stupid will happen with my app signatures and for some reason I won't be able to use my old projects just as they were. I'm also running eclipse through one of my old Titanium downloads. I don't use Titanium, but originally my Eclipse was downloading in a Titanium package. That might have some effect on how easy it would be to recover my old projects and get them working.

这真的只是好像这次日食的的越野车。我不知道我有事先的版本,但它不是很老了。现在我甚至不知道是什么版本我都有。我想我是越来越22.0或什么的,但屏幕截图显示21.0.1-543035。

It really just seems like this Eclipse is super buggy. I don't know what version I had beforehand, but it wasn't very old. Right now I'm not even sure what version I have. I thought I was getting 22.0 or something, but the screenshot shows 21.0.1-543035.

推荐答案

走进了SDK管理器和工具文件夹中安装了Android SDK内置工具。

Go into the SDK Manager and install the Android SDK Build-Tools in the Tools folder.

这是一个新的SDK版本22.在更新文本转22是这样的:

This is new to SDK revision 22. In the update text for rev 22 is this:

•通过添加一个新的构建工具SDK改变了SDK的结构   成分,这是基于现有的平台的工具部件上。   这种变化解耦从IDE版本的编译工具版本,   让更新的工具,而不需要一个IDE更新。

• Changed the structure of the SDK by adding a new build tool SDK Component, which is based on the existing platform-tools component. This change decouples the build tools versions from the IDE versions, allowing updates to the tools without requiring an IDE update.

,没有包含在你的SDK更新打造APK的工具,因为它现在是一个独立的项目。因此,您的APK就不会被更新,但仍然​​会进行安装,因为它有一个现有的APK已经建成。

Because of this update, the tool to build APK's was not included in your SDK update, since it is now a standalone item. As such, your APK would not have been updated, but would still install since it had an existing APK already built.

这篇关于为什么我的code没有更新我的应用程序? (更新后的Eclipse)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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