在构建项目时,我第一次遇到此错误,但我不知道如何解决。 有人可以帮我吗?
Build: build failed
Run build /Project/festoco
Run tasks
:app:compileDebugRenderscript
Execute taskAction:
Cause: llvm-rs-cc is missing
java.lang.IllegalStateException: llvm-rs-cc is missing
at com.android.builder.core.AndroidBuilder.compileAllRenderscriptFiles(AndroidBuilder.java:1194)
at com.android.build.gradle.tasks.RenderscriptCompile.taskAction(RenderscriptCompile.java:206)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73)
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.doExecute(StandardTaskAction.java:46)
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:39)
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:26)
at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:788)
at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:755)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.run(ExecuteActionsTaskExecuter.java:124)
at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:199)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:110)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:113)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:95)
at ...
答案 0 :(得分:0)
尝试以下步骤-
答案 1 :(得分:0)
缺少此错误“ llvm-rs-cc”:与Android SDK的“ build-tools”文件夹相关,下载的构建工具也将位于该文件夹中,例如28.0.3的任何构建版本文件夹中都存在一个具有此名称的文件如果您的android SDK路径未指向正确的位置,并且编译器找不到它,则会显示“ llvm-rs-cc”。
解决: 1-将Android SDK路径更改为正确的位置 要么 2-删除“ build-tools”中的相关构建文件夹(例如,如果在build.gradle:buildToolsVersion '28 .0.3'中,您必须删除名称为28.0.3的文件夹),然后打开“ SDK Manager”并下载相关的sdk 。 3-将gradle中的buildToolsVersion更改为另一个下载版本