Android requires .class compatibility set to 5.0.

by Sylvain » Fri, 23 Apr 2010 08:02:05 GMT

Sponsored Links
 I had to reload XP and Eclipse + android of course. I am using the
2.0.1 SDK version/ API 6.

Everything was fine before, Now the project doesn't load-
I get:

[2010-04-21 09:59:24 - LatLonQ] Android requires .class compatibility
set to 5.0. Please fix project properties.

Don't see anything in project properties. Where is this set? Never saw
this before.

A clue? when I try to open the "" from my project I
org.eclipse.core.internal.resources.ResourceException: Resource is out
of sync with the file system: '/LatLonQ/'.



Android requires .class compatibility set to 5.0.

by ravindra singhai » Fri, 23 Apr 2010 13:27:09 GMT


If you are using Eclipse SDK than perform following steps to fix your

Right click on your application name (within Package Explorer view) ->
Android Tools -> Fix Project Properties

It worked for me when i faced similar problem. give it a try.



Sponsored Links

Other Threads

1. Setting Widget Background via RemoteView

I have yet to figure this out so I though I'd try posting again.

Given a widget with a background image specified in its layout, how can
one set the background's transparency at runtime?  

I have tried Kostya's suggestion of calling the RemoteView.setInt()
method and passing in setAlpha as the methodName but I get a reflection
error.  I know this is doable because other application widgets have
sliders to set the transparency at runtime.  But how?

Given that its usually Kostya that answers my widget questions (thanks,
Kostya!) it looks like there may be a paucity of widget authors
frequenting this group.  But I figure there is no harm in trying again.



Jake Colman -- Android Tinkerer


2. Missing USB driver for WiFi Galaxy Tab?

Since the android-beginners forum is apparently no more, I'm hoping
someone here might help me. If not please redirect to an appropriate

I'm attempting to test an android app on my brand new wifi Tab. The
app is working in the emulator but neither adb nor the SDK manager can
find the Tab. When I plug the Tab into the USB port of my Windows7 PC
and use Mass Storage mode I can transfer files in and out of the Tab
with no problem. But when I switch the Tab to enable USB debugging and
then plug it in I get no indication that the PC can see it. Is there a
separate or additional USB driver that needs to be loaded to get the
Tab to work in USB debug mode? I see links to OEM USB Drivers in the
Dev Guide but the link for the WiFi Galaxy seems to be broken?


3. GMaps launching problem

4. Sending data continuously over NFC in mode P2P

5. ViewFlipper and ScrollView animation

6. Touchscreen two finger zoom is not working

7. nfc read not working