The project code is not refreshed after updating the replacement aar package in Android Studio

Why after I updated and replaced the aar package, the aar package-related classes used in my code are all popular, not all kinds of clean rebuild clean cache refresh synchronize.

now, after each replacement of the aar package, go to the D:Android.gradlecachestransforms-1files-1.1 cache directory to manually delete the corresponding aar package cache file, and then refresh the project. How on earth do you want to clear the cache in the AS?

Mar.11,2021

File-> Invalidate Caches/Restart.


  • Delete the corresponding Gradle__xxxxxxx__aar.xml file under .idea / libraries in the project
  • gradle, click on Synchronize

Direct sync project is fine, and the personal test is valid.


.

Menu