Mikel
Mikel

Reputation: 51

repo init fails getting android source code

I have tried to get the source code of android (on Windows 7) via this tutorial: http://source.android.com/source/downloading.html

At this step

$ repo init -u https://android.googlesource.com/platform/manifest

I got this error message which I cannot solve yet:

fatal: unable to start C:\Users\mike\myrepo.repo\repo/main.py
fatal: [Errno 8] Exec format error

I have set the environment variables to the python interpreter to path C:\python but this problem still remains. Does someone know how to solve this problem?

Upvotes: 3

Views: 2238

Answers (1)

Mikel
Mikel

Reputation: 51

I have fixed the problem.

  1. I made a clean installation of Eclipse Indigo SE (better newer than older versions)
  2. got the sources via http://vogella.de/articles/Android/article.html (2.4. Android Source Code)
  3. created a new project, created the classes and copied all the contents in the new classes
  4. configured the build path as it was before.

Maybe there was a problem in the .metadata directory or general in the project build files which caused this problem (i have not changed my source code in the new project).

Upvotes: 2

Related Questions