android
iteye_15836
这个作者很懒,什么都没留下…
展开
-
New Android App Project: R cannot be resolved to a variable
新建的blank android application project 上来就报错:R cannot be resolved to a variable google了几乎所有方法,例如import, fixed Project properties等等,均无解。 最终,在stackoverflow上看到了问题的关键点,Build-Tools没装 启动 And...原创 2013-05-27 11:31:24 · 109 阅读 · 0 评论 -
The import org.cocos2dx.lib cannot be resolved
Step 1: In Eclipse, right-click on your project and select the last option "properties". Step 2: In Project Properties window, select "Java Build Path" in the left pane. Step 3: Under Java Build Path...原创 2013-05-27 14:31:05 · 110 阅读 · 0 评论 -
Cocos2dx setup Eclipse environment for Android
Notes for porting cocos2dx games from iOS to Android:- create-android-project.sh- eclipse > new project from existing code- add NDK_ROOT variable in eclipse (build_native.sh need to define NDK_RO...原创 2013-05-27 16:32:49 · 101 阅读 · 0 评论 -
GLES2.0 on Android emulator
cocos2d-x 的HelloCpp sample 一直在eclipse下跑不起来。 AVD中的GPU已经enabled了。 最终,发现要修改Cocos2dxActivity.java 文件(PATH: ../cocos2d-x/cocos2dx/platform/android/java/src/org/cocos2dx/lib)在init() 方法的 添加this....原创 2013-05-27 17:19:48 · 211 阅读 · 0 评论 -
Creating an iOS and Android Cocos2D-x 2.1.1 hybrid project
由于cocos2d-x 2.1.1版本的build规则与之前有较大差别,所以在iOS项目跟android项目代码整合方面花了一些时间。 特别声明:本文创建的是cocos2dx project,非特殊项目,例如Box2D project。如果你需要的是Box2D project,自行参考处理。 参考了以下文章http://gameit.ro/2012/01/creating-a...2013-05-28 20:48:39 · 103 阅读 · 0 评论 -
Cocos2dx android build shell file
./jni/Android.mk LOCAL_PATH := $(call my-dir)include $(CLEAR_VARS)LOCAL_MODULE := game_sharedLOCAL_MODULE_FILENAME := libgameLOCAL_SRC_FILES := hellocpp/main.cppdefine all-cp...原创 2013-06-05 20:23:44 · 84 阅读 · 0 评论 -
cocos2d-x获取设备信息
DeviceUtils.h //// DeviceUtils.h// gamemoom//// Created by Song on 14-8-20.////#ifndef __gamemoom__DeviceUtils__#define __gamemoom__DeviceUtils__#include <iostream&g...2014-08-20 15:09:49 · 1827 阅读 · 0 评论