Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

android studio no longer run/debug (install) RenderScript app to mobile device anymore

Tags:

This issue started after I updated Android Studio from 2.1.2 to 2.3.3, with an existing RenderScript project. The error message I get is:

Error:Execution failed for task ':app:mergeDebugResources'.
Error: java.io.FileNotFoundException: C:\< project location > \app\build\generated\res\rs\debug\raw\bc64 (Access is denied)

The project is from Android Studio 2.1.2 and later opened by 2.3.3. There is no prompt of an incorrect version number, so it should work fine. But now I cannot Run/Debug app to a mobile device.

When I tried creating a new blank screen project with RenderScript enabled, it was able to run/debug.

How to solve?

like image 625
vims liu Avatar asked Jun 17 '17 02:06

vims liu


1 Answers

Has same problem, added to Graddle configuration:

android{
    ...
    defaultConfig{
        ...
        renderscriptTargetApi 21
    }
}
like image 56
Pavlus Avatar answered Oct 11 '22 12:10

Pavlus