且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Android Studio Wear 应用程序错误 - 无法打开 PNG

更新时间:2022-12-29 23:11:21

与目录和文件名长度有关.我认为它需要在 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