I'm learning Flutter and wanted to use an audio player Flutter package.
After setting everything up in pubspec.yaml i got the following error when i want to run the application on the emulator:
Incompatible classes were found in dependencies. Remove them from the classpath or use '-Xskip-metadata-version-check' to suppress errors
Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
I was reading about this problem and also changed the version in the build.gradl but this did not help. It still can't find the version 1.1.15 afterwards.
How to solve this problem?