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

gradle build failed #30

Closed
bisonfute opened this issue Dec 12, 2016 · 5 comments
Closed

gradle build failed #30

bisonfute opened this issue Dec 12, 2016 · 5 comments

Comments

@bisonfute
Copy link

Hi there,

I would enjoy using this plugin but when I try, here is the error message I get.

Error:Cause: org.codehaus.groovy.runtime.GStringImpl cannot be cast to java.lang.String
Possible causes for this unexpected error include:<ul><li>Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
<a href="syncProject">Re-download dependencies and sync project (requires network)</a></li><li>The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.
<a href="stopGradleDaemons">Stop Gradle build processes (requires restart)</a></li><li>Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.</li></ul>In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.

and my app build.gradle looks like this

plugins {
    id "com.gladed.androidgitversion" version "0.2.21"
}

apply plugin: 'com.android.application'
...
...
defaultConfig {
        applicationId xxxx.xx.xxx
        minSdkVersion 19
        targetSdkVersion 25
        versionName androidGitVersion.name()
        versionCode androidGitVersion.code()
        ...
    }
.....

Am I doing something wrong ?

Thanks for your help.

@gladed
Copy link
Collaborator

gladed commented Dec 12, 2016

What is your Gradle version?

@bisonfute
Copy link
Author

From my project level build.gradle

dependencies {
        classpath 'com.android.tools.build:gradle:2.2.2'
    }

@bisonfute
Copy link
Author

Hey!
Just found out that was an other modification of my build.gradle that was causing the bug.
Sorry for that.

@bisonfute
Copy link
Author

And thanks for the plugin !

@gladed
Copy link
Collaborator

gladed commented Dec 12, 2016

You bet, thanks for closing this out.

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

No branches or pull requests

1 participant