首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > 移动开发 >

AndEngineExamples 运作编译

2013-07-01 
AndEngineExamples 运行编译1.AndEngine介绍(百度百科)?2.下载git工具?a.下载git for windows版(这个客户

AndEngineExamples 运行编译

1.AndEngine介绍(百度百科)

?

2.下载git工具

?a.下载git for windows版(这个客户端)

b.下载windows install安装服务包(),在博客附件中(xp版的,其他版本可找TortoiseGit for windows 安装提示),提供,也可以去微软下载

c.下载客户端操作工具TortoiseGit for windows

?

3.下载AndEngineExamples源码

下面列出编译必须扩展,在AndEngineExamples工程

/AndEngineExamples/project.properties

target=android-17
split.density=false
android.library.reference.3=../AndEngineMODPlayerExtension
android.library.reference.4=../AndEngineSVGTextureRegionExtension
android.library.reference.1=../AndEngine
android.library.reference.2=../AndEngineAugmentedRealityExtension
android.library.reference.6=../AndEngineTexturePackerExtension
android.library.reference.5=../AndEnginePhysicsBox2DExtension
android.library.reference.7=../AndEngineMultiplayerExtension
android.library.reference.8=../AndEngineLiveWallpaperExtension
android.library.reference.9=../AndEngineTMXTiledMapExtension
android.library.reference.10=../AndEngineScriptingExtension

? 下载引用源码

去代码库

?

4.编译AndEngineExamples源码

AndEngineExamples 运作编译

有编译错误

AndEngineExamples 运作编译

?

解决错误:

Description?Resource?Path?Location?Type
DrawMode cannot be resolved to a variable?HullAlgorithmExample.java?/AndEngineExamples/src/org/andengine/examples?line 168?Java Problem
引入 这个import org.andengine.entity.primitive.DrawMode;

?

Description?Resource?Path?Location?Type
The constructor TextOptions(AutoWrap, float, float, HorizontalAlign) is undefined?TextBreakExample.java?/AndEngineExamples/src/org/andengine/examples?line 106?Java Problem
注释的为报错的

//this.mText = new Text(50, 40, this.mFont, "", 1000, new TextOptions(AutoWrap.LETTERS, AUTOWRAP_WIDTH, Text.LEADING_DEFAULT, HorizontalAlign.CENTER), vertexBufferObjectManager);
??this.mText = new Text(50, 40, this.mFont, "", 1000, new TextOptions(AutoWrap.LETTERS, AUTOWRAP_WIDTH,? HorizontalAlign.CENTER, Text.LEADING_DEFAULT), vertexBufferObjectManager);??
?

?

Description?Resource?Path?Location?Type
Type mismatch: cannot convert from void to AnimatedSprite?BoundCameraExample.java?/AndEngineExamples/src/org/andengine/examples?line 220?Java Problem

注释的为报错的
//final AnimatedSprite face = new AnimatedSprite(pX, pY, this.mBoxFaceTextureRegion, this.getVertexBufferObjectManager()).animate(100);
??final AnimatedSprite face = new AnimatedSprite(pX, pY, this.mBoxFaceTextureRegion, this.getVertexBufferObjectManager());?
??face.animate(100);

?

Description?Resource?Path?Location?Type
Type mismatch: cannot convert from void to AnimatedSprite?SplitScreenExample.java?/AndEngineExamples/src/org/andengine/examples?line 179?Java Problem

注释的为报错的
//final AnimatedSprite face = new AnimatedSprite(pX, pY, this.mBoxFaceTextureRegion, this.getVertexBufferObjectManager()).animate(100);
??final AnimatedSprite face = new AnimatedSprite(pX, pY, this.mBoxFaceTextureRegion, this.getVertexBufferObjectManager());?
??face.animate(100);

?

编译通过啦

?

参考文档:

http://blog.csdn.net/lc204/article/details/8071876?-编译报错问题

http://blog.csdn.net/onerain88/article/details/7257659-源码下载操作

热点排行