Phantom errors (Android) [message #654098] |
Mon, 14 February 2011 08:24 |
Lucio Crusca Messages: 5 Registered: July 2009 |
Junior Member |
|
|
Hi,
I'm developing an Android app. The project started with google api 2.2 level 8 as target. Then it became necessary to switch back to 2.1 level 7. I changed the target platform in project properties and updated AndroidManifest.xml accordingly. I fixed the only reference (layout_width="match_parent") to something that level 7 is missing.
At this point Eclipse Helios started showing a red X in the package explorer near the project name, but no other error marks near any of the project folders nor any of the single project files. I tried disabling automatic build and building it manually, but the build project command didn't even show the build progress bar as usual. Closing and reopening the project, closing and reopening Eclipse, importing the sources into a new project or even reinstalling Eclipse didn't help either.
I then decided to create a new android project from scratch (same settings of the original project, api level 8) and manually copy the source files one by one, with a "refresh folder" and "build project" between each copied file. It was a pain, but it did work.
So we reach today. I had to try to switch back to api level 7, but this time, before doing anything else, I closed Eclipse and backed up the entire project folder in a safe place. Then I tried to change the api level, and guess what? Same problem, except now I have a red exclamation mark beside the project name, instead of a red X. But what's worse, even closing Eclipse and restoring the backup does not restore the original situation...
I also tried creating again a new Android project (api level 7 this time), closing Eclipse and copying all the backed up files into the new project folder (all the files toghether this time, I wish to avoid the pain of the previous single file copy). Same problem.
I suspect (and I hope) I'm missing something. Can you help me please?
|
|
|
Re: Phantom errors (Android) [message #655176 is a reply to message #654098] |
Fri, 18 February 2011 14:44 |
Markus Keller Messages: 294 Registered: July 2009 |
Senior Member |
|
|
I can't help with the Android-specific problem, but the red exclamation
mark means that something is wrong on the build path of the affected
project. Check "context menu > Build Path > Configure Build Path..."
(e.g. make sure you have the right JRE System Library on the Libraries
tab). Or open the Problems view, group by Java Problem Type, and check
the Fatal Errors.
If the problem is in an Android-specific library, please file a Bug
against the Android tools project.
The build path is stored in the .classpath file. Maybe you find the
problem when you check the file's contents before and after switching
Android API levels.
Markus
|
|
|
Powered by
FUDForum. Page generated in 0.01212 seconds