【问题标题】:Getting an error saying "Path.approximate() not supported" when I try to add a ProgressBar to the layout当我尝试将 ProgressBar 添加到布局时收到错误消息“不支持 Path.approximate()”
【发布时间】:2015-01-08 12:09:37
【问题描述】:

我正在尝试将 ProgressBar 添加到布局中,但在 xml 的图形布局中出现此错误:

Path.approximate() not supported
Failed to parse file
sdk\platforms\android-21\data\res\drawable\progress_indeterminate_horizontal_material.xml

我正在使用 Eclipse,我尝试更新 ADT 插件和构建工具,但没有帮助。

当我选择较低的 API 时,错误消失了,但是有没有适当的方法可以在不更改 API 的情况下解决这个问题?

【问题讨论】:

标签: android eclipse


【解决方案1】:

确保您已添加已下载的最新 sdk。这样做的方法是:

转到标签Window->Preferences->Android,然后选择您安装android sdk的sdk文件夹。

【讨论】:

  • sdk位置已经设​​置正确了,但还是报错。
猜你喜欢
  • 1970-01-01
  • 2019-07-19
  • 1970-01-01
  • 2014-05-03
  • 1970-01-01
  • 2021-06-13
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多