4

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

The Problem

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.

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".

What caused the problem

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:

What I've tried

  • 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)

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

What I could try

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.


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.

Community
  • 1
  • 1
Michael Yaworski
  • 13,410
  • 19
  • 69
  • 97
  • 1
    Did you install the sdk-build tools? If not, you **need to install it** as it will not build your APK without it after rev 22. – hichris123 Dec 06 '13 at 22:14
  • @hichris123 all of them are not installed. I will try that. – Michael Yaworski Dec 06 '13 at 22:18
  • Seems like you didn't update the tools completely. After updates, you usually have to close and restart the ADT tools to get the latest version. Oh, and use IntelliJ Idea Community Edition. Once you get used to it, you're going to frown at Eclipse users. – Martin Marconcini Dec 06 '13 at 22:28
  • @MartínMarconcini I would guess that as well, but it shouldn't be complicated. I checked everything and hit install, when it was done I opened Eclipse and installed. No idea why that wouldn't work, but it probably hasn't. And if you're referring to Android Studio (I'm not familiar with any other IDEs besides Eclipse), I've had bad experiences with it. – Michael Yaworski Dec 06 '13 at 22:32
  • @hichris123 Please post that as an answer. It worked. Say that I had to open up my SDK Manager and update/install all of my Android SDK Build-tools in the Tools folder. I will accept it and give it +1 later when I have a chance to get back on. Thanks. – Michael Yaworski Dec 06 '13 at 22:39
  • http://www.jetbrains.com/idea/ (Android Studio is based on this, but it's nowhere near as stable as Idea) ;) – Martin Marconcini Dec 06 '13 at 22:43
  • @MartínMarconcini I saw that IDE somewhere else and I was looking for it. THANK YOU – Michael Yaworski Dec 06 '13 at 23:59
  • You're welcome, enjoy a true IDE ;) – Martin Marconcini Dec 07 '13 at 00:04

1 Answers1

2

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

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

• 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.

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.

hichris123
  • 10,145
  • 15
  • 56
  • 70