Gavin Ray
05/10/2022, 1:46 PM/build
Compilation failed. Pre-release classes were found in dependencies.
Remove them from the classpath, recompile with a release compiler or use '-Xskip-prerelease-check' to suppress errors
Reason: Class is compiled by a pre-release version of Kotlin and cannot be loaded by this version of the compiler
I've set my Kotlin dependency version to 1.60.0
, has anyone encountered this before?
Thank you 😃Gavin Ray
05/10/2022, 1:47 PMwasyl
05/10/2022, 1:55 PMGavin Ray
05/10/2022, 1:55 PMGavin Ray
05/10/2022, 1:56 PMwasyl
05/10/2022, 1:58 PM~/.gradle/cache/build-cache-1
)
• module build directory <modulePath>/build
• project-level .gradle
directory (./.gradle
)
You can also force what should be a clean build by adding --rerun-tasks --no-build-cache
and optionally --refresh-dependencies
flags to ./gradlew
invocationGavin Ray
05/10/2022, 2:03 PMGavin Ray
05/10/2022, 2:09 PMGavin Ray
05/10/2022, 2:09 PMGavin Ray
05/10/2022, 2:43 PM-Xcontext-receivers
enabled which was marking the sources as prerelease 🙄