renderscript-samples icon indicating copy to clipboard operation
renderscript-samples copied to clipboard

Build failed

Open YSY4869 opened this issue 5 years ago • 2 comments

I failed to compile the script file saturation.rs. The error info. was

com.android.ide.common.process.ProcessException: Error while executing process $mysdkroot/build-tools/28.0.3/llvm-rs-cc with arguments { -I $mysdkroot/build-tools/28.0.3/renderscript/include/ -I $mysdkroot/build-tools/28.0.3/renderscript/clang-include/ -rs-package-name=androidx.renderscript -p $myprojroot/renderscript-samples-main/BasicRenderScript/Application/build/generated/renderscript_source_output_dir/debug/out -target-api 18 $myprojroot/renderscript-samples-main/BasicRenderScript/Application/src/main/rs/saturation.rs -O 3 -o $myprojroot/renderscript-samples-main/BasicRenderScript/Application/build/generated/res/rs/debug/raw }

I can't get any helpful info. from it. Any suggestions? Thanks!

YSY4869 avatar Jan 12 '21 08:01 YSY4869

In the latest version of Android Studio I removed the buildToolsVersion "29.0.3" from the Gradle script and this error disappeared.

BlackSpruce avatar Mar 15 '21 16:03 BlackSpruce

In the latest version of Android Studio I removed the buildToolsVersion "29.0.3" from the Gradle script and this error disappeared.

Thank you for your help, but I still can't solve the problem. I have several questions below.

  • Which version of AS are you using? Mine is 4.1.3 and I think it should be the latest now.
  • Which version of build Tools are you using? The README file recommends v28.0.3 and you have removed v29.0.3. I have tried v28.0.3, v29.0.2 and v29.0.3, but all failed.
  • Which version of Gradle plugin are you using?

Thanks!

YSY4869 avatar Apr 01 '21 03:04 YSY4869