Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant compile th project Error:(12, 0) CreateProcess error=2 #188

Open
lectricas opened this issue Jul 14, 2016 · 14 comments
Open

Cant compile th project Error:(12, 0) CreateProcess error=2 #188

lectricas opened this issue Jul 14, 2016 · 14 comments

Comments

@lectricas
Copy link

Can't compile it "from the box".
What am I doing wrong?
image

@artem-zinnatullin
Copy link
Owner

Hm, looks like an issue with some Gradle Plugin running on Windows. @vanniktech any ideas?

@vanniktech
Copy link
Contributor

Oh jeez. Nope I've never ran AS on Windows so no ideas. From this SO question it looks like you didn't configure the JDK.

@artem-zinnatullin
Copy link
Owner

Looks like so, @lectricas please check SO question ^ and report back.

Thanks @vanniktech!

@lectricas
Copy link
Author

lectricas commented Jul 29, 2016

@vanniktech
Sorry for such a delay.
I have only one JDK version in C:\Program Files\Java folder:
C:\Program Files\Java\jdk1.8.0_74

@lectricas
Copy link
Author

paperwork {
    set = [
        gitSha:    gitSha(),
        buildDate: buildTime("dd-MM-yyyy HH:00:00 z", "UTC"),
    ]
}

removing this lines from app build gradle solved the issue. Is it save to live gradle without this lines?

@vanniktech
Copy link
Contributor

Those are just coming from this plugin. Might be worth opening an issue there or inviting @zsoltk into this discussion.

@zsoltk
Copy link
Contributor

zsoltk commented Jul 29, 2016

Can someone translate the Russian error message in the screenshot, to begin with?

Also, @lectricas do you have command line git installed?

@serj-lotutovici
Copy link
Contributor

@zsoltk "CreateProcess error=2, can't find specified file"

@zsoltk
Copy link
Contributor

zsoltk commented Aug 2, 2016

Thanks @serj-lotutovici . My second question is still unanswered though, @lectricas .

@artem-zinnatullin
Copy link
Owner

Do you have console git installed?

On Tue, 2 Aug 2016, 19:02 Zsolt Kocsi, [email protected] wrote:

Thanks @serj-lotutovici https://github.com/serj-lotutovici . My second
question is still unanswered though, @lectricas
https://github.com/lectricas .


You are receiving this because you were assigned.

Reply to this email directly, view it on GitHub
#188 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA7B3KtZ75YpkbBf_IpMkPdg_I65xzS3ks5qb2oEgaJpZM4JMcfq
.

@lectricas
Copy link
Author

Sorry for the delay. Yes, I have. Don't you have any windows PC or boot camp to reproduce the problem?

@lectricas
Copy link
Author

What I'm not sure is that my git is reachable from default cmd because I'm using stand alone shell provided by git installer. I'll check this tomorrow.

@artem-zinnatullin
Copy link
Owner

I believe it's the problem, I do have windows PC but just for gaming, not
installing anything dev related there, it's the rule :)

On Tue, 2 Aug 2016, 19:15 alexey polusov, [email protected] wrote:

What I'm not sure is that my git is reachable from default cmd because I'm
using stand alone shell provided by git installer. I'll check this tomorrow.


You are receiving this because you were assigned.

Reply to this email directly, view it on GitHub
#188 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA7B3NWfkMadeqLpAQ9ajSnGtMTAhhkOks5qb20WgaJpZM4JMcfq
.

@kokeroulis
Copy link

@lectricas
I just reproduced this issue in a virtualbox with windows 10 32bit.

First you must install 1.8 jdk, android studio 2.2 has an embedded one inside but for some reason it doesn't work, after than configure the jdk inside from AS.

Second open the cmd.exe and run "git.exe", does it exist? If not, then this is why it fails. Download https://git-scm.com/download/win and let it modify your environmental paths.

Third go to "File ->settings -> under git", click test, does it work?

Also here is the proof :)
quality matters

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants