小米开放平台审核测试不通过,这边手机测试都没问题。

0 投票
最新提问 3月 13, 2018 用户: zaxxjsgfgs (120 分)

03-12 19:05:36.022 15911 15911 E AndroidRuntime: FATAL EXCEPTION: main

03-12 19:05:36.022 15911 15911 E AndroidRuntime: Process: com.*.*, PID: 15911

03-12 19:05:36.022 15911 15911 E AndroidRuntime: java.lang.RuntimeException: Unable to pause activity {com.*.*/cn.easyar.samples.helloarvideo.VRMainActivity}: java.lang.RuntimeException: getParameters failed (empty parameters)

03-12 19:05:36.022 15911 15911 E AndroidRuntime: at android.app.ActivityThread.performPauseActivity(ActivityThread.java:3422)

03-12 19:05:36.022 15911 15911 E AndroidRuntime: at android.app.ActivityThread.performPauseActivity(ActivityThread.java:3381)

03-12 19:05:36.022 15911 15911 E AndroidRuntime: at android.app.ActivityThread.handlePauseActivity(ActivityThread.java:3356)

03-12 19:05:36.022 15911 15911 E AndroidRuntime: at android.app.ActivityThread.access$1200(ActivityThread.java:154)

03-12 19:05:36.022 15911 15911 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1392)

03-12 19:05:36.022 15911 15911 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)

03-12 19:05:36.022 15911 15911 E AndroidRuntime: at android.os.Looper.loop(Looper.java:157)

03-12 19:05:36.022 15911 15911 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5555)

03-12 19:05:36.022 15911 15911 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)

03-12 19:05:36.022 15911 15911 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:745)

03-12 19:05:36.022 15911 15911 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:635)

03-12 19:05:36.022 15911 15911 E AndroidRuntime: Caused by: java.lang.RuntimeException: getParameters failed (empty parameters)

03-12 19:05:36.022 15911 15911 E AndroidRuntime: at android.hardware.Camera.native_getParameters(Native Method)

03-12 19:05:36.022 15911 15911 E AndroidRuntime: at android.hardware.Camera.getParameters(Camera.java:2011)

03-12 19:05:36.022 15911 15911 E AndroidRuntime: at cn.easyar.engine.CameraDevice.getSize(CameraDevice.java:297)

03-12 19:05:36.022 15911 15911 E AndroidRuntime: at cn.easyar.engine.EasyARNative.onPause(Native Method)

03-12 19:05:36.022 15911 15911 E AndroidRuntime: at cn.easyar.engine.EasyAR.onPause(EasyAR.java:111)

03-12 19:05:36.022 15911 15911 E AndroidRuntime: at cn.easyar.Engine.onPause(Engine.java:21)

03-12 19:05:36.022 15911 15911 E AndroidRuntime: at cn.easyar.samples.helloarvideo.GLView.onPause(GLView.java:100)

03-12 19:05:36.022 15911 15911 E AndroidRuntime: at cn.easyar.samples.helloarvideo.VRMainActivity.onPause(VRMainActivity.java:173)

03-12 19:05:36.022 15911 15911 E AndroidRuntime: at android.app.Activity.performPause(Activity.java:6469)

03-12 19:05:36.022 15911 15911 E AndroidRuntime: at android.app.Instrumentation.callActivityOnPause(Instrumentation.java:1312)

03-12 19:05:36.022 15911 15911 E AndroidRuntime: at android.app.ActivityThread.performPauseActivity(ActivityThread.java:3408)

03-12 19:05:36.022 15911 15911 E AndroidRuntime: ... 10 more

jar文件中(CameraDevice.java:297)

public boolean setFrameRate(float fps) {
    if(!this.ready()) {
        return false;
    } else {
        this.mCachedFPS = this.getOptimalFrameRate((int)fps);
        Parameters params = this.mCamera.getParameters();
        params.setPreviewFrameRate(this.mCachedFPS);
        this.mCamera.setParameters(params);
        return true;
    }
}

登录 或者 注册 后回答这个问题。

欢迎来到 EasyAR Q&A ,有什么不懂的可以尽管在这里提问,你将会收到社区其他成员的回答。
...