提问人:ronmar 提问时间:11/17/2023 更新时间:11/17/2023 访问量:26
Unity中的Gradle构建错误,出现错误:评估项目“:launcher”时出现问题
Gradle Build Error In Unity with error A problem occurred evaluating project ':launcher'
问:
我有一个关于android.enableR8的错误,但我将其设置为true,错误消失了
现在我正在尝试构建一个APK,但总是收到以下两个错误:
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-----------
* Where:
Build file '/Users/username/workdir/appname/Library/Bee/Android/Prj/IL2CPP/Gradle/launcher/build.gradle' line: 7
* What went wrong:
A problem occurred evaluating project ':launcher'.
> No signature of method: build_x0sqiuspfvwz7kaxn7p25y4z.android() is applicable for argument types: (build_x0sqiuspfvwz7kaxn7p25y4z$_run_closure2) values: [build_x0sqiuspfvwz7kaxn7p25y4z$_run_closure2@2449292e]
* Try:
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.
==============================================================================
2: Task failed with an exception.
-----------
* What went wrong:
A problem occurred configuring project ':launcher'.
> compileSdkVersion is not specified. Please add it to build.gradle
* Try:
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
BUILD FAILED in 2s
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) (at /Users/bokken/build/output/unity/unity/Modules/IMGUI/GUIUtility.cs:190)
答: 暂无答案
评论