repo init时遇到的问题

1.repo init 时报错:

From 172.100.20.211:android-4.2/platform/manifest
 * [new branch]      android-4.2 -> origin/android-4.2
Traceback (most recent call last):
  File "/home/zouweiwei/test/.repo/repo/main.py", line 238, in
    _Main(sys.argv[1:])
  File "/home/zouweiwei/test/.repo/repo/main.py", line 220, in _Main
    repo._Run(argv)
  File "/home/zouweiwei/test/.repo/repo/main.py", line 125, in _Run
    cmd.Execute(copts, cargs)
  File "/home/zouweiwei/test/.repo/repo/subcmds/init.py", line 260, in Execute
    self._LinkManifest(opt.manifest_name)
  File "/home/zouweiwei/test/.repo/repo/subcmds/init.py", line 166, in _LinkManifest
    self.manifest.Link(name)
  File "/home/zouweiwei/test/.repo/repo/manifest_xml.py", line 86, in Link
    self.Override(name)
  File "/home/zouweiwei/test/.repo/repo/manifest_xml.py", line 79, in Override
    self._Load()
  File "/home/zouweiwei/test/.repo/repo/manifest_xml.py", line 236, in _Load
    self._ParseManifest(True)
  File "/home/zouweiwei/test/.repo/repo/manifest_xml.py", line 254, in _ParseManifest
    root = xml.dom.minidom.parse(self.manifestFile)
  File "/usr/lib/python2.7/xml/dom/minidom.py", line 1914, in parse
    return expatbuilder.parse(file)
  File "/usr/lib/python2.7/xml/dom/expatbuilder.py", line 924, in parse
    result = builder.parseFile(fp)
  File "/usr/lib/python2.7/xml/dom/expatbuilder.py", line 207, in parseFile
    parser.Parse(buffer, 0)
xml.parsers.expat.ExpatError: mismatched tag: line 331, column 2


原因是:做default.xml时,将 
   
 

写成了 
   
 

改过来就好了。



你可能感兴趣的:(git学习)