The following classes could not be instantiated:- com.tencent.qcload.playersd...?

  • 回答 (1)
  • 关注 (0)
  • 查看 (153)

在范例PlaySDKDemo中的布局文件activity_mail中出现的问题,具体情况如下:Tip: Use View.isInEditMode() in your custom views to skip code when shown in Eclipsejava.lang.NullPointerException at com.tencent.qcload.playersdk.ui.VideoRootFrame.init(VideoRootFrame.java:123) at com.tencent.qcload.playersdk.ui.VideoRootFrame.<init>(VideoRootFrame.java:104) at sun.reflect.NativeConstructorAccessorImpl.newInstance0( at sun.reflect.NativeConstructorAccessorImpl.newInstance( at sun.reflect.DelegatingConstructorAccessorImpl.newInstance( at java.lang.reflect.Constructor.newInstance( at com.android.ide.eclipse.adt.internal.editors.layout.ProjectCallback.instantiateClass(ProjectCallback.java:438) at com.android.ide.eclipse.adt.internal.editors.layout.ProjectCallback.loadView(ProjectCallback.java:190) at android.view.BridgeInflater.loadCustomView(BridgeInflater.java:206) at android.view.BridgeInflater.createViewFromTag(BridgeInflater.java:131) at android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:755) at android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:64) at android.view.LayoutInflater.rInflate(LayoutInflater.java:727) at android.view.LayoutInflater.inflate(LayoutInflater.java:492) at android.view.LayoutInflater.inflate(LayoutInflater.java:373)查资料说是可以用isInEditMode()忽略掉某些代码,但在这里代码是封装好的,看不到具体内容。想知道为什么会出现这样的问题?要怎么解决?是不是可以忽略这个问题?

10127921801012792180提问于
奇奇回答于

麻烦加一下q3269893900,我发个demo给你参考下

扫码关注云+社区

领取腾讯云代金券