creator 2.2打安卓包,求解:Could not resolve all files for configuration ':libcocos2dx:lintClassPath'.

  • What went wrong:
    Could not resolve all files for configuration ‘:libcocos2dx:lintClassPath’.

Could not download groovy-all.jar (org.codehaus.groovy:groovy-all:2.4.12)
Could not get resource ‘https://jcenter.bintray.com/org/codehaus/groovy/groovy-all/2.4.12/groovy-all-2.4.12.jar’.
Could not GET ‘https://jcenter.bintray.com/org/codehaus/groovy/groovy-all/2.4.12/groovy-all-2.4.12.jar’.
Connection reset
Could not download trove4j.jar (org.jetbrains.trove4j:trove4j:20160824)
Could not get resource ‘https://jcenter.bintray.com/org/jetbrains/trove4j/trove4j/20160824/trove4j-20160824.jar’.
Could not GET ‘https://jcenter.bintray.com/org/jetbrains/trove4j/trove4j/20160824/trove4j-20160824.jar’.
Connection reset
Could not download kotlin-stdlib.jar (org.jetbrains.kotlin:kotlin-stdlib:1.2.0)
Could not get resource ‘https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib/1.2.0/kotlin-stdlib-1.2.0.jar’.
Could not GET ‘https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib/1.2.0/kotlin-stdlib-1.2.0.jar’.
Connection reset
37 actionable tasks: 3 executed, 34 up-to-date

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output. Run with --scan to get full insights.

用AS打开项目,看下是否有要求Update的地方。我这边之前也遇到过,后面用AS打开后,弹出Update的提示,升级后使用AS打包就OK了