我正在使用NDK开发Google VR应用,我的活动包括以下代码:
if (gvrLayout.setAsyncReprojectionEnabled(true)) {
AndroidCompat.setSustainedPerformanceMode(this, true);
}
这是编译,但是当我尝试运行应用程序时,我收到以下错误:
java.lang.UnsatisfiedLinkError: No implementation found for
boolean com.google.vr.ndk.base.GvrApi.nativeUsingVrDisplayService(long)
(tried Java_com_google_vr_ndk_base_GvrApi_nativeUsingVrDisplayService
and Java_com_google_vr_ndk_base_GvrApi_nativeUsingVrDisplayService__J)
at com.google.vr.ndk.base.GvrApi.nativeUsingVrDisplayService(Native Method)
at com.google.vr.ndk.base.GvrApi.usingVrDisplayService(SourceFile:952)
at com.google.vr.ndk.base.GvrLayout.setAsyncReprojectionEnabled(SourceFile:610)
当我删除该部分代码时,该应用程序运行没有问题。我在我的版本中包含了sdk-common-1.10.0.aar。我需要别的吗?