我正在尝试创建一个安卓机械表面。但我得到一个我无法解决的错误

时间:2015-06-20 19:23:37

标签: android wear-os watch-face-api

Resources resources = MyWatchFace.this.getResources();
        Drawable backgroundDrawable= resources.getDrawable(R.drawable.face1, null);
        mBackgroundBitmap=((BitmapDrawable)backgroundDrawable).getBitmap();

当我在模拟器上运行表盘时出现错误,我的意思是,表盘运行但在日志文件中我有错误:

  

" 06-20 18:56:12.025 7540-7548 /? E / art:写握手失败   bytes(-1 of 14):管道损坏"。

还有我试图安装的表盘的背景,它没有正确缩放,我会上传一张图片,但我需要至少有10个代表。

0 个答案:

没有答案