我可以让两个独立的内部函数工作,但不能在一个ScriptGroup中一起工作。我发现关于如何使用ScriptGroup的文档非常稀少。这是我的代码:mRS=RenderScript.create(getActivity());mInAllocation=Allocation.createFromBitmap(mRS,mBitmapIn,Allocation.MipmapControl.MIPMAP_NONE,Allocation.USAGE_SCRIPT|Allocation.USAGE_GRAPHICS_TEXTURE|Allocation.USAGE_SHARED);mOutAll