gradle 任务“:Compiler-constants:compilerogKotlin”执行失败

ercv8c1e  于 4个月前  发布在  Kotlin
关注(0)|答案(1)|浏览(82)

任务“:Compiler-constants:compilerogKotlin”执行失败。
执行org.jetbrains.Kotlin.compilerRunner. GradleKotlinerRunnerWithWorkers $GradleKotlinerWorkAction编译错误时出错。有关详细信息,请参阅日志
这两个错误也出现在Unresolved reference:deviceYearClass 'getDeviceYearClass' overrides nothing

f8rj6qna

f8rj6qna1#

你需要做一两件事:
1.将expo-constants升级到他们最终从源代码中删除deviceYearClass的版本。我做了一些调查,看起来至少应该是14.4.2版:https://github.com/expo/expo/commit/e6258d39ac388e80bf1b1c7249d5888c9acc8e1e#diff-eae51642ed7ddb2da4dc805c0a022b8c86a1f720b3d585e636415f64cbac9bcbR13
1.(可选)您可能需要也可能不需要将expo-device作为单独的软件包添加。

相关问题