Cocos2dxActivity cannot be resolved to a type
来源:互联网 发布:it男士双肩包推荐 知乎 编辑:程序博客网 时间:2024/04/29 05:44
问题描述:
build_native.sh运行成功后,将项目导入到eclipse中后会出现这个问题,提示找不到下列文件:
import org.cocos2dx.lib.Cocos2dxActivity;
解决方案:
1. 只需要将cocos2d-x引擎的根目录的cocos2dx/platform/android/java/src文件夹下文件夹全部复制到项目的src包下即可。
2. 也可以导入cocos2dx/platform/android/java这个工程生成一个jar文件添加到项目的libs文件夹下即可。
这两种方法都会在最终生成apk时将依赖复制到其中的。
0 0
- Cocos2dxActivity cannot be resolved to a type
- Cocos2dxActivity cannot be resolved to a type
- Cocos2dxActivity cannot be resolved to a type解决方案
- Cocos2dxActivity cannot be resolved to a type解决方案
- Cocos2dxActivity cannot be resolved to a type解决方案
- 安卓:Cocos2dxActivity cannot be resolved to a type
- Cocos2dxActivity cannot be resolved to a type解决方案
- 【cocos2d引擎学习】导入eclipse出现Cocos2dxActivity cannot be resolved to a type
- Cocos2dxActivity cannot be resolved to a type解决方案,Cocos2d-x 3.4
- cannot be resolved to a type解决方案
- httpservletrequest cannot be resolved to a type
- cannot be resolved to a type
- cannot be resolved to a type
- Intent cannot be resolved to a type
- SuppressLint cannot be resolved to a type
- “cannot be resolved to a type” error
- String cannot be resolved to a type
- * cannot be resolved to a type/variable
- c++ primer第五版(中文)习题答案 第十章第五节第一小节-5类迭代器
- 基于python的贪吃蛇
- Android--使用LayoutInflater加载布局文件的三种方法
- 遍历HashMap的最佳方法
- 关于表单提交Form的action url 的填写
- Cocos2dxActivity cannot be resolved to a type
- hdoj 2296 Ring 【AC自动机 + dp】
- 2015,我在苏州,很高兴遇见你——泛黄的季节
- 27.使用iterator标签时常见的错误
- 常量指针与指针常量的区别
- Ubuntu常用命令大全
- JAVA内存分区
- C# 正则表达式 只允许字母、中文
- (如何)从数组创建ArrayList