ajoberstar / gradle-git

Git plugin for Gradle
Apache License 2.0
561 stars 89 forks source link

No such property: gradle for class: java.lang.String #233

Closed kyodgorbek closed 7 years ago

kyodgorbek commented 7 years ago

Hi All I am getting following error in my android studio build.gradle file.

FAILURE: Build failed with an exception.

* Where:
Build file '/home/yodgor777/Desktop/maestro-master-36f2c897938d237a0f52fb0cf94a35d65ddafd21/workspace/android/maestro/build.gradle' line: 13

* What went wrong:
A problem occurred evaluating project ':maestro'.
> No such property: gradle for class: java.lang.String

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 2.393 secs

Process finished with exit code 1

below my code in build.gradle file

buildscript {
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:0.7.+'

        repositories {
            mavenCentral()
            maven {

                ~/.gradle/.gradle.properties {
                    mavenUser = yourusername
                    mavenPassword = secretpassword
                }
            }

                credentials {
                    username mavenUser
                    password mavenPassword
                }
                url 'http://dev.softwerk.se:8080/nexus/content/repositories/softwerk-repo'
            }
        }

        android {
            compileSdkVersion 19
            buildToolsVersion "19.0.1"

            defaultConfig {
                minSdkVersion 8
                targetSdkVersion 19
                versionCode 2014020601
                versionName "2.0.0"
            }

            compileOptions {
                sourceCompatibility JavaVersion.VERSION_1_7
                targetCompatibility JavaVersion.VERSION_1_7
            }
        }

        dependencies {
            compile 'com.android.support:support-v4:19.0.+'
            compile 'com.android.support:appcompat-v7:19.0.+'
            compile 'com.google.android.gms:play-services:4.0.30'

            // Sync framework
            compile 'se.softwerk.commons.android:android-framework:1.1.10@aar'
            compile 'com.googlecode.plist:dd-plist:1.0'
            compile 'com.google.code.gson:gson:1.7.1'
            compile 'commons-io:commons-io:2.1'
        }
    }
ajoberstar commented 7 years ago

Sorry, I can't be more help, but it doesn't look like you're even using my plugin. It looks like you have some general syntax issues in your script.

I'd suggest asking on StackOverflow or the Gradle Forums for general Gradle help.