Certain problems for Eclipse on Linux platform and fixes

12 views
Skip to first unread message

Rohit Kalhans

unread,
Mar 18, 2011, 3:57:55 PM3/18/11
to bpgc-androi...@googlegroups.com
I recently shifted from Windows to Linux as my devlopment Environment and here are the problems that I faced. Fixes below
Source: http://kyleclegg.com/android-requires-compiler-compliance-level-5-0/

Issue #1:
Android requires .class compatibility set to 5.0. Please fix project properties.

Solution:
1. Fix project:
Package Explorer ->
Right click the project ->
“Android Tools” -> “Fix Project Properties”
2. Restart Eclipse:
“File” -> “Restart”

Issue #2: The following error appears many times
The method xyz() of type ABC must override a superclass method

Solution:
1. Fix the project again:
Package Explorer ->
Right click the project ->
“Properties” -> “Java Compiler” -> “Compiler Compliance Level” = 1.6

Issue #3: The import android.net.http.AndroidHttpClient cannot be resolved

Solution:
1. Fix the project again.
Package Explorer ->
Right click the project ->
“Properties” -> “Android” -> “Project Build Target” = 2.3.3



--
Rohit Kalhans
blogfolio: http://info-rohit.co.cc

 

Emaad Ahmed Manzoor

unread,
Mar 19, 2011, 12:51:35 AM3/19/11
to bpgc-androi...@googlegroups.com
Hey thanks, needed this.


--
Emaad Ahmed Manzoor,
Third Year Undergraduate,
BITS - Pilani, KK Birla Goa Campus.
halfclosed.wordpress.com


dharma teja jjj

unread,
Mar 19, 2011, 11:12:35 AM3/19/11
to bpgc-androi...@googlegroups.com
its a relief ..class compatibility set to 5.0.error
haunted me while importing projects...thanks for the post



Rohit Kalhans

unread,
Mar 19, 2011, 2:48:55 PM3/19/11
to bpgc-androi...@googlegroups.com
silly thing but it wasted around 1 hour of my tym

Do not declare a variable with name 'R' <capital R> its clashes with class R defined in R.java file :D

On Sat, Mar 19, 2011 at 8:42 PM, dharma teja jjj <dharm...@gmail.com> wrote:
its a relief ..class compatibility set to 5.0.error
haunted me while importing projects...thanks for the post






Reply all
Reply to author
Forward
0 new messages