Android 获取CPU架构(指令集)

1、

 String[] abis = new String[]{};
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
            abis = Build.SUPPORTED_ABIS;
        } else {
            abis = new String[]{Build.CPU_ABI, Build.CPU_ABI2};
        }
        StringBuilder abiStr = new StringBuilder();
        for (String abi : abis) {
            abiStr.append(abi);
            abiStr.append(',');
        }
        Log.i("ceshi", "CPU架构: "+abiStr.toString());

2、调用外部SO库主要事项:导入项目调用SO类的包名类名要和原SO库项目所在的包名类名一致

你可能感兴趣的:(android)