More than one file was found with OS independent path 'lib/arm64-v8a/libndk_sensor.so'. If you are using jniLibs and CMake IMPORTED targets, see https://developer.android.com/studio/preview/features#automatic_packaging_of_prebuilt_dependencies_used_by_cmake
报上面的错误是用了
classpath "com.android.tools.build:gradle:4.1.3"
改为
classpath 'com.android.tools.build:gradle:3.5.1'
重新编译可以了,可能是新版gradle的bug