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

build - missing file #979

Closed
MajicCat opened this issue Aug 17, 2014 · 5 comments
Closed

build - missing file #979

MajicCat opened this issue Aug 17, 2014 · 5 comments
Labels

Comments

@MajicCat
Copy link

Trying to get a build up so I can add some custom OSM features. No luck, gradle complains of missing files. Any help? "Create Process error = 2, the system can not find the specified file"

No other information...

@m4gr3d
Copy link
Member

m4gr3d commented Aug 17, 2014

Which branch are you trying to build, and could you post the full error log.
On Aug 17, 2014 3:57 PM, "MajicCat" [email protected] wrote:

Trying to get a build up so I can add some custom OSM features. No luck,
gradle complains of missing files. Any help? "Create Process error = 2, the
system can not find the specified file"

No other information...


Reply to this email directly or view it on GitHub
#979.

@MajicCat
Copy link
Author

The error states just Create "Process error = 2, the system can not find the specified file"...

Looks like its trying to find Git. I have tested Git connectivity via the test utility in Android Studio and it looks OK.

Caused by: java.io.IOException: Cannot run program "git": CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1042)
at java.lang.Runtime.exec(Runtime.java:620)
at java.lang.Runtime.exec(Runtime.java:450)
at java.lang.Runtime.exec(Runtime.java:347)
at org.codehaus.groovy.runtime.DefaultGroovyMethods.execute(DefaultGroovyMethods.java:11431)
at org.codehaus.groovy.runtime.dgm$218.invoke(Unknown Source)
...

@m4gr3d
Copy link
Member

m4gr3d commented Aug 18, 2014

@MajicCat there's a piece of groovy code in Android/build.gradle(https://github.com/DroidPlanner/droidplanner/blob/ccd5c22472c5adc07f731fa493ae14bf4f66d82b/Android/build.gradle#L71-L73) that uses git in order to generate the application version name.

You're having this error because it can't find git for whatever reason. You can get rid of the error by commenting the git call, and just returning a string instead.

What system are you running on btw?

Additionally, regarding OSM contributions, we're currently planning to use mapbox osm sdk (https://github.com/mapbox/mapbox-android-sdk). The work to integrate that sdk is currently being done in https://github.com/ne0fhyk/droidplanner/tree/feature_mapbox_integration.

m4gr3d added a commit to m4gr3d/droidplanner that referenced this issue Aug 19, 2014
@m4gr3d m4gr3d reopened this Aug 19, 2014
@m4gr3d m4gr3d mentioned this issue Aug 19, 2014
@m4gr3d
Copy link
Member

m4gr3d commented Aug 19, 2014

@MajicCat The issue is being addressed by PR #984

@m4gr3d m4gr3d closed this as completed Aug 19, 2014
@MajicCat
Copy link
Author

Thanks, that fixed the Git revision, but now the error is:

Gradle 'droidplanner-master' project refresh failed:
Cause: org.gradle.plugins.ide.internal.IdeDependenciesExtractor.extractRepoFileDependencies(Lorg/gradle/api/artifacts/ConfigurationContainer;Ljava/util/Collection;Ljava/util/Collection;ZZ)Ljava/util/List;

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

No branches or pull requests

3 participants