Appcelerator - Android failed to package application, duplicate file

余生颓废 提交于 2019-12-10 11:23:56

问题


Having a load of issues with Appcelerator at the moment, random error messages at every turn, but I know that comes with the territory.

Today's hurdle is testing out the Facebook integration for my app and I'm testing on a vanilla project created by the studio.

When I go to test the application I get the following error:

[ERROR] :  Failed to package application:
[ERROR] :  
[ERROR] :  /Users/auhjbe0/Documents/Appcelerator_Studio_Workspace/CleanProject/build/android/res/drawable-hdpi-v4/com_facebook_button_like_icon_selected.png: error: Duplicate file.
[ERROR] :  /Users/auhjbe0/Documents/Appcelerator_Studio_Workspace/CleanProject/build/android/res/drawable-hdpi/com_facebook_button_like_icon_selected.png: Original is here. The version qualifier may be implied.

Nothing special with the project, it's just a basic setup with the tiapp.xml changes and facebook.module added?

Any ideas?


回答1:


See this ticket https://jira.appcelerator.org/browse/MOD-2283 But even though it says it’s resolved…it’s not. You have to download the facebook module 5.2.0 from github and place it locally in your project (modules). The facebook module 5.2.0 in the Ti sdk distribution fails the build.



来源:https://stackoverflow.com/questions/39589842/appcelerator-android-failed-to-package-application-duplicate-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!