Hi,
I just download the ODK Source code from GIt Hub and import to android
studio and try to compile..
Finally I got the error as follow...
D:\AndroidStudioProjects\collect-master\collect_app\build.gradle
Error:(12, 1) A problem occurred evaluating script.
A problem occurred starting process 'command 'git''
I also attach the screenshoot...
Thanks for great help...
Here is the build.gradle source...
/**************************************************************************************************
GRADLE CONFIG
*************************************************************************************************/
if ((new File(gradle.local)).exists()) {
apply from: gradle.local
} else {
apply from: gradle.remote
}
applicationScripts.each {
apply from: it
}
apply plugin: 'com.android.application'
android {
// The following are set in the common.gradle file
compileSdkVersion("Google Inc.:Google APIs:19")
buildToolsVersion("22.0.1")
defaultConfig {
applicationId("org.odk.collect.android")
minSdkVersion(8)
targetSdkVersion(8)
versionCode(1057)
versionName("1.4.8")
}
buildTypes {
release {
minifyEnabled(minify)
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
snapshot {
// Build type for snapshots
}
debug {
testCoverageEnabled(testCoverage) // Allows AndroidTest JaCoCo reports to be generated
}
}
packagingOptions { // Pick first occurrence of any files that cause conflicts, as defined in common.gradle
packageList.each {
pickFirst it
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: '*.jar')
if (playServicesPath.exists() && gradle.useLocal) { // Local project is favoured
compile project(playServicesName)
} else {
releaseCompile(group: groupId, name: playServicesArtifactName, version: playServicesRelease, ext: 'aar')
snapshotCompile(group: groupId, name: playServicesArtifactName, version: playServicesSnapshot, ext: 'aar')
debugCompile(group: groupId, name: playServicesArtifactName, version: playServicesSnapshot, ext: 'aar')
}
testCompile 'junit:junit:4.12'
}