我首先使用 nvm 安装了 nodejs,但它没有按我预期的那样工作。当我使用 LTS version 安装它时sudo yum -y install nodejs,它可以工作,但我无法找到 node.js 的版本。
node -v
-bash: /root/.nvm/versions/node/v8.11.3/bin/node: No such file or directory
Run Code Online (Sandbox Code Playgroud)
我试图删除 nvm 但仍然收到相同的消息。
我正在开发一个多模块项目。我最近将 kotlin 版本升级到 1.9.0,并将 compose 编译器升级到 1.5.2。Gradle 插件版本 8.1.1
自从升级以来,我不断收到以下错误:
A problem occurred configuring project ':data-local'.
> Cannot query the value of task ':data-local:compileDebugKotlin' property 'moduleName' because it has no value available.
* Try:
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Exception is:
org.gradle.api.ProjectConfigurationException: A problem occurred configuring project ':data-local'.
at org.gradle.configuration.project.LifecycleProjectEvaluator.wrapException(LifecycleProjectEvaluator.java:84)
at org.gradle.configuration.project.LifecycleProjectEvaluator.addConfigurationFailure(LifecycleProjectEvaluator.java:77)
at org.gradle.configuration.project.LifecycleProjectEvaluator.access$400(LifecycleProjectEvaluator.java:55)...
Run Code Online (Sandbox Code Playgroud)
这是我的数据本地build.gradle文件:
plugins {
alias libs.plugins.android.library
alias libs.plugins.kotlin.android
alias …Run Code Online (Sandbox Code Playgroud)