apk打包问题,好心人,都过来瞧瞧

我谢了一个游戏,在vs里面引用了extension和ui这两个类库,然后在apk打包时关于ui的都会报错,错误如下:
undefined reference to 'cocos2d::ui::Button::create(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&,

顶你啊,顶你啊,顶你啊,顶你啊,顶你啊,顶你啊,顶你啊,

再顶再顶再顶再顶再顶

:894: 自慰好玩吗= =。Mk文件 中导致了你Button的文件 了没

版本呢?

以下方法目前只在Cocos2d-x3.0release版测试过。v3.3已经不需要再配置Android.mk了。

1.在使用Button的文件添加头文件引用:

#include "ui/CocosGUI.h"
```

2.使用Button的地方添加命名空间:
ui::Button* btn;
```

3.Android.mk添加对Cocostudio模块的引入:
LOCAL_WHOLE_STATIC_LIBRARIES += cocostudio_static
$(call import-module,editor-support/cocostudio)
```

谢谢您!我想再问一下
jni/…/…/cocos2d/cocos/platform/android/jni/TouchesJni.cpp:79: error: relocation overflow in R_ARM_THM_CALL
这个溢出怎么回事啊,有人说
1.LOCAL_ARM_MODE := arm
2.换回rd9版本
我都试过了,再次谢谢

你列举的两步都不用做。

只需要去这个地址,下载3个新的静态库替换你原来的就行。

https://github.com/cocos2d/cocos2d-x-3rd-party-libs-bin/pull/71

您的方法我用了了,不过出现了其他的问题,最后我重新解压了引擎,然后就好了,不知道什么原因,哎

建议使用版本控制工具,就可以知道你动过什么东西。

还可以这样啊,恩恩,谢谢您啊,