编译成功,运行失败,提示如下:

2018-11-15 19:09:56.343 2820-2852/net.jd85.test D/cocos2d-x debug info: cocos2d: fullPathForFilename: No file found at script/jsb_prepare.js. Possible missing file.

 

原来不能把gradle插件升到最新,把项目内的proj.android文件里的降级到3.1.0就可以了。

 

dependencies {
classpath 'com.android.tools.build:gradle:3.1.0'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}

cocos官方解答:
https://forum.cocos.com/t/win10-cocos2d-x-3-17-jsb-android/69254

相关文章:

  • 2021-04-30
  • 2022-12-23
  • 2022-03-03
  • 2022-12-23
  • 2021-09-05
  • 2022-02-26
  • 2022-12-23
  • 2021-08-13
猜你喜欢
  • 2021-07-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-21
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案