tags:

views:

31

answers:

1

My android app was running ok under Eclipse, then I tried to add some GridView sample code from some online examples and now it will not build/run anymore. I keep getting the major error:

trouble processing "javax/net/SocketFactory.class": [2010-08-10 17:35:12 - CLife] Attempt to include a core VM class in something other than a core library.

I have never put anything to do with 'SocketFactory' in any of my code. I searched all of my code and can't find any code that I did that contains the SocketFactory.class.

I deleted my xml's and classes that I was working on that had to do with the GridView and reverted back to the code I had before, when it was running - but now I continue to get the above error. I even try to use 'Clean' but the error continues.

Does anyone know what I should do about this error?

+1  A: 

Try rightclicking on your project, Android Tools -> Fix Project Properties

MalcomTucker
Thank you for trying to help sir. I used 'Fix Project' but it doesn't seem to work. I will experiment more with it later. What I ended up doing is copying all of the project over to a new project, used the same code, and it works and builds with no problems.
Allan
i've had similar problems and usually copying to a new project does the trick, but it can be painful if it's a large project and you're in source control etc. generally there is a solution, often entirely not obvious, possibly related to the build path. you can try removing libraries, cleaning and then adding them back in...
MalcomTucker