creator 版本 1.9.2
與android studio應用並打包.apk檔案 在夜神模擬器(6.3.0.6) 安裝好開啟後
報錯如下:
08-28 17:33:43.246 4193-4210/? D/CCFileUtils-android.cpp: asset is nullptr
08-28 17:33:43.246 4193-4210/? E/jswrapper: ScriptEngine::runScript script buffer, buffer is empty!
08-28 17:33:43.246 4193-4210/? E/jswrapper: [ERROR] Failed to invoke require, location: D:/SH4_test/client/build/jsb-default/frameworks/cocos2d-x/cocos/scripting/js-bindings/proj.android/…/manual/jsb_global.cpp:211
08-28 17:33:43.247 4193-4210/? D/CCFileUtils-android.cpp: asset is nullptr
08-28 17:33:43.247 4193-4210/? E/jswrapper: ScriptEngine::runScript script long, buffer is empty!
08-28 17:33:43.247 4193-4210/? E/jswrapper: [ERROR] Failed to invoke require, location: D:/SH4_test/client/build/jsb-default/frameworks/cocos2d-x/cocos/scripting/js-bindings/proj.android/…/manual/jsb_global.cpp:211
08-28 17:33:43.332 4193-4210/? D/jswrapper: JS: Create unpacker 094273cb6 for 4aNSW7HxlANp1MsVE6x94Z
08-28 17:33:43.431 4193-4210/? D/jswrapper: JS: LoadScene 4aNSW7HxlANp1MsVE6x94Z: 99.31300000000005ms
08-28 17:33:43.431 4193-4210/? D/jswrapper: JS: [ERROR]: Failed to load scene: Error: [AssetLibrary] loading JSON or dependencies failed: Uuid Loader: Deserialize asset [res/import/4a/4a3525bb-1f19-4036-9d4c-b1513ac7de19.json] failed : TypeError: Cannot read property ‘href’ of undefined
TypeError: Cannot read property ‘href’ of undefined
------------------------------------------------------------------------------------------分隔線---------------------------------------------------------------
global.cpp:211 內容如下:
static bool require(se::State& s)
{
const auto& args = s.args();
int argc = (int)args.size();
assert(argc >= 1);
assert(args[0].isString());
return jsb_run_script(args[0].toString());
}
SE_BIND_FUNC(require) <--- 此為211行
想請問有大神知道如何解決嗎?
