棘手的小问题。带有 FB 插件的测试项目运行良好,我的项目给了我以下错误。结果是,当我将 FB 测试项目连接到资产服务器,并且为每个文件夹创建了 .meta 文件时,它也会出错。有什么方法可以告诉编译器跳过 .meta 文件?
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 文件,即使我与资产服务器断开连接:(有什么想法吗?
更新:必须去编辑 -> 项目设置 -> 编辑器并禁用版本控制才能编译。如果可以修复此问题会很好,以便在打包 APK 时忽略元文件...