AndEngineExamples 运行编译

 

1.AndEngine介绍(百度百科)

 

2.下载git工具

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

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

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

 

3.下载AndEngineExamples源码

有图有文字有真相 AdnEngine开发环境搭建

下面列出编译必须扩展,在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源码

有编译错误

 

解决错误:

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-源码下载操作

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值