AndroTony
AndroTony

Reputation: 1

cant find R.java

Am new to android. I just started studying android and for practicing i created a project "Temperature Converter" under package "de.vogella.android.temperature" and main activity as "ConvertActivity".

On creating project I found errors in

1. ConvertActivity.java as R.cannot b resolved
2. AndroidManifest.xml file as "the markup in document following the root element must be well formed"
3. no R.java in gen folder

Upvotes: 0

Views: 1455

Answers (2)

Luke Taylor
Luke Taylor

Reputation: 9599

Try the following:

  1. Remove the import of the R file.
  2. Then clean the project.

Upvotes: 0

Amira Manai
Amira Manai

Reputation: 2599

Try this it should solve the problem :)

1)run this in a terminal: rm ~/.android/debug.keystore

2)rebuild your project: go to Project –> Clean –> Clean projects selected below –> check your project –> OK

Upvotes: 1

Related Questions