【私货分享】改造 Creator 预览网页,显示实时场景树、节点信息 20190201更新

原理

Creator 预览项目前会将一个preview-templates目录拷贝到服务器目录下,所以所有在该目录下的资源都可以在预览时访问,基于此可以让预览游戏界面变成任何你想要的样子。

效果如下:

  • 20181228更新v1.1.0:增加开关,节点支持拖拽更改层级

  • 20181228更新v1.2.0: 控制台输出节点信息

  • 20190107更新v2.0.0:修复动态加载的节点在节点树中不及时更新问题。增加组件信息显示。增加内存、FPS、渲染时间显示。更新提醒。

  • 20190201更新v2.1.0: 区分手动刷新和自动刷新两种模式,手动刷新时支持搜索和拖拽节点;添加圈出节点位置功能;添加控制台节点树,cc.tree();

使用方式

1.点击 Creator 右上角进入编辑器 resources 目录,再依次进入static/preview-templates目录

2.将本项目clone到上面的目录下

3.打开index.jade,找到body里最后一个div,在下面添加include ./ccc-devtools/index.html,注意用tab键与上面的div对齐

下载

https://github.com/potato47/ccc-devtools

已知问题

  • 当升级 Cococs Creator 时会清空resources目录,需要重新下载配置,如自定义了一些配置,请做好备份。
  • 开启节点树会增加渲染消耗,非调试阶段请关闭。

经历了控制台版、插件版、弹窗版、iframe版,最终做到了这一版,得益于vue的双向绑定终于实现了实时刷新节点信息而不用手动刷新。

49赞

看着不错,很棒的功能。

components ,comming soon很期待

已star

试了一下,可以用,官方考虑集成一下? @jare

赞一个!

点赞。。。

不知道出了什么问题,有这个错

jade格式问题,要用tab键并且与上面同层级的div对齐

mark

刚才那个修改好了,但是运行出来什么东西都没有

你用的哪个版本Creator

1.8.2

我用的2.1,有可能是和之前的版本页面结构不同,你把preview-templates文件夹打包发上来我看看

preview-templates.rar (2.2 MB)
已上传

mark

star

stared

我这边试了没问题。。。不知道你那边什么情况


你用我这个替换一下试试吧
preview-templates.zip (2.3 MB)

本来应该官方做的。unity这些都有,大家都纠结的问题,为啥官方还不做呢

大神帮我看下, 编译问题,很着急,谢谢

