吐槽 3.0rc2

今天看到3.0rc2出来,赶紧升级吧。ios没有问题,但是android进行如果运行cocos run -p android可以运行,但是导入eclipse用工具打包,导出的apk不能进行安装。我的天呢。
cocos deploy -p android

running: ‘/Bing/Android/sdk/android-sdk-macosx/platform-tools/adb uninstall com.bing.memoryking’

Failure
running: ‘/Bing/Android/sdk/android-sdk-macosx/platform-tools/adb install “/Bing/CodePark/Work/iMemory/MemoryKing/bin/debug/android/MemoryKing-debug-unaligned.apk”’

3510 KB/s (3025019 bytes in 0.841s)
pkg: /data/local/tmp/MemoryKing-debug-unaligned.apk
Success

楼主是指用eclipse打包出来的apk用adb install无法安装?

是的。诟病很久le

我的没有,就是出现了以下问题,问题如下:

The Selected NDK toolchain version was 4.8 !
running: ‘D:\eclipse\ndk\ndk-build -C D:\androidgame\mytest\Test123\proj.android
-j2 NDK_MODULE_PATH=D:\androidgame\mytest\Test123\proj.android…/cocos2d;D:\an
droidgame\mytest\Test123\proj.android…/cocos2d/cocos;D:\androidgame\mytest\Tes
t123\proj.android…/cocos2d/external NDK_DEBUG=1’

Android NDK: WARNING:D:\androidgame\mytest\Test123\proj.android…/cocos2d/cocos
/2d/Android.mk:cocos2dx_static: LOCAL_LDLIBS is always ignored for static librar
ies
Android NDK: WARNING:D:\androidgame\mytest\Test123\proj.android…/cocos2d/cocos
/2d/platform/android/Android.mk:cocos2dxandroid_static: LOCAL_LDLIBS is always i
gnored for static libraries
make.exe: Entering directory `D:/androidgame/mytest/Test123/proj.android’

In file included from D:\androidgame\mytest\Test123\proj.android…/cocos2d/coco
s/2d/…/base/CCGeometry.h:32:0,
from D:\androidgame\mytest\Test123\proj.android…/cocos2d/coco
s/2d/ccTypes.h:32,
from D:\androidgame\mytest\Test123\proj.android…/cocos2d/coco
s/2d/platform/CCGLViewProtocol.h:29,
from D:\androidgame\mytest\Test123\proj.android…/cocos2d/coco
s/2d/platform/CCGLViewProtocol.cpp:26:
D:\androidgame\mytest\Test123\proj.android…/cocos2d/cocos/2d/platform/CCGLView
Protocol.cpp: In member function ‘virtual void cocos2d::GLViewProtocol::handleTo
uchesMove(int, intptr_t*, float*, float*)’:
D:\androidgame\mytest\Test123\proj.android…/cocos2d/cocos/2d/…/base/CCPlatfor
mMacros.h:219:67: warning: format ‘%ld’ expects argument of type ‘long int’, but
argument 2 has type ‘intptr_t {aka int}’ -Wformat=]
#define CCLOG(format, …) cocos2d::log(format, ##VA_ARGS)
^
D:\androidgame\mytest\Test123\proj.android…/cocos2d/cocos/2d/platform/CCGLView
Protocol.cpp:317:13: note: in expansion of macro ‘CCLOG’
CCLOG(“Moving touches with id: %ld error”, id);
^

用命令行先编译下 cocos compile -p android
再用eclipse 就可以了 或设置eclipse用ntk编译