I agree with Maravilho Singa’s answer. It appears to be a bug in gradle.
I found another solution here:
removing the .gradle directory in the root project directory will fix the problem.
More Related Contents:
- What’s the difference between implementation, api and compile in Gradle?
- How can I force gradle to redownload dependencies?
- How/when to generate Gradle wrapper files?
- How to pass arguments from command line to Gradle
- What is the Gradle artifact dependency graph command?
- Android Studio: Plugin with id ‘android-library’ not found
- In Gradle, how do I declare common dependencies in a single place?
- How to download javadocs and sources for jar using Gradle 2.0?
- Could not find play-services-basement.aar
- How to set up Kotlin’s byte code version in Gradle project to Java 8?
- Generating JPA2 Metamodel from a Gradle build script
- Add resources and config files to your JAR using Gradle
- variantOutput.getPackageApplication() is obsolete
- Flutter App stuck at “Running Gradle task ‘assembleDebug’… “
- Gradle store on local file system
- Where to put Gradle configuration (i.e. credentials) that should not be committed?
- How to stop Gradle task execution in Android Studio?
- Best way to incorporate Volley (or other library) into Android Studio project
- How to download dependencies in gradle
- How to use JUnit 5 with Gradle?
- How to use exec() output in gradle
- Gradle 1.2: Exclude directory under resources sourceSets
- Gradle, “sourceCompatibility” vs “targetCompatibility”?
- In Gradle, is there a better way to get Environment Variables?
- Gradle Could not create service of type InitScriptHandler using BuildScopeServices.createInitScriptHandler()
- Add commons-io dependency to gradle project in Android Studio
- How to interpret Gradle DSL
- Android-Studio upgraded from 0.1.9 to 0.2.0 causing gradle build errors now
- Is there a way to add classpath/directories for dependencies on Gradle?
- Where does Gradle store downloaded jars on the local file system