2
votes

Hi get this error while trying to build a project i imported in android studio

Could not find method renderscriptSupportMode() for arguments [false] on ProductFlavor_Decorated{name=main, minSdkVersion=ApiVersionImpl{mApiLevel=14, mCodename='null'}, targetSdkVersion=ApiVersionImpl{mApiLevel=19, mCodename='null'}, renderscriptTargetApi=19, renderscriptSupportModeEnabled=null, renderscriptNdkModeEnabled=null, versionCode=null, versionName=null, applicationId=com.jams.music.player, testApplicationId=null, testInstrumentationRunner=null, testHandleProfiling=null, testFunctionalTest=null, signingConfig=null, resConfig=null, mBuildConfigFields={}, mResValues={}, mProguardFiles=[], mConsumerProguardFiles=[], mManifestPlaceholders={}}.

How do i do away with this error please anyone

2

2 Answers

9
votes

0.14.0 (2014/10/31) Renamed a few properties to make things more consistent:

  • BuildType.runProguard -> minifyEnabled
  • BuildType.zipAlign -> zipAlignEnabled
  • BuildType.jniDebugBuild -> jniDebuggable
  • BuildType.renderscriptDebug -> renderscriptDebuggable
  • ProductFlavor.renderscriptSupportMode -> renderscriptSupportModeEnabled
  • ProductFlavor.renderscriptNdkMode -> renderscriptNdkModeEnabled

so renderscriptSupportMode rename to renderscriptNdkModeEnabled

0
votes

Though @Azu has mentioned it in the answer, the part you are looking for is :

renderscriptSupportMode -> renderscriptSupportModeEnabled

in your gradle file.

This is because the directives of gradle changed.