我只是试图用KOtlin Multiplatform测试Hello World。 我这样做,就像有人说的。 我可以操作安乐器,可以工作,但当我试图管理台式主机时,我会收到这个错误的信息。
Cannot locate tasks that match :composeApp:compileJava as task compileJava is ambiguous in project :composeApp . Candidates are: compileDebugAndroidTestJavaWithJavac , compileDebugJavaWithJavac , compileDebugUnitTestJavaWithJavac , compileReleaseJavaWithJavac , compileReleaseUnitTestJavaWithJavac .
* Try:
> Run gradle tasks to get a list of available tasks.
> For more on name expansion, please refer to https://docs.gradle.org/8.4/userguide/command_line_interface.html#sec:name_abbreviation in the Gradle documentation.
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
You can use --warning-mode all to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/8.4/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
BUILD FAILED in 883ms
i 还已经尝试了<条码>梯度:composeApp:run或格勒布任务条码>,但是,我还是收到这一错误信息:
gradlew : The name "gradlew" was not recognized as the name of a cmdlet, a function, a script file or an executable program. Check the spelling of the
name, or whether the path is correct (if included), and repeat the process.
In line:1 Character:1
+ gradlew tasks
+ ~~~~~~~
+ CategoryInfo : ObjectNotFound: (gradlew:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException