ODK Compilation

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'
}

Make sure git is installed and properly configured in Android Studio.
Search the list for hints.

Yaw

··· -- Need ODK consultants? Nafundi provides form design, server setup, in-field training, and software development for ODK. Go to https://nafundi.com to get started.

On Thu, Nov 26, 2015 at 6:03 PM, Uzumaki Naruto bkthehero@gmail.com wrote:

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'
}

--
You received this message because you are subscribed to the Google Groups
"ODK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.