- Goto File -> Invalidate caches / Restart
- Shutdown Android Studio
- Rename/remove .gradle folder in the user home directory
- Restart Android Studio (It will download gradle metadata and data)
- Gradle build succeed
- Rebuild project. Done.
More Related Contents:
- What is Gradle in Android Studio?
- Error:Conflict with dependency ‘com.google.code.findbugs:jsr305’
- Build Android Studio app via command line
- Could not find or load main class org.gradle.wrapper.GradleWrapperMain
- Copy existing project with a new name in Android Studio
- Android Studio — clear application data for Instrumentation Test
- How to set gradle home while importing existing project in Android studio
- Android studio 3.0: Unable to resolve dependency for :app@dexOptions/compileClasspath’: Could not resolve project :animators
- “Gradle Version 2.10 is required.” Error
- How do I show dependencies tree in Android Studio?
- Android Studio: Gradle – build fails — Execution failed for task ‘:dexDebug’
- Android Studio how to package single AAR from multiple library projects?
- Android Studio: Gradle sync failed: Could not HEAD ‘…’. Received status code 502 from server: Bad Gateway [closed]
- how can I add the aidl file to Android studio (from the in-app billing example)
- Android Studio Gradle issue upgrading to version 0.5.0 – Gradle Migrating From 0.8 to 0.9 – Also Android Studio upgrade to 0.8.1
- gradle behind proxy in Android Studio 1.3
- Resources$NotFoundException: File res/drawable/abc_ic_ab_back_material.xml
- How to automatically uninstall android app from device before installing a new version
- Upgraded to Android studio 3.4 – Aapt2InternalException: AAPT2: Daemon startup failed
- First React Native App: Task :app:processDebugMainManifest FAILED
- Android studio – Failed to complete gradle execution – error in opening zip file
- Error:Failed to resolve: android.arch.core:common:1.1.0
- Android Studio inline compiler showing red errors, but compilation with gradle works fine
- How to set up gradle and android studio to do release build?
- Gradle error upgrading to Android Studio 3.0 Beta 1
- Android Gradle DexException: Multiple dex files define Lorg/hamcrest/Description
- After update android studio could not create parent directory for lock file
- Android Studio – no debuggable applications
- Could not find property ‘outputFile’ on com.android.build.gradle.internal.api.ApplicationVariantImpl
- Can an AAR include transitive dependencies? [duplicate]