我使用SpriteBuilder创建游戏。游戏在任何iOS设备上运行良好,但是当我尝试为Android构建时,我收到错误"包APK工具错误"。
SB版本:1.4.9
SB修订版:eea568a5c7
XCode版本6.0.1(6A317)
我得到的错误信息如下:
失败:' / Library / SBAndroid / Application 支持/开发/共享/ Xcode中/工具链/ Android.xctoolchain / LIB / apportable / build_tools / aapt_package.py' -R /用户/ thefreebird /库/开发商/ Xcode中/ DerivedData /先doujqshtxvhdhsgbiqpivulzfhbi /编译/产品/调试-sbandroid / GEN /组织/ cocos2d的/一/ R.java --depfile' / Users / thefreebird / Library / Developer / Xcode / DerivedData / First-doujqshtxvhdhsgbiqpivulzfhbi / Build / Products / Debug-sbandroid / First Demo Project-resources.apk.d' -S /Users/thefreebird/Documents/CoCOS2dProjs/First.spritebuilder/Source/Resources/res - ' / Library / SBAndroid / Application Support / Developer / Shared / Xcode / Toolchains / Android.xctoolchain / usr / bin / aapt' package --auto-add-overlay -m -f -M /Users/thefreebird/Library/Developer/Xcode/DerivedData/First-doujqshtxvhdhsgbiqpivulzfhbi/Build/Products/Debug-sbandroid/AndroidManifest.xml -I' / Library / SBAndroid / Application Support / Developer / Shared / Xcode / Platforms / Android.platform / Developer / SDKs / SBAndroid.sdk /../../ lib / android.jar' -F' / Users / thefreebird / Library / Developer / Xcode / DerivedData / First-doujqshtxvhdhsgbiqpivulzfhbi / Build / Products / Debug-sbandroid / First 演示项目 - resources.apk' -J /用户/ thefreebird /库/开发商/ Xcode中/ DerivedData /先doujqshtxvhdhsgbiqpivulzfhbi /编译/产品/调试-sbandroid /根 --generate-dependencies -S /Users/thefreebird/Documents/CoCOS2dProjs/First.spritebuilder/Source/Resources/res --extra-packages org.cocos2d.First无效的资源目录名称:/Users/thefreebird/Documents/CoCOS2dProjs/First.spritebuilder/Source/Resources/res/assets 失败:' / Library / SBAndroid / Application 支持/开发/共享/ Xcode中/工具链/ Android.xctoolchain的/ usr / bin中/ DX' --dex --num-threads = 16 --output =' / Users / thefreebird / Library / Developer / Xcode / DerivedData / First-doujqshtxvhdhsgbiqpivulzfhbi / Build / Products / Debug-sbandroid / dexed_libs / Library_SBAndroid_Application Support_Developer_Shared_Xcode_Platforms_Android.platform_Developer_SDKs_SBAndroid.sdk_System_Library_Frameworks_JavaFoundation.framework_java_JavaFoundationJava.jar' ' /库/ SBAndroid /应用程序 支持/开发/共享/ Xcode中/平台/ Android.platform /开发商/软件开发工具包/ SBAndroid.sdk /系统/库/框架/ JavaFoundation.framework / JAVA / JavaFoundationJava.jar' 无法找到可执行文件 " /Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home/bin/bin/java" (-1)FAILED:' / Library / SBAndroid / Application 支持/开发/共享/ Xcode中/工具链/ Android.xctoolchain的/ usr / bin中/ DX' --dex --num-threads = 16 --output =' / Users / thefreebird / Library / Developer / Xcode / DerivedData / First-doujqshtxvhdhsgbiqpivulzfhbi / Build / Products / Debug-sbandroid / dexed_libs / Library_SBAndroid_Application Support_Developer_Shared_Xcode_Platforms_Android.platform_Developer_SDKs_SBAndroid.sdk_System_Library_Frameworks_GLActivityKit.framework_java_GLActivityJava.jar' ' /库/ SBAndroid /应用程序 支持/开发/共享/ Xcode中/平台/ Android.platform /开发商/软件开发工具包/ SBAndroid.sdk /系统/库/框架/ GLActivityKit.framework / JAVA / GLActivityJava.jar' 无法找到可执行文件 " /Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home/bin/bin/java" (-1)FAILED:' / Library / SBAndroid / Application 支持/开发/共享/ Xcode中/工具链/ Android.xctoolchain的/ usr / bin中/ DX' --dex --num-threads = 16 --output =' / Users / thefreebird / Library / Developer / Xcode / DerivedData / First-doujqshtxvhdhsgbiqpivulzfhbi / Build / Products / Debug-sbandroid / dexed_libs / Library_SBAndroid_Application Support_Developer_Shared_Xcode_Platforms_Android.platform_Developer_SDKs_SBAndroid.sdk_System_Library_Frameworks_AndroidKit.framework_java_AndroidKit Java.jar' ' /库/ SBAndroid /应用程序 支持/开发/共享/ Xcode中/平台/ Android.platform /开发商/软件开发工具包/ SBAndroid.sdk /系统/资源库/框架/ AndroidKit.framework / JAVA / AndroidKit Java.jar'无法找到可执行文件 " /Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home/bin/bin/java" (-1)FAILED:' / Library / SBAndroid / Application 支持/开发/共享/ Xcode中/工具链/ Android.xctoolchain的/ usr / bin中/ DX' --dex --num-threads = 16 --output =' / Users / thefreebird / Library / Developer / Xcode / DerivedData / First-doujqshtxvhdhsgbiqpivulzfhbi / Build / Products / Debug-sbandroid / dexed_libs / Library_SBAndroid_Application Support_Developer_Shared_Xcode_Platforms_Android.platform_Developer_SDKs_SBAndroid.sdk _.... lib_annotations.jar' ' /库/ SBAndroid /应用程序 支持/开发/共享/ Xcode中/平台/ Android.platform /开发商/ LIB / annotations.jar' 无法找到可执行文件 " /Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home/bin/bin/java" (-1)FAILED:' / Library / SBAndroid / Application 支持/开发/共享/ Xcode中/工具链/ Android.xctoolchain的/ usr / bin中/ DX' --dex --num-threads = 16 --output =' / Users / thefreebird / Library / Developer / Xcode / DerivedData / First-doujqshtxvhdhsgbiqpivulzfhbi / Build / Products / Debug-sbandroid / dexed_libs / Library_SBAndroid_Application Support_Developer_Shared_Xcode_Platforms_Android.platform_Developer_SDKs_SBAndroid.sdk_System_Library_Frameworks_CoreJava.framework_java_CoreJavaJava.jar' ' /库/ SBAndroid /应用程序 支持/开发/共享/ Xcode中/平台/ Android.platform /开发商/软件开发工具包/ SBAndroid.sdk /系统/库/框架/ CoreJava.framework / JAVA / CoreJavaJava.jar' 无法找到可执行文件 " /Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home/bin/bin/java" (-1)ninja:build stopped:子命令失败。错误:命令失败: ' /库/ SBAndroid /应用程序 支持/开发/共享/ Xcode中/工具链/ Android.xctoolchain的/ usr /斌/忍者' Command / Library / SBAndroid / Application 支持/开发人员/共享/ Xcode /插件/ APPPlatformBuildSystem.xcplugin / Contents / Resources / package-apk.py失败,退出代码为1
Command / Library / SBAndroid / Application Support / Developer / Shared / Xcode / Plug-ins / APPPlatformBuildSystem.xcplugin / Contents / Resources / package-apk.py失败,退出代码为1
请帮我解决问题..
谢谢&问候。