I created two Android Studio applications. One of them is aar library. I used this aar library in second application. I added aar library by using File->New->New Module->Import
After replacing .arr file through Windows explorer. The only thing that worked for me is File -> Invalidate caches / Restrt