Quantcast
Channel: Cocos中文社区 - 最新主题
Viewing all articles
Browse latest Browse all 88737

Cocos Creator v1.3.0-beta2 Bug

$
0
0

@wfhtqp 写道:

osx 10.12

BUG 1

cc.audioEngine.playMusic is not a function

BUG 2

克隆cocos2d-x-litedevelop分支源码,根据文档编译。可以运行,但依然存在BUG 1,而且无法构建Android

binary 错误

Building mode: release
Using Eclipse project : /Users/qipeng/mac/workspace/cocos2dx/tutorial-dark-slash/build/jsb-binary/frameworks/runtime-src/proj.android
running: '/Users/qipeng/program/Android/sdk/tools/android update project -t android-10 -p /Users/qipeng/mac/workspace/cocos2dx/tutorial-dark-slash/build/jsb-binary/frameworks/runtime-src/proj.android'

Updated project.properties
Updated local.properties
Updated file /Users/qipeng/mac/workspace/cocos2dx/tutorial-dark-slash/build/jsb-binary/frameworks/runtime-src/proj.android/proguard-project.txt
Building native...
NDK build mode: release
running: '/Users/qipeng/program/Android/ndk/ndk-build -C /Users/qipeng/mac/workspace/cocos2dx/tutorial-dark-slash/build/jsb-binary/frameworks/runtime-src/proj.android -j8 NDK_MODULE_PATH=/Users/qipeng/Documents/Lib/cocos2dx/cocos2d-x-lite:/Users/qipeng/Documents/Lib/cocos2dx/cocos2d-x-lite/cocos:/Users/qipeng/Documents/Lib/cocos2dx/cocos2d-x-lite/external:/Users/qipeng/Documents/Lib/cocos2dx/cocos2d-x-lite/external/android/include:/Users/qipeng/Documents/Lib/cocos2dx/cocos2d-x-lite/external/android/spidermonkey NDK_TOOLCHAIN_VERSION=4.9'

Android NDK: WARNING: Ignoring unknown import directory: /Users/qipeng/Documents/Lib/cocos2dx/cocos2d-x-lite/external/android/include    
Android NDK: WARNING: Ignoring unknown import directory: /Users/qipeng/Documents/Lib/cocos2dx/cocos2d-x-lite/external/android/spidermonkey    
Android NDK: ERROR:/Users/qipeng/Documents/Lib/cocos2dx/cocos2d-x-lite/cocos/scripting/js-bindings/proj.android/prebuilt-mk/Android.mk:cocos2d_js_static: LOCAL_SRC_FILES points to a missing file    
Android NDK: Check that /Users/qipeng/Documents/Lib/cocos2dx/cocos2d-x-lite/cocos/scripting/js-bindings/proj.android/prebuilt-mk/../../../../../prebuilt/android/arm64-v8a/libjscocos2d.a exists  or that its path is correct   
/Users/qipeng/program/Android/ndk/build/core/prebuilt-library.mk:45: *** Android NDK: Aborting    .  Stop.
Error running command, return code: 2.

link default 错误

All input files are considered out-of-date for incremental task ':darkslash:compileReleaseJavaWithJavac'.
Compiling with JDK Java compiler API.
/Users/qipeng/mac/workspace/cocos2dx/tutorial-dark-slash/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/src/org/cocos2dx/javascript/AppActivity.java:124: 错误: 找不到符号
    public void onConfigurationChanged(Configuration newConfig) {
                                       ^
  符号:   类 Configuration
  位置: 类 AppActivity
/Users/qipeng/mac/workspace/cocos2dx/tutorial-dark-slash/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/src/org/cocos2dx/javascript/SDKWrapper.java:127: 错误: 找不到符号
	public void onConfigurationChanged(Configuration newConfig) {
	                                   ^
  符号:   类 Configuration
  位置: 类 SDKWrapper
/Users/qipeng/mac/workspace/cocos2dx/tutorial-dark-slash/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/src/org/cocos2dx/javascript/SDKWrapper.java:137: 错误: 找不到符号
	public void onRestoreInstanceState(Bundle savedInstanceState) {
	                                   ^
  符号:   类 Bundle
  位置: 类 SDKWrapper
/Users/qipeng/mac/workspace/cocos2dx/tutorial-dark-slash/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/src/org/cocos2dx/javascript/SDKWrapper.java:147: 错误: 找不到符号
	public void onSaveInstanceState(Bundle outState) {
	                                ^
  符号:   类 Bundle
  位置: 类 SDKWrapper
/Users/qipeng/mac/workspace/cocos2dx/tutorial-dark-slash/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/src/org/cocos2dx/javascript/SDKWrapper.java:130: 错误: 找不到符号
				mClass.getMethod("onConfigurationChanged", Configuration.class).invoke(mClass, newConfig);
				                                           ^
  符号:   类 Configuration
  位置: 类 SDKWrapper
/Users/qipeng/mac/workspace/cocos2dx/tutorial-dark-slash/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/src/org/cocos2dx/javascript/SDKWrapper.java:140: 错误: 找不到符号
				mClass.getMethod("onRestoreInstanceState", Bundle.class).invoke(mClass, savedInstanceState);
				                                           ^
  符号:   类 Bundle
  位置: 类 SDKWrapper
/Users/qipeng/mac/workspace/cocos2dx/tutorial-dark-slash/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/src/org/cocos2dx/javascript/SDKWrapper.java:150: 错误: 找不到符号
				mClass.getMethod("onSaveInstanceState", Bundle.class).invoke(mClass, outState);
				                                        ^
  符号:   类 Bundle
  位置: 类 SDKWrapper
7 个错误
:darkslash:compileReleaseJavaWithJavac FAILED
:darkslash:compileReleaseJavaWithJavac (Thread[Task worker Thread 6,5,main]) completed. Took 0.084 secs.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':darkslash:compileReleaseJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.

BUILD FAILED

Total time: 9.343 secs
Stopped 0 compiler daemon(s).
Error running command, return code: 1.

BUG 3

构建后的Android安装显示名称为'libcocos2dx',启动器显示正常,但设置内的应用列表里为libcocos2dx
修改cocos/platform/android/libcocos2dx/AndroidManifest.xml内容:

-    <application android:allowBackup="true" android:label="libcocos2dx">
+    <application android:allowBackup="true">

正常。但是系统应用列表内显示包名而不是程序名称,例如:org.cocos2d.darkslash应该为drakslash
应该是Creator创建构建环境时没有替换libcocos2dx为程序名称的问题。

帖子: 2

参与者: 1

阅读整个主题


Viewing all articles
Browse latest Browse all 88737

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>