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.
Related Contents:
- What’s the difference between implementation, api and compile in Gradle?
- Using Gradle to find dependency tree
- Using Gradle to build a jar with dependencies
- JavaFX 11 : Create a jar file with Gradle
- How can I force gradle to redownload dependencies?
- Android Studio: Where is the Compiler Error Output Window?
- How/when to generate Gradle wrapper files?
- variantOutput.getPackageApplication() is obsolete
- How to pass arguments from command line to Gradle
- Add resources and config files to your JAR using Gradle
- Flutter App stuck at “Running Gradle task ‘assembleDebug’… “
- Duplicate class android.support.v4.app.INotificationSideChannel found in modules classes?
- What is the Gradle artifact dependency graph command?
- Android Studio: Plugin with id ‘android-library’ not found
- Gradle alternate to mvn install
- Where does Gradle store downloaded jars on the local file system
- Where to put Gradle configuration (i.e. credentials) that should not be committed?
- How to download javadocs and sources for jar using Gradle 2.0?
- Could not find play-services-basement.aar
- Extract common methods from Gradle build script
- How to set up Kotlin’s byte code version in Gradle project to Java 8?
- Extremely long build with Gradle (Android Studio)
- Generating JPA2 Metamodel from a Gradle build script
- Gradle build only one module
- How to stop Gradle task execution in Android Studio?
- Best way to incorporate Volley (or other library) into Android Studio project
- Is there a way to split/factor out common parts of Gradle build
- How to download dependencies in gradle
- How to use exec() output in gradle
- Gradle build null console object
- Avoiding NullPointerException in Java
- com.android.build.transform.api.TransformException
- What is the difference between null and System.DBNull.Value?
- DexIndexOverflowException issue after updating to latest appcompat and support library
- What does “Program type already present” mean?
- No matching client found for package name (Google Analytics) – multiple productFlavors & buildTypes
- What’s the better (cleaner) way to ignore output in PowerShell? [closed]
- How do I exclude all instances of a transitive dependency when using Gradle?
- What is the difference between “x is null” and “x == null”?
- How to build an android library with Android Studio and gradle?
- java.lang.NoClassDefFoundError:failed resolution of :Lorg/apache/http/ProtocolVersion
- h:inputText which is bound to String property is submitting empty string instead of null
- C#: should object variables be assigned to null?
- MongoDB: How to query for records where field is null or not set?
- How to give System property to my test via Gradle and -D
- Could not resolve all dependencies for configuration ‘:classpath’
- Could not find or load main class org.gradle.wrapper.GradleWrapperMain
- Failed to read PNG signature: file does not start with PNG signature
- No resource found that matches the given name (at ‘dialogCornerRadius’ with value ‘?android:attr/dialogCornerRadius’)
- Could not install Gradle distribution from ‘https://services.gradle.org/distributions/gradle-2.1-all.zip’