Gradle cache is located at
- On Windows:
%USERPROFILE%\.gradle\caches
- On Mac / UNIX:
~/.gradle/caches/
You can browse to these directory and manually delete it or run
rm -r $HOME/.gradle/caches/
on UNIX system. Run this command will also force to download dependencies.
UPDATE
Clear the Android build cache of current project
NOTE: Android Studio’s File > Invalidate Caches / Restart
doesn’t clear the Android build cache, so you’ll have to clean it separately.
On Windows:
gradlew cleanBuildCache
On Mac or UNIX:
./gradlew cleanBuildCache
UPDATE 2
This article Put your Android Studio on a diet gives more details on Android Studio caches
Related Posts:
- “Default Activity Not Found” on Android Studio upgrade
- Still getting warning : Configuration ‘compile’ is obsolete and has been replaced with ‘implementation’
- How to recompile with -Xlint:deprecation
- Android Studio Run/Debug configuration error: Module not specified
- How to: Install Plugin in Android Studio
- No matching client found for package name (Google Analytics) – multiple productFlavors & buildTypes
- Could not find com.android.tools.build:gradle:3.0.1
- Execution failed for task ‘:app:compileDebugJavaWithJavac’ Android Studio 3.1 Update
- Could not find com.android.tools.build:gradle:3.0.1
- Multiple dex files define Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat
- Cannot resolve symbol ‘context’
- ‘dependencies’ cannot be applied to ‘(groovy.lang.Closure)’
- Cannot resolve symbol ‘AppCompatActivity’
- How to disable Instant Run for Android Studio 3.0
- Cannot resolve symbol ‘AppCompatActivity’
- Re-enable “component tree” in Android Studio
- “Gradle Version 2.10 is required.” Error
- How to determine the version of Gradle?
- ‘App not Installed’ Error on Android
- ‘App not Installed’ Error on Android
- Can’t start Eclipse – Java was started but returned exit code=13
- google console error `OR-IEH-01`
- Error: No toolchains found in the NDK toolchains folder for ABI with prefix: llvm
- How to display Toast in Android?
- ‘adb’ is not recognized as an internal or external command, operable program or batch file
- Flutter pageview : Find first and last page and swipe directions
- Enable VT-x in your BIOS security settings (refer to documentation for your computer)
- NetworkType.UNMETERED vs NetworkType.METERED – PeriodicWork
- Find all Bluetooth devices (headsets, phones etc) nearby, without forcing the devices in discoverable mode
- how to overcome Android Studio cannot resolve symbol for android classes
- ADB Android Device Unauthorized
- Why fragments, and when to use fragments instead of activities?
- What is the meaning of Log.i()
- Execution failed app:processDebugResources Android Studio
- SQLiteDatabase.query method
- Android ADB device offline, can’t issue commands
- Android SDK location
- Android Emulator Error Message: “PANIC: Missing emulator engine program for ‘x86’ CPUS.”
- IllegalArgumentException: Unable to locate adb in Android Studio v2.3
- How to set the text color of TextView in code?
- What is the “AdMob Offline Notifications” notification channel?
- Why am I seeing net::ERR_CLEARTEXT_NOT_PERMITTED errors after upgrading to Cordova Android 8?
- A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptExecution
- IllegalStateException: Can not perform this action after onSaveInstanceState with ViewPager
- How to create a Custom Dialog box in android?
- Getting weather info feeds from accuweather
- adb command not found
- Activity, AppCompatActivity, FragmentActivity, and ActionBarActivity: When to Use Which?
- “cannot resolve symbol R” in Android Studio
- Android basics: running code in the UI thread
- How to build a horizontal ListView with RecyclerView
- Emulator for Amazon Kindle
- What is difference between SQLite and SQL
- Error:Execution failed for task ‘:app:transformClassesWithDexForDebug’
- Horizontal ListView in Android?
- Getting activity from context in android
- Change status bar text color when primaryDark is white
- How can you make a custom keyboard in Android?
- How to convert int to Integer
- How to customize a Spinner in Android
- “ArrayAdapter requires the resource ID to be a TextView” XML problems
- How to remove title bar from the android activity?
- android.content.ActivityNotFoundException: Unable to find explicit activity class
- Dialog throwing “Unable to add window — token null is not for an application” with getApplication() as context
- ADB stopping at (waiting for devices)
- Android Studio: “Execution failed for task ‘:app:mergeDebugResources’” if project is created on drive C:
- Mipmaps vs. drawable folders
- How can I get the android-support-v4.jar file (from Android Support Library) on Linux?
- What is the meaning of android.intent.action.MAIN?
- Disable back button in android
- Is there a way to get the source code from an APK file?
- Converting pixels to dp
- How do I download the Android SDK without downloading Android Studio?
- Error:com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
- ClassLoader referenced unknown path: /data/app/
- Unknown URL content://downloads/my_downloads
- android edittext onchange listener
- Difference between getContext() , getApplicationContext() , getBaseContext() and “this”
- Determining translationX/Y values for ObjectAnimator; how to move a view to an exact screen position?
- adb socket not working and daemon
- React Native: JAVA_HOME is not set and no ‘java’ command could be found in your PATH
- Installation error: INSTALL_FAILED_OLDER_SDK
- Unable to load script from assets index.android.bundle on windows
- Android getText from EditText field
- Default FirebaseApp is not initialized
- How can I create simple accordion with Angular 2?
- Error: Could not automatically detect an ADB binary. Some emulator functionality will not work until a custom path to ADB is added in the extended…
- How do I “select Android SDK” in Android Studio?
- Reverse engineering from an APK file to a project
- Exception ‘open failed: EACCES (Permission denied)’ on Android
- I can’t find adb_usb.ini file in .android folder?
- Android; Check if file exists without creating a new one
- What is Activity.finish() method doing exactly?
- How to open adb and use it to send commands
- Unable to add window — token null is not valid; is your activity running?
- How to remove title bar from the android activity?
- Call requires permissions that may be rejected by user
- sendUserActionEvent() is null
- SDK Location not found in android studio
- Android app unable to start activity componentinfo