场景
某天早上打开电脑,开始工作时,Android 项目编译报错:
GradleScopeCompileServices.createGeneralCompileCaches()
What went wrong:
Execution failed for task ':libcocos2dx:compileReleaseJavaWithJavac'.
> Could not create service of type DefaultGeneralCompileCaches using GradleScopeCompileServices.createGeneralCompileCaches().
解决方案
终端进入项目的根目录,然后输入命令
./gradlew compileDebugJavaWithJavac --stacktrace
虽然没有改动什么,但在命令行执行这个命令后,在运行就不报错了
网友评论