Android Studio Wear 应用程序错误 - 无法打开 PNG [英] Android Studio Wear App Error - Unable to Open PNG
问题描述
我在创建新的 Wear 应用后收到以下错误.我也在 sdk 文件夹中的示例应用程序中得到了这个.
I'm getting the following error after creating a new wear app. I'm also getting this in the example app found in the sdk folder.
C:\Users\Tom\AppData\Local\Android\android-studio1\sdk\samples\android-20\wearable\SynchronizedNotifications\Application\build\intermediates\exploded-aar\com.google.android.gms\play-services\5.0.77\res\drawable-mdpi\common_signin_btn_text_disabled_focus_light.9.png ERROR: Unable to open PNG file
推荐答案
与目录和文件名长度有关.我认为它需要在 256 个字符以下.
It's related to the directory and file name length. I believe it needs to be under 256 characters.
C:\Users\Tom\AppData\Local\Android\android-studio1\sdk\samples\android-20\wearable\SynchronizedNotifications\Application\build\intermediates\exploded-aar\com.google.android.gms\play-services\5.0.77\res\drawable-mdpi\common_signin_btn_text_disabled_focus_light.9.png
C:\Users\Tom\AppData\Local\Android\android-studio1\sdk\samples\android-20\wearable\SynchronizedNotifications\Application\build\intermediates\exploded-aar\com.google.android.gms\play-services\5.0.77\res\drawable-mdpi\common_signin_btn_text_disabled_focus_light.9.png
是 265 个字符.
将项目移动到较低的目录修复了问题.
Moving the project to a lower directory fixed the issue.
我将尝试实现到目录的硬链接以缩短名称,这样我就不必更新目录结构.
I'm going to try implementing a hardlink to the directory to shorten the name so I won't have to update the directory structure.
我还向 android 开发团队提交了一张票.目前优先级设置为小...https://code.google.com/p/android/issues/detail?id=73873
I also submitted a ticket with the android dev team. Currently priority is set to small... https://code.google.com/p/android/issues/detail?id=73873
这篇关于Android Studio Wear 应用程序错误 - 无法打开 PNG的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!