Cocos2dx:cocos2d-x-3.2版本学习过程中所遇到的一些问题

Cocos2dx:cocos2d-x-3.2版本学习过程中所遇到的一些问题,第1张

概述        1、类似:BUILD FAILED D:\adt-bundle-windows-x86_64-20140702\sdk\tools\ant\build.xml:601: The following error occurred while executing this lin e: D:\adt-bundle-windows-x86_64-20140702\sdk\tools\an 1、类似:BUILD Failed
D:\adt-bundle-windows-x86_64-20140702\sdk\tools\ant\build.xml:601: The following error occurred while executing this lin
e:
D:\adt-bundle-windows-x86_64-20140702\sdk\tools\ant\build.xml:720: The following error occurred while executing this lin
D:\adt-bundle-windows-x86_64-20140702\sdk\tools\ant\build.xml:734: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "C:\Program files\Java\jre1.8.0_65"
解决办法:将C盘java中的jdk的lib中的tools.jar压缩包复制到jre中的lib中存一份。

2、“extensions/ExtensionMacros.h”找不到和加载cocostudio需要添加的库(基本上都是这三个库)
在解决方案中导入现有项目:cocos2d\cocos\ui\proj.win32\libGUI.vcxproj
cocos2d\extensions\proj.win32\libExtensions.vcxproj
cocos2d\cocos\editor-support\cocostudio\proj.win32\libCocosstudio.vcxproj
在自己项目属性\通用属性\引用-》添加新引用(将前面导入的项目勾上确定);
在自己项目属性\配置属性\C/C++\常规-》附加包含目录中添加:
$(EngineRoot)
$(EngineRoot)cocos
$(EngineRoot)cocos\editor-support
(下面这个是在使用cocostudio导出的UI的调用的时候需要的头文件和命名空间)
#include "editor-support/cocostudio/CCSGUIReader.h"
#include "cocostudio/CocoStudio.h"
#include "ui/CocosGUI.h"
using namespace cocos2d::ui;
using namespace cocostudio;
3、cocos2d-x-3.2版本打包安卓莫名错误:
file "D:\cocos2d-x-3.2\tools\cocos2d-console\bin\/cocos.py",line 504,in <module>
run_plugin(command,argv,plugins)
dependencIEs_objects[dep_name] = run_plugin(dep_name,line 471,85); @R_404_6837@-family:'microsoft yahei'; @R_404_6837@-size:15px; line-height:35px"> plugin.run(argv,dependencIEs_objects)
file "D:\cocos2d-x-3.2\tools\cocos2d-console\bin\..\plugins\project_compile\project_compile.py",line 1075,in run
self.build_androID()
self.apk_path = builder.do_build_apk(sdk_root,ant_root,self._ap,build_mode,output_dir,self._custom_step_args,self)
file "D:\cocos2d-x-3.2\tools\cocos2d-console\bin\..\plugins\project_compile\build_androID.py",line 307,in do_build_apk
self._copy_resources(custom_step_args)
shutil.rmtree(assets_dir)
file "C:\Python27\lib\shutil.py",line 247,in rmtree
rmtree(fullname,ignore_errors,onerror)
onerror(os.remove,fullname,sys.exc_info())
os.remove(fullname)
windowsError: [Error 5] : 'd:\\CocosDevelop\\PopStar\\proj.androID\\assets\\stars\\.svn\\all-wcprops'
解决:将proj.androID\assets\和proj.androID\bin清空后重新编译
-----------------------------------------------------------------------警告-----------------------------------------------------
AndroID NDK: WARNING: APP_PLATFORM androID-19 is larger than androID:minSdkVersion 9 in ./AndroIDManifest.xml
解决办法:jni\Application.mk中添加 APP_PLATFORM := androID-9 总结

以上是内存溢出为你收集整理的Cocos2dx:cocos2d-x-3.2版本学习过程中所遇到的一些问题全部内容,希望文章能够帮你解决Cocos2dx:cocos2d-x-3.2版本学习过程中所遇到的一些问题所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/web/1082776.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-27
下一篇 2022-05-27

发表评论

登录后才能评论

评论列表(0条)

保存