This week's book giveaway is in the Spring forum.
We're giving away four copies of Java Persistence with Spring Data and Hibernate and have Cătălin Tudose on-line!
See this thread for details.
Win a copy of Java Persistence with Spring Data and Hibernate this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Jeanne Boyarsky
Saloon Keepers:
  • Stephan van Hulst
  • Carey Brown
  • Tim Holloway
  • Piet Souris
Bartenders:

Anyone run the latest Android SDK updates in Eclipse?

 
Bartender
Posts: 4179
22
IntelliJ IDE Python Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I ran the latest updates and now my app won't run anymore. It compiles fine, but when it comes time to run I get a warning in LogCat that it cannot resolve any of the classes I use from the support package (android.support.v4.app.FragmentActivity being the biggest offender). This was all working until I (stupidly) ran the updater. I rebuilt about 30 times, deleted everything under bin manually, etc... no difference. I checked: The support.v4 JAR is in my build path, and does exist in the appropriate folder. I get no compile time warning or errors. Everything looks hunky-dory until I try to run.

Anyone seen this or have an idea to on how to get the support package working again? Or how to roll back on the SDK update?
 
Steve Luke
Bartender
Posts: 4179
22
IntelliJ IDE Python Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Finally got it working again. Not exactly sure what the break was, but I had to:
1) Remove the Android Private Dependencies from the Project Properties build path (it contained the support.v4 JAR as a dependency)
2) Clean build to get error messages.
3) Right-click on Project, select Android Tools > Add Support Library (added the support.v4 library back in and fixed the compile-time errors)
4) Exit Eclipse and come back in (Clean build did not work)

This solved the issue with the support library. The same thing then happened with every other library I had, so I had to remove all my dependencies, Clean compile to get errors, and add the dependencies back in and restart Eclipse. I was able to all the third party libraries at once (so I suspect if I did all the libraries at the same time as the support library it would have worked in the first round).

Anyways: My advice to the next fella: Never upgrade anything mid-project.
 
Look! I laid an egg! Why does it smell like that? Tiny ad, does this smell weird to you?
The Low Tech Laboratory Movie Kickstarter is LIVE NOW!
https://www.kickstarter.com/projects/paulwheaton/low-tech
reply
    Bookmark Topic Watch Topic
  • New Topic