Skip to content Skip to sidebar Skip to footer

Android Apidemos Compile Errors

So I have read several of the similarly titled threads here, but none seem to solve my issue. I have installed Eclipse 3.6 on a Mac (Lion), I have several Android SDKs installed.

Solution 1:

I guess it must be the java compliance level problem. Go to your project properties, and set the Java Compiler's Compiler Compliance level to 1.6. See if that fixes the errors.

Solution 2:

I had the same problem and this is my solution.

  1. Uncheck "Build automatically" in the menu "project"
  2. Select "Clean" from menu "project".
  3. Select "Clean projects selected below" and check "ApiDemos".
  4. Check "Start a build immediatly", "Build only the selected projects"

Then it compiles as it should (at least for me).

After this you can check "Build automatically" in the menu "project" again.

Solution 3:

I got similar problems. I spent some hours to figure out a solution: delete project files of ApiDemos in Eclipse's workspace folder. Then re-add project ApiDemos.

I guess that some of the generated objects don't refresh after I update Android SDK.

If you have never build and run ApiDemos before, my solution should not apply your case.

Solution 4:

Actually the combination of Cameron Wong's, Riffer's and userSeven7s's posts did the trick for me:

  1. deleted Api Demos folder in the eclipse workspace folder
  2. reopened project from android samples
  3. Set Compiler Compliance level to 1.6
  4. Cleaned/Rebuilt

Post a Comment for "Android Apidemos Compile Errors"