Android Studio Wear App Error - Unable to Open PNG

后端 未结 2 568
北海茫月
北海茫月 2020-12-19 08:15

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\\L         


        
2条回答
  •  攒了一身酷
    2020-12-19 08:45

    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

    is 265 characters.

    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.

    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

提交回复
热议问题