当项目连接到资产服务器Facebook的统一SDK机器人barfs连接到、机器人、资产、服务器

2023-09-07 14:54:26 作者:我非柠檬为何心酸

整蛊小问​​题。测试项目与FB插件精细的工作,我的项目给了我下面的错误。原来,当我连FB测试项目资产的服务器,并为每个文件夹的创建得到了.META文件,它也将BARF。没有办法告诉编译器跳过.META文件?

Tricky little issue. A test project with FB plugin worked fine, my project gave me below error. Turns out when i connected FB test project to asset server, and the .meta files got created for each folder, it would barf also. Any way to tell compiler to skip .meta files?

Error building Player: CommandInvokationFailure: Failed to re-package resources. See the     Console for details.
/Users/me/android-sdk-macosx/platform-tools/aapt package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "/Users/me/android-sdk-   macosx/platforms/android-17/android.jar" -F bin/resources.ap_ --extra-packages com.facebook.android -S "/Users/me/Unity/FBTest/Assets/Plugins/Android/facebook/res"

stderr[
invalid resource directory name: /Users/me/Unity/FBTest/Assets/Plugins/Android/facebook/res/drawable-hdpi.meta
invalid resource directory name: /Users/me/Unity/FBTest/Assets/Plugins/Android/facebook/res/drawable-ldpi.meta
invalid resource directory name: /Users/me/Unity/FBTest/Assets/Plugins/Android/facebook/res/drawable-mdpi.meta

更新:似乎无法摆脱.META文件,即使我从资产服务器:(任何想法断开

UPDATE: can't seem to get rid of .meta files, even though i disconnected from asset server :( any ideas?

更新:不得不去编辑 - >项目设置 - >编辑和禁用版本控制得到这编译。将是很好,如果这可能是固定的,所以元文件中的APK ...

UPDATE: had to go Edit -> Project Settings -> Editor and disable version control to get this to compile. Would be nice if this could be fixed so meta files are ignored in the packageing of an APK...

推荐答案

可能也标志着这是回答。资产服务器添加的.META文件被破坏了android包装,所以解决办法是禁用编辑源代码管理 - >项目设置 - >做一个构建之前编辑器。很好,如果这是固定的,所以这一步是不必要的,但...

May as well mark this as answered. The .meta files added for asset server are breaking the android packaging, so the work around is to disable source control under Edit -> Project Settings -> Editor before doing a build. Be nice if this was fixed so that step was unnecessary though...

更新:

嗯,重新连接到资产的服务器使得它觉得一切都在当地发生了变化,所以这是一个非常,非常苏茨基解决方法

Um, reconnecting to asset server makes it think everything locally has changed, so this is a really, really sucky workaround