Compilation failure caused by Kotlin version upgrade





question

Recently running the project, suddenly the project reported an error, because it contains kotlin, the error content:

Model was compiled with an incompatible version of kotlin the binary version of metadata is 1.5.1 accident version is 1.1.16



Error screenshot:
Guyu

Ineffective solutions found online:

	Build --> Rebuild Project

Guyu




final solution

In the configuration script (build.gradle) file in the root directory of the project, modify the version of "ext.kotlin_version" to 1.4.32, and then run it synchronously (Sync Now)!


	ext.kotlin_version = '1.4.32'

Guyu












Note:
Likes, comments, and reprints are welcome. Please give the link to the original text in an obvious place on the article page
. Those who know, thank you for reading my article in the vast crowd.
Where is the signature without personality!
For details, please follow me
and continue to update

Scan to have a surprise!
© 2021 07 - Guyu.com | 【All rights reserved】

Guess you like

Origin blog.csdn.net/weixin_49770443/article/details/118516720