cocos3.12预编译android报错RuntimeJsImpl.cpp
从coco官网下载了cocos2d-x-3.12.zip,在gen-libs生成prebuilt时,mac ,ios 平台都正常,android报错:
jni/../../Classes/ide-support/RuntimeJsImpl:cpp:2222:52 error
解决办法:
https://github.com/cocos2d/cocos2d-x/blob/cocos2d-x-3.12/tools/simulator/frameworks/runtime-src/Classes/ide-support/RuntimeJsImpl.cpp#L222
这里改掉,用 JS::PersistentRootedScript * 替换 JSScript *