0

我制作了自己的表盘,现在我想在表盘上添加手机电池百分比以及能够从手机自定义表盘。我正在尝试使用它:Android Wear Watchface Settings on host但我不断收到错误消息。

Unknown entity 'connection callbacks' 

Method
com.google.android.gems.common.Api.GoggleApiClient.builder.addConnectioncallbacks(com.google.android.gems.common.Api.GoggleApiClient.builder.Connectioncallbacks)'in
com.google.android.gems.common.Api.GoggleApiClient.Builder' connot be applied to '(com.example.android.wearable.embedded.app.WatchfaceConfigActivity.(anonymous) )'

Unknown entity ''OnConnectionFailedListene'

Method
com.google.android.gems.common.Api.GoggleApiClient.builder.addOnConnectionFailedListener(com.google.android.gems.common.Api.GoggleApiClient.builder.OnConnectionFailedListener)'in
com.google.android.gems.common.Api.GoggleApiClient.Builder' connot be applied to '(com.example.android.wearable.embedded.app.WatchfaceConfigActivity.(anonymous) )'
4

1 回答 1

0

我想到了。我必须为每个添加导入。

我仍然有一个问题。顺便说一句,我对android开发很陌生。我收到警告:无法访问变量“phonebattery”。我在这里用“phonebattery”替换了“mode”:Android Wear Watchface Settings on host

于 2014-09-07T15:10:46.407 回答