Cocos Creator v1.7.0 内测版发布帖(11月17日更新 rc.2)

自动图集没有"去透明部分"的功能

请问 1.62 模拟器找不到 dll 的问题 不升级引擎 该怎么解决 :mask:

碰到同样1.7打包问题,1.7 + AS 3.0 + Gradle 3.0 + NDK10e, 目前只有选择default模板才能编译,运行时在安卓4.4.2闪退,
java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol “sigfillset” referenced by “libcocos2djs.so”…
at java.lang.Runtime.loadLibrary(Runtime.java:378)
at java.lang.System.loadLibrary(System.java:540)
at org.cocos2dx.lib.Cocos2dxActivity.onLoadNativeLibraries(Cocos2dxActivity.java:251)
at org.cocos2dx.lib.Cocos2dxActivity.onCreate(Cocos2dxActivity.java:279)
at org.cocos2dx.javascript.AppActivity.onCreate(AppActivity.java:41)
at android.app.Activity.performCreate(Activity.java:5318)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1088)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2332)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2420)
at android.app.ActivityThread.access$800(ActivityThread.java:164)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1341)
at android.os.Handler.dispatchMessage(Handler.java:110)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:5506)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:836)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:652)
at dalvik.system.NativeStart.main(Native Method)

在安卓7.0也闪退,错误不太一样:
[ERROR] (…/jswrapper/v8/Object.cpp, 447): Invoking function (0x7bf7cff1c0) failed!
E/jswrapper: ERROR: Uncaught TypeError: Cannot read property ‘startPhase’ of undefined, location: src/jsb_polyfill.js:0:0
STACK:
[0]callback@src/jsb_polyfill.js:24775

问题出在gradle版本上面,换成2.3(classpath ‘com.android.tools.build:gradle:2.3.0’)在安卓7.0下运行就正常了,不过4.4下面还是同样的问题。

你是不是定制了 engine ?
感觉你的 engine 的版本不对。

你解决了吗,我也是First type is not attr!
升级到1.7后,anysdk打包微信版本

碰到同样问题,Hello world项目 1.7 + AS 3.0 + Gradle 3.0 + NDK14b, 选default目标构建,运行在android 4.4.4上闪退,
01-02 14:48:14.866 16917-16917/org.cocos2d.helloworld W/dalvikvm: threadid=1: thread exiting with uncaught exception (group=0x41869e00)
01-02 14:48:14.876 16917-16917/org.cocos2d.helloworld E/AndroidRuntime: FATAL EXCEPTION: main
Process: org.cocos2d.helloworld, PID: 16917
java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol “sigfillset” referenced by "libcocos2djs.so

"…
at java.lang.Runtime.loadLibrary(Runtime.java:364)
at java.lang.System.loadLibrary(System.java:526)
at org.cocos2dx.lib.Cocos2dxActivity.onLoadNativeLibraries(Cocos2dxActivity.java:251)
at org.cocos2dx.lib.Cocos2dxActivity.onCreate(Cocos2dxActivity.java:279)
at org.cocos2dx.javascript.AppActivity.onCreate(AppActivity.java:40)
at android.app.Activity.performCreate(Activity.java:5266)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1091)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2189)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2279)
at android.app.ActivityThread.access$800(ActivityThread.java:142)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1213)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5241)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:818)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:634)
at dalvik.system.NativeStart.main(Native Method)

然后换成

(classpath 'com.android.tools.build:gradle:2.3.0')

没有出现了这个问题

1赞

怎么解决的?我也出了同样的问题

我从1.7.0直接升级到1.8.1,然后重新运行我的项目,在android机器上出现isTargetPaused为undefined?请问这是为什么?我重新换个一个构建路径,这个时候运行又没问题,只是在原来构建目录基础上重新构建运行就会出现这个错误

@dumganhar

旧项目要删掉重新构建才行。我会关闭这个帖子,防止一直被挖坟。有新的问题麻烦再开新帖反馈~