如何使用Eclipse项目从GitHub的Andr​​oid开发 [英] How to use eclipse project from github for Android development

查看:226
本文介绍了如何使用Eclipse项目从GitHub的Andr​​oid开发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要修改在Windows 7 X84电脑的Andr​​oid 4.2 ZBar codescan Java应用程序。

I need to modify Android 4.2 ZBarCodescan java application in Windows 7 x84 computer.

它的来源$ C ​​$ C位于 https://github.com/xuxingliu922/DeviceSDK

Its source code is located in https://github.com/xuxingliu922/DeviceSDK

我安装的Andr​​oid Studon和选择Github上导入命令。它表明git.exe不存在的错误消息。

I installed Android Studon and selected Github import command. It shows error message that git.exe does not exist.

我也安装Visual Studio的社区版,它包含git.exe:

I have also Visual Studio Community Edition installed and it contains git.exe :

 Directory of C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\External\git

03.02.2016  22:28            20˙160 git.exe

看来,这github上code仅支持日食。

It seems that this github code supports eclipse only.

如何改变这个程序?如果git.exe复制或安装或者应该将用Eclipse?
或者应该这样code复制到本地驱动器,并导入为Eclipse项目?

How to change this app? Should git.exe copied or installed or should eclipse used instead ? Or should this code copied into local drive and imported as eclipse project ?

我改变了设置路径git.exe在评论建议。现在,这两个测试和检验命令导致奇怪的错误

I changed git.exe in settings path as recommended in comment. Now both test and checkout command cause strange error

gitexeerror

此外,如图图像,下一菜单selectoion导入项目......被激活。
我选择的签出的项目,这应该是积极的。

Also as shown in image, next menu selectoion "Import project..." becomes active. I selected Check out project this should be active.

如何修改这个项目?
我需要修改源$ C ​​$ C在我compüuter而已,没必要回更改提交github上。我没有在这个仓库的写权限

How to modify this project? I need to modify source code in my compüuter only, no need to submit changes back to github. I dont have write access in this repository

推荐答案

从注​​释:

要允许Android的工作室使用的搜索框git的,开放的Andr​​oid工作室preferences,键入混帐并检查路径与git可执行文件是正确的集(你可以用右边的测试按钮)

To allow Android Studio to use git, open Android Studio preferences, type git on the search box and check if the "Path to git executable" is correctly set (you can use the test button on the right)

有关你的第二个问题,看来可能是混帐实现(也许混帐--version没有在微软的混帐实现,它给你这个错误)之间的一些细微的差别。使用来自 http://git-scm.com

For your second problem, it seems that may be some minor differences between git implementations (maybe git --version is not implemented in Microsoft's git and it's giving you this error). Use the git implementation from http://git-scm.com

这篇关于如何使用Eclipse项目从GitHub的Andr​​oid开发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