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 clean task fails deleting a file #54

Open
Epholl opened this issue Sep 24, 2015 · 3 comments
Open

Gradle clean task fails deleting a file #54

Epholl opened this issue Sep 24, 2015 · 3 comments

Comments

@Epholl
Copy link
Contributor

Epholl commented Sep 24, 2015

After running gradlew clean, the following exception occurs:

Execution failed for task ':easygcm-tasks:clean'.

Unable to delete file: C:\dev\easygcm\easygcm-tasks\build\libs\easygcm-tasks.jar

A temporary workaround is to comment out include 'easygcm-tasks' from settings.gradle

@Epholl
Copy link
Contributor Author

Epholl commented Sep 24, 2015

I suspect gradle configuration problem. After updating com.android.tools.build:gradle to 1.3.0, gradle refuses to sync with the following problem:
Error:(1, 0) Your project contains 2 or more modules with the same identification eu.inloop:easygcm at ":" and ":easygcm". You must use different identification (either name or group) for each modules.

EDIT: This was a different problem: settings.gradle contained include 'easygcm' which was ambigious (could target root project as well as easygcm project) - solved by renaming easygcm module to easygcm-lib

@Epholl
Copy link
Contributor Author

Epholl commented Sep 24, 2015

If I run gradlew clean from console the file does not get removed, but no lock is kept on it after execution completes.
If I run gradlew clean from Android Studio, it leaves a lock on the file preventing its deletion.

@Epholl
Copy link
Contributor Author

Epholl commented Sep 28, 2015

The error in gradlew clean seems to have been introduced between 9cf9048 and 90ff1b3

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