x86] StaticLibrary : libcocos2d.a
[x86] StaticLibrary : libaudioengine.a
[x86] StaticLibrary : libnetwork.a
[x86] StaticLibrary : libextension.a
[x86] StaticLibrary : libvorbisidec.a
[x86] StaticLibrary : libpvmp3dec.a
[x86] StaticLibrary : libcpufeatures.a
/Applications/CocosCreator.app/Contents/Resources/cocos2d-x/cocos/platform/android/jni/JniImp.cpp:293:5: warning: control reaches end of non-void function [-Wreturn-type]
}
^
1 warning generated.
[x86] StaticLibrary : libcocos2dandroid.a
[x86] SharedLibrary : libcocos2djs.so
externalNativeBuildRelease: check expected build outputs
externalNativeBuildRelease: build complete
:yinjike01:externalNativeBuildRelease (Thread[Daemon worker,5,main]) completed. Took 5 mins 2.83 secs.
:yinjike01:compileReleaseSources (Thread[Daemon worker,5,main]) started.
:yinjike01:compileReleaseSources
Skipping task ‘:yinjike01:compileReleaseSources’ as it has no actions.
:yinjike01:compileReleaseSources (Thread[Daemon worker,5,main]) completed. Took 0.001 secs.
:yinjike01:lintVitalRelease (Thread[Daemon worker,5,main]) started.
:yinjike01:lintVitalRelease
Putting task artifact state for task ‘:yinjike01:lintVitalRelease’ into context took 0.0 secs.
Up-to-date check for task ‘:yinjike01:lintVitalRelease’ took 0.0 secs. It is not up-to-date because:
Task has not declared any outputs.
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
:yinjike01:lintVitalRelease (Thread[Daemon worker,5,main]) completed. Took 4.847 secs.
:yinjike01:mergeReleaseAssets (Thread[Daemon worker,5,main]) started.
:yinjike01:mergeReleaseAssets
Putting task artifact state for task ‘:yinjike01:mergeReleaseAssets’ into context took 0.0 secs.
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
Up-to-date check for task ‘:yinjike01:mergeReleaseAssets’ took 0.006 secs. It is not up-to-date because:
No history is available.
All input files are considered out-of-date for incremental task ‘:yinjike01:mergeReleaseAssets’.
Unable do incremental execution: full task run
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
:yinjike01:mergeReleaseAssets (Thread[Daemon worker,5,main]) completed. Took 23.864 secs.
:yinjike01:processReleaseJavaRes (Thread[Daemon worker,5,main]) started.
:yinjike01:processReleaseJavaRes
Putting task artifact state for task ‘:yinjike01:processReleaseJavaRes’ into context took 0.0 secs.
Skipping task ‘:yinjike01:processReleaseJavaRes’ as it has no source files and no previous output files.
:yinjike01:processReleaseJavaRes NO-SOURCE
:yinjike01:processReleaseJavaRes (Thread[Daemon worker,5,main]) completed. Took 0.002 secs.
:yinjike01:transformResourcesWithMergeJavaResForRelease (Thread[Daemon worker,5,main]) started.
:yinjike01:transformResourcesWithMergeJavaResForRelease
Putting task artifact state for task ‘:yinjike01:transformResourcesWithMergeJavaResForRelease’ into context took 0.0 secs.
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
Up-to-date check for task ‘:yinjike01:transformResourcesWithMergeJavaResForRelease’ took 0.007 secs. It is not up-to-date because:
No history is available.
All input files are considered out-of-date for incremental task ‘:yinjike01:transformResourcesWithMergeJavaResForRelease’.
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
:yinjike01:transformResourcesWithMergeJavaResForRelease (Thread[Daemon worker,5,main]) completed. Took 0.188 secs.
:yinjike01:transformClassesAndResourcesWithProguardForRelease (Thread[Daemon worker,5,main]) started.
:yinjike01:transformClassesAndResourcesWithProguardForRelease
Putting task artifact state for task ‘:yinjike01:transformClassesAndResourcesWithProguardForRelease’ into context took 0.0 secs.
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
Up-to-date check for task ‘:yinjike01:transformClassesAndResourcesWithProguardForRelease’ took 0.019 secs. It is not up-to-date because:
No history is available.
All input files are considered out-of-date for incremental task ‘:yinjike01:transformClassesAndResourcesWithProguardForRelease’.
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
Request to incrementing alive workforce from 0. Current workforce (dead or alive) 0
thread-pool size=4
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
Applying ProGuard configuration file /Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/proguard-rules.pro
Applying ProGuard configuration file /Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/build/intermediates/proguard-files/proguard-android.txt-3.1.4
Applying ProGuard configuration file /Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/proguard-rules/release/aapt_rules.txt
Applying ProGuard configuration file /Applications/CocosCreator.app/Contents/Resources/cocos2d-x/cocos/platform/android/libcocos2dx/build/intermediates/publish-proguard/release/proguard.txt
ProGuard, version 5.3.3
Reading input…
Reading program jar [/Applications/CocosCreator.app/Contents/Resources/cocos2d-x/cocos/platform/android/java/libs/android-async-http-1.4.9.jar] (filtered)
Reading program jar [/Applications/CocosCreator.app/Contents/Resources/cocos2d-x/cocos/platform/android/java/libs/libcocosanalytics.jar] (filtered)
Reading program jar [/Applications/CocosCreator.app/Contents/Resources/cocos2d-x/cocos/platform/android/java/libs/com.android.vending.expansion.zipfile.jar] (filtered)
Reading program jar [/Applications/CocosCreator.app/Contents/Resources/cocos2d-x/cocos/platform/android/java/libs/httpclient-4.4.1.1.jar] (filtered)
Reading program jar [/Applications/CocosCreator.app/Contents/Resources/cocos2d-x/cocos/platform/android/libcocos2dx/build/intermediates/intermediate-jars/release/classes.jar] (filtered)
Reading program directory [/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/classes/release] (filtered)
Reading program jar [/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/mergeJavaRes/release/0.jar] (filtered)
Reading library jar [/Users/zhangdong/Library/Android/sdk/platforms/android-28/android.jar]
Reading library jar [/Users/zhangdong/Library/Android/sdk/platforms/android-28/optional/org.apache.http.legacy.jar]
Note: duplicate definition of library class [android.net.http.HttpResponseCache]
Note: duplicate definition of library class [android.net.http.SslCertificate$DName]
Note: duplicate definition of library class [android.net.http.SslCertificate]
Note: duplicate definition of library class [android.net.http.SslError]
Note: duplicate definition of library class [org.apache.http.conn.ConnectTimeoutException]
Note: duplicate definition of library class [org.apache.http.conn.scheme.HostNameResolver]
Note: duplicate definition of library class [org.apache.http.conn.scheme.LayeredSocketFactory]
Note: duplicate definition of library class [org.apache.http.conn.scheme.SocketFactory]
Note: duplicate definition of library class [org.apache.http.params.CoreConnectionPNames]
Note: duplicate definition of library class [org.apache.http.params.HttpConnectionParams]
Note: duplicate definition of library class [org.apache.http.params.HttpParams]
Reading library jar [/Users/zhangdong/Library/Android/sdk/platforms/android-28/optional/android.test.mock.jar]
Reading library jar [/Users/zhangdong/Library/Android/sdk/platforms/android-28/optional/android.test.base.jar]
Reading library jar [/Users/zhangdong/Library/Android/sdk/platforms/android-28/optional/android.test.runner.jar]
Note: there were 11 duplicate class definitions.
(http://proguard.sourceforge.net/manual/troubleshooting.html#duplicateclass)
Initializing…
Note: cz.msebera.android.httpclient.extras.PRNGFixes: can’t find dynamically referenced class org.apache.harmony.xnet.provider.jsse.NativeCrypto
Note: cz.msebera.android.httpclient.extras.PRNGFixes: can’t find dynamically referenced class org.apache.harmony.xnet.provider.jsse.NativeCrypto
Note: org.cocos2dx.javascript.SDKWrapper: can’t find dynamically referenced class com.anysdk.framework.PluginWrapper
Note: the configuration keeps the entry point ‘org.cocos2dx.lib.CanvasRenderingContext2DImpl { org.cocos2dx.lib.CanvasRenderingContext2DImpl$Point convertDrawPoint(org.cocos2dx.lib.CanvasRenderingContext2DImpl$Point,java.lang.String); }’, but not the descriptor class ‘org.cocos2dx.lib.CanvasRenderingContext2DImpl$Point’
Note: the configuration explicitly specifies ‘android.net.http.SslError’ to keep library class ‘android.net.http.SslError’
Note: the configuration explicitly specifies ‘android.webkit.WebViewClient’ to keep library class ‘android.webkit.WebViewClient’
Note: there were 1 unkept descriptor classes in kept class members.
You should consider explicitly keeping the mentioned classes
(using ‘-keep’).
(http://proguard.sourceforge.net/manual/troubleshooting.html#descriptorclass)
Note: there were 2 library classes explicitly being kept.
You don’t need to keep library classes; they are already left unchanged.
(http://proguard.sourceforge.net/manual/troubleshooting.html#libraryclass)
Note: there were 3 unresolved dynamic references to classes or interfaces.
You should check if you need to specify additional program jars.
(http://proguard.sourceforge.net/manual/troubleshooting.html#dynamicalclass)
Ignoring unused library classes…
Original number of library classes: 4801
Final number of library classes: 973
Printing kept classes, fields, and methods…
Shrinking…
Printing usage to [/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/outputs/mapping/release/usage.txt]…
Removing unused program classes and class elements…
Original number of program classes: 1021
Final number of program classes: 568
Inlining subroutines…
Obfuscating…
Printing mapping to [/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/outputs/mapping/release/mapping.txt]…
Preverifying…
Writing output…
Preparing output jar [/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/proguard/release/0.jar]
Copying resources from program jar [/Applications/CocosCreator.app/Contents/Resources/cocos2d-x/cocos/platform/android/java/libs/android-async-http-1.4.9.jar] (filtered)
Copying resources from program jar [/Applications/CocosCreator.app/Contents/Resources/cocos2d-x/cocos/platform/android/java/libs/libcocosanalytics.jar] (filtered)
Copying resources from program jar [/Applications/CocosCreator.app/Contents/Resources/cocos2d-x/cocos/platform/android/java/libs/com.android.vending.expansion.zipfile.jar] (filtered)
Copying resources from program jar [/Applications/CocosCreator.app/Contents/Resources/cocos2d-x/cocos/platform/android/java/libs/httpclient-4.4.1.1.jar] (filtered)
Copying resources from program jar [/Applications/CocosCreator.app/Contents/Resources/cocos2d-x/cocos/platform/android/libcocos2dx/build/intermediates/intermediate-jars/release/classes.jar] (filtered)
Copying resources from program directory [/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/classes/release] (filtered)
Copying resources from program jar [/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/mergeJavaRes/release/0.jar] (filtered)
Printing classes to [/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/outputs/mapping/release/dump.txt]…
:yinjike01:transformClassesAndResourcesWithProguardForRelease (Thread[Daemon worker,5,main]) completed. Took 4.133 secs.
:yinjike01:transformClassesWithShrinkResForRelease (Thread[Daemon worker,5,main]) started.
:yinjike01:transformClassesWithShrinkResForRelease
Putting task artifact state for task ‘:yinjike01:transformClassesWithShrinkResForRelease’ into context took 0.0 secs.
Up-to-date check for task ‘:yinjike01:transformClassesWithShrinkResForRelease’ took 0.003 secs. It is not up-to-date because:
No history is available.
All input files are considered out-of-date for incremental task ‘:yinjike01:transformClassesWithShrinkResForRelease’.
Resource shrinking did not work (grew from 53802 to 53811); using original instead
:yinjike01:transformClassesWithShrinkResForRelease (Thread[Daemon worker,5,main]) completed. Took 0.102 secs.
:yinjike01:transformClassesWithDexBuilderForRelease (Thread[Daemon worker,5,main]) started.
:yinjike01:transformClassesWithDexBuilderForRelease
Putting task artifact state for task ‘:yinjike01:transformClassesWithDexBuilderForRelease’ into context took 0.0 secs.
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
Up-to-date check for task ‘:yinjike01:transformClassesWithDexBuilderForRelease’ took 0.003 secs. It is not up-to-date because:
No history is available.
All input files are considered out-of-date for incremental task ‘:yinjike01:transformClassesWithDexBuilderForRelease’.
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
Task is incremental : false
Jar input /Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/proguard/release/0.jar
Dexing /Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/proguard/release/0.jar
Dexing ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/proguard/release/0.jar’ to ‘file:/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/release/1.jar’
Dexing ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/proguard/release/0.jar’ to ‘file:/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/release/0.jar’
Dexing ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/proguard/release/0.jar’ to ‘file:/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/release/2.jar’
Done with all dex archive conversions
:yinjike01:transformClassesWithDexBuilderForRelease (Thread[Daemon worker,5,main]) completed. Took 3.9 secs.
:yinjike01:transformDexArchiveWithDexMergerForRelease (Thread[Daemon worker,5,main]) started.
:yinjike01:transformDexArchiveWithDexMergerForRelease
Putting task artifact state for task ‘:yinjike01:transformDexArchiveWithDexMergerForRelease’ into context took 0.0 secs.
Up-to-date check for task ‘:yinjike01:transformDexArchiveWithDexMergerForRelease’ took 0.0 secs. It is not up-to-date because:
No history is available.
All input files are considered out-of-date for incremental task ‘:yinjike01:transformDexArchiveWithDexMergerForRelease’.
Merging to ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexMerger/release/0’ with D8 from /Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/release/0.jar, /Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/release/1.jar, /Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/release/2.jar
:yinjike01:transformDexArchiveWithDexMergerForRelease (Thread[Daemon worker,5,main]) completed. Took 0.289 secs.
:yinjike01:transformNativeLibsWithMergeJniLibsForRelease (Thread[Daemon worker,5,main]) started.
:yinjike01:transformNativeLibsWithMergeJniLibsForRelease
Putting task artifact state for task ‘:yinjike01:transformNativeLibsWithMergeJniLibsForRelease’ into context took 0.0 secs.
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
Up-to-date check for task ‘:yinjike01:transformNativeLibsWithMergeJniLibsForRelease’ took 0.54 secs. It is not up-to-date because:
No history is available.
All input files are considered out-of-date for incremental task ‘:yinjike01:transformNativeLibsWithMergeJniLibsForRelease’.
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
file or directory ‘/Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/libs’, not found
:yinjike01:transformNativeLibsWithMergeJniLibsForRelease (Thread[Daemon worker,5,main]) completed. Took 2.066 secs.
:yinjike01:transformNativeLibsWithStripDebugSymbolForRelease (Thread[Daemon worker,5,main]) started.
:yinjike01:transformNativeLibsWithStripDebugSymbolForRelease
Putting task artifact state for task ‘:yinjike01:transformNativeLibsWithStripDebugSymbolForRelease’ into context took 0.0 secs.
Up-to-date check for task ‘:yinjike01:transformNativeLibsWithStripDebugSymbolForRelease’ took 0.001 secs. It is not up-to-date because:
No history is available.
All input files are considered out-of-date for incremental task ‘:yinjike01:transformNativeLibsWithStripDebugSymbolForRelease’.
Starting process ‘command ‘/Users/zhangdong/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-strip’’. Working directory: /Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app Command: /Users/zhangdong/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-strip --strip-unneeded -o /Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/stripDebugSymbol/release/0/lib/armeabi-v7a/libcocos2djs.so /Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/mergeJniLibs/release/0/lib/armeabi-v7a/libcocos2djs.so
Successfully started process ‘command ‘/Users/zhangdong/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-strip’’
Starting process ‘command ‘/Users/zhangdong/Library/Android/sdk/ndk-bundle/toolchains/x86-4.9/prebuilt/darwin-x86_64/bin/i686-linux-android-strip’’. Working directory: /Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app Command: /Users/zhangdong/Library/Android/sdk/ndk-bundle/toolchains/x86-4.9/prebuilt/darwin-x86_64/bin/i686-linux-android-strip --strip-unneeded -o /Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/stripDebugSymbol/release/0/lib/x86/libcocos2djs.so /Users/zhangdong/Desktop/android_shiyan/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/mergeJniLibs/release/0/lib/x86/libcocos2djs.so
Successfully started process ‘command ‘/Users/zhangdong/Library/Android/sdk/ndk-bundle/toolchains/x86-4.9/prebuilt/darwin-x86_64/bin/i686-linux-android-strip’’
:yinjike01:transformNativeLibsWithStripDebugSymbolForRelease (Thread[Daemon worker,5,main]) completed. Took 0.479 secs.
:yinjike01:packageRelease (Thread[Daemon worker,5,main]) started.
:yinjike01:packageRelease
Putting task artifact state for task ‘:yinjike01:packageRelease’ into context took 0.0 secs.
Up-to-date check for task ‘:yinjike01:packageRelease’ took 0.046 secs. It is not up-to-date because:
No history is available.
All input files are considered out-of-date for incremental task ‘:yinjike01:packageRelease’.
Unable do incremental execution: full task run
:yinjike01:packageRelease FAILED
:yinjike01:packageRelease (Thread[Daemon worker,5,main]) completed. Took 8.974 secs.

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:yinjike01:packageRelease’.

org.gradle.tooling.BuildException (no error message)

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 6m 39s
60 actionable tasks: 60 executed
Error running command, return code: 1.

mark

20181228更新v1.1.0:增加开关,节点支持拖拽更改层级

3赞