客户端尚未准备好..在Android Wear Watchface应用中
作者:互联网
我正在尝试使用表盘磨损构建一个应用程序.我的应用程序运行良好,但是当我创建表面磨损并设置NoActivity并运行磨损应用程序时,它在Run-Logcat中显示“客户端尚未准备好..”消息,如下所示:
$adb push F:\Advanced_Android_Development\watchface\build\outputs\apk\watchface-debug.apk /data/local/tmp/com.example.android.sunshine.app
$adb shell pm install -r "/data/local/tmp/com.example.android.sunshine.app"
Success
"Client not ready yet.."
而且当我打开Error-Logcat时,它也会显示-
11-22 22:28:03.629 2782-4263/com.android.vending E/Finsky: [157] com.google.android.vending.verifier.c.b.a(45): Unexpected exception on background thread
android.content.ActivityNotFoundException: Unable to find explicit activity class {com.android.vending/com.google.android.vending.verifier.c}; have you declared this activity in your AndroidManifest.xml?
at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1805)
at android.app.Instrumentation.execStartActivity(Instrumentation.java:1523)
at android.app.ContextImpl.startActivity(ContextImpl.java:791)
at android.app.ContextImpl.startActivity(ContextImpl.java:768)
at android.content.ContextWrapper.startActivity(ContextWrapper.java:356)
at com.google.android.vending.verifier.c.a(SourceFile:40)
at com.google.android.vending.verifier.x.a(SourceFile:2287)
at com.google.android.vending.verifier.c.b.a(SourceFile:43)
at com.google.android.vending.verifier.c.b.doInBackground(SourceFile:38)
at android.os.AsyncTask$2.call(AsyncTask.java:305)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:761)
解决方法:
即使安装成功,我仍然看到客户端未准备就绪的消息.长按表盘或从右向左滑动,然后单击项目符号点列表(以打开可用表盘的列表)并检查是否已安装.
我会寻找狗看的脸,因为它非常突出.
标签:android-studio,wear-os,android,watch-face-api,watchface 来源: https://codeday.me/bug/20191118/2024579.html