PlusOneButton使用View.isInEditMode()

时间:2013-09-21 16:37:22

标签: android xml nullpointerexception google-plus google-plus-one

我为这个链接[oficial] https://developers.google.com/+/mobile/android/recommend

实现了android的plusOne按钮

但我在xml文件中遇到问题:

  

无法实例化以下类:    - com.google.android.gms.plus.PlusOneButton(Open Class,Show Exception)    提示:在IDE异常详细信息中显示时,在自定义视图中使用View.isInEditMode()来跳过代码或显示示例数据java.lang.NullPointerException ...

当我在设备上运行plusone按钮时

0 个答案:

没有答案