在其他手表应用中,Moto 360中的Android Wear应用崩溃工作正常

时间:2017-07-06 20:08:30

标签: android crash wear-os moto-360 wearables

我正在研究磨损应用。应用程序在其他手表中运行良好,但在Moto 360中,当我们启动应用程序时它会崩溃。 Android佩戴1.5.0,操作系统:6.0.1,Google Play服务11.0.55。 这是日志。

--------- beginning of crash
07-06 12:48:54.471 5752-5752/? E/AndroidRuntime: FATAL EXCEPTION: main
                                             Process: com.google.android.wearable.app, PID: 5752
                                             java.lang.RuntimeException: Unable to destroy activity {com.google.android.wearable.app/com.google.android.clockwork.home.HomeActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'int android.view.View.getHeight()' on a null object reference
                                                 at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3831)
                                                 at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:3849)
                                                 at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:4053)
                                                 at android.app.ActivityThread.-wrap15(ActivityThread.java)
                                                 at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1350)
                                                 at android.os.Handler.dispatchMessage(Handler.java:102)
                                                 at android.os.Looper.loop(Looper.java:148)
                                                 at android.app.ActivityThread.main(ActivityThread.java:5422)
                                                 at java.lang.reflect.Method.invoke(Native Method)
                                                 at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
                                                 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
                                              Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'int android.view.View.getHeight()' on a null object reference
                                                 at com.google.android.clockwork.home.cuecard.VoicePlateFragment.onCueCardClosed(VoicePlateFragment.java:1734)
                                                 at com.google.android.clockwork.home.cuecard.VoiceUiController.close(VoiceUiController.java:440)
                                                 at com.google.android.clockwork.home.HomeActivity.removeCueCard(HomeActivity.java:1720)
                                                 at com.google.android.clockwork.home.HomeActivity.destroyCueCard(HomeActivity.java:876)
                                                 at com.google.android.clockwork.home.HomeActivity.onDestroy(HomeActivity.java:908)
                                                 at android.app.Activity.performDestroy(Activity.java:6422)
                                                 at android.app.Instrumentation.callActivityOnDestroy(Instrumentation.java:1142)
                                                 at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3818)
                                                 at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:3849) 
                                                 at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:4053) 
                                                 at android.app.ActivityThread.-wrap15(ActivityThread.java) 
                                                 at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1350) 
                                                 at android.os.Handler.dispatchMessage(Handler.java:102) 
                                                 at android.os.Looper.loop(Looper.java:148) 
                                                 at android.app.ActivityThread.main(ActivityThread.java:5422) 
                                                 at java.lang.reflect.Method.invoke(Native Method) 
                                                 at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) 
                                                 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) 
07-06 12:48:54.480 467-933/? W/ActivityManager:   Force finishing activity com.google.android.wearable.app/com.google.android.clockwork.home.HomeActivity
07-06 12:48:54.745 467-508/? V/WindowManager: Layouts looping: On entry to LockedInner, mPendingLayoutChanges = 0x1
07-06 12:48:54.745 467-508/? V/WindowManager: Layouts looping: after finishPostLayoutPolicyLw, mPendingLayoutChanges = 0x0
07-06 12:48:54.746 467-508/? V/WindowManager: Layouts looping: mLayoutNeeded, mPendingLayoutChanges = 0x1
07-06 12:48:54.746 467-508/? V/WindowManager: Layouts looping: On entry to LockedInner, mPendingLayoutChanges = 0x1
07-06 12:48:54.747 467-508/? V/WindowManager: Layouts looping: after finishPostLayoutPolicyLw, mPendingLayoutChanges = 0x0
07-06 12:48:54.753 467-508/? V/WindowManager: Layouts looping: mLayoutNeeded, mPendingLayoutChanges = 0x1
07-06 12:48:54.754 467-508/? E/WindowManager: Performed 6 layouts in a row. Skipping
07-06 12:48:54.760 467-508/? I/ActivityManager: Displayed com.us.lexusenformremote/.Splash: +602ms
07-06 12:48:54.975 5359-5359/? I/CmaSystemUpdateService: ActiveReceiver: Intent { act=android.os.UpdateLock.UPDATE_LOCK_CHANGED flg=0x4000010 cmp=com.google.android.gms/.update.SystemUpdateServiceActiveReceiver (has extras) }
07-06 12:48:54.975 5359-5359/? I/CmaSystemUpdateService: receiver: Intent { act=android.os.UpdateLock.UPDATE_LOCK_CHANGED flg=0x4000010 cmp=com.google.android.gms/.update.SystemUpdateServiceActiveReceiver (has extras) }
07-06 12:48:55.004 213-5984/? D/hardware_info: hw_info_append_hw_type : device_name = voice-rec-dmic-ef-fluence
07-06 12:48:55.008 213-343/? D/audio_hw_primary: adev_close_input_stream: 0xb410f1e0 

1 个答案:

答案 0 :(得分:0)

此问题已在this google forum中打开,设备也是moto 360。这是工程师的回应:

  

您的Android Wear手表可能会显示的原因有很多   消息“Android Wear已停止”。

     
      
  1. 确保您在latest Android Wear app update
  2.   
  3. 确保您使用最新的Android Wear手表更新
  4.   
  5. 尝试重新启动手表
  6.   
  7. 如果这些都不起作用,那么try unpairing and pairing again
  8.         

    如果这些都不起作用,您可以尝试使用其他解决方案的用户   这个帖子成功使用了。

         
        
    1. 转到设置>应用> Android Wear - 清除缓存和清除数据。看看这是否有帮助。
    2.   
    3. 更新Android手机或iPhone上的Google应用
    4.   
    5. 检查第三方应用并观看最近安装的面孔。尝试从手机上卸载,然后重新启动手表和手机。
    6.   
    7. 从设置,设备,应用中,使用卸载更新按钮撤消对Google Play服务的最新更改,然后清除缓存   和清除数据。最新的更新可能有问题   Google Play服务。
    8.   
    9. 如果您对某个特定制造商有疑问,或者您怀疑它可能是硬件问题,请与他们联系
    10.   
    11. 检查how to fix an app that is not working上的步骤。
    12.