0

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
MAC
  • 15,799
  • 8
  • 54
  • 95
AndroTony
  • 1
  • 3
  • 1
    Just check your XML file also. If you have any mistaken there then, R file cannot be generated. – Chintan Raghwani Jul 30 '12 at 18:27
  • cleaning/rebuilding your project will generate the R file if there are no compile errors. if the R file is still missing after a clean rebuild, open up the Error log and see whats the problem. – Shark Jul 30 '12 at 18:32

2 Answers2

1

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

Amira Manai
  • 2,599
  • 8
  • 40
  • 60
  • Following errors were shown after cleaning project Parser exception for /home/tony/workspace/Temperature Converter/AndroidManifest.xml: The markup in the document following the root element must be well-formed. [2012-07-31 00:02:43 - Temperature Converter] Parser exception for /Temperature Converter/AndroidManifest.xml: The markup in the document following the root element must be well-formed. – AndroTony Jul 30 '12 at 18:35
  • 1
    That's probably something wrong with your AndroidManifest.xml. Double check it and your other xml files and see if there are any errors. – Stark Jul 30 '12 at 18:57
  • i agree with @Stark did you check your xml config file? – Amira Manai Jul 30 '12 at 21:20
0

Try the following:

  1. Remove the import of the R file.
  2. Then clean the project.
Luke Taylor
  • 9,481
  • 13
  • 41
  • 73