Build Failure on Android Studio”\caches\transforms-2\files-2.1\e5ae7cf0f80ee425fe42a4574342c71c\aapt2-3.5.3-5435860-windows”

Error

gradle/caches/modules-2/files-2.1/androidx.lifecycle/lifecycle-common/2.6.1/10f354fdb64868baecd67128560c5a0d6312c495/lifecycle-common-2.6.1.jar!/META-INF/lifecycle-common.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.5.1.

Solution

First try Invalidate & restart Option in File menu to invalidate all cached build files

if your error still persist then try clearing cache folder with specific gradle version in your User folder in C drive for example for me the path to the folder is as follows

C:\Users\myUser\.gradle\caches

and

C:\Users\myUser\.AndroidStudio3.5\system\caches
Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x