Angelina
Angelina

Reputation: 31

Eclipse Project Error

I am working on the Bluetooth Chat from the Android Developer site in Eclipse IDE. I am using Android 2.1 and changed the Action Bar to display Toast messages instead and am only working with Secure connections.

I have three classes under the same package called BluetoothChat, BluetoothChatService, and DeviceListActivity and the project name is BluetoothCh.

Two of the files had errors that I fixed. They were saved and are clear of the red x that previously marked both .java files. All of the other files are clear of errors as well. However, the main Android project folder still contains a red x, and Eclipse is not allowing a run or debug of the application because of errors in the project.

Does anyone have any ideas how to solve this? Any advice is very much appreciated! Thank you!

Upvotes: 3

Views: 3654

Answers (3)

Nick DeFazio
Nick DeFazio

Reputation: 2432

"When I clean the project it now gives me errors that R cannot be resolved as a variable. Where should I go from here?"

It sounds like you have an error in your code somewhere. You need to find out where the error is (what file and line) and fix it. This can be done with the problems tab in eclipse. It should tell you the description, file, path, line, and type of error you are getting.

Upvotes: 0

Haphazard
Haphazard

Reputation: 10948

  1. Refresh the project then clean the project.
  2. Delete the error in the "Problems" tab.
  3. Right click the project->Android->Clean project properties (or whatever it is).

Upvotes: 4

Deva
Deva

Reputation: 3949

Clean the project and rebuild it see if the X mark still persists.

Upvotes: 0

Related Questions