为什么在x86_64 ABI上没有为Renderscript生成任何库?

时间:2019-05-26 08:47:16

标签: android android-studio renderscript android-renderscript

我创建了一个新的空应用程序以尝试缩小问题范围。现在我只有:

resize.rs

#pragma version(1)
#pragma rs java_package_name(com.example.renderscripttest.rs)
#pragma rs_fp_relaxed

uchar4 __attribute__((kernel)) nearest(uint32_t x, uint32_t y) {
    return 0;
}

static float4 cubicInterpolate (float4 p0,float4 p1,float4 p2,float4 p3 , float x) {
    return 0;
}

uchar4 __attribute__((kernel)) bicubic(uint32_t x, uint32_t y) {
    return 0;
}

RsResize.java

package com.example.renderscripttest;
import android.support.v8.renderscript.*;

import com.example.renderscripttest.rs.ScriptC_resize;

public class RsResize {
  private ScriptC_resize mScript;

  public RsResize(RenderScript rs){
    mScript.toString();
  }
}

,并在我的 build.gradle

splits{
    abi{
        enable true
        reset()
        include 'x86_64', 'x86'
        universalApk false
    }
}

当我构建APK并对其进行分析时,我发现x86上有一个librsresize.so,但x86_64上没有。{p>

x86

x86_64

另外,当我使用x86_64 ABI打开仿真器并尝试安装x86_64 apk时,出现“ NO MATCHING ABI”错误。

我在Google文档中没有发现任何相关内容。有人知道发生了什么事吗?

0 个答案:

没有答案
相关问题