2.4.4之前打包都OK,今天编译突然就报错了

Compile failed. The log file path [ C:\Users\pc.CocosCreator\logs\native.log ]
at ChildProcess. (D:\soft\cocos-dashboard-editors\2.4.4\resources\app.asar\editor\core\native-utils.js:1:24467)
at ChildProcess. (D:\soft\cocos-dashboard-editors\2.4.4\resources\app.asar\editor\core\native-utils.js:1:6527)
at ChildProcess.emit (events.js:194:13)
at ChildProcess.EventEmitter.emit (domain.js:469:20)
at maybeClose (internal/child_process.js:998:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:265:5)

这是什么问题导致的,之前还能打包,今天编译就报错了

  • What went wrong:
    Could not determine the dependencies of task ‘:taigong:externalNativeBuildRelease’.

Could not resolve all task dependencies for configuration ‘:taigong:releaseRuntimeClasspath’.
Could not resolve io.reactivex.rxjava2:rxandroid:2.1.1.
Required by:
project :taigong
Could not resolve io.reactivex.rxjava2:rxandroid:2.1.1.
Could not get resource ‘https://jcenter.bintray.com/io/reactivex/rxjava2/rxandroid/2.1.1/rxandroid-2.1.1.pom’.
Could not GET ‘https://jcenter.bintray.com/io/reactivex/rxjava2/rxandroid/2.1.1/rxandroid-2.1.1.pom’.
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Could not resolve com.squareup.okhttp3:okhttp:3.12.1.
Required by:
project :taigong
Could not resolve com.squareup.okhttp3:okhttp:3.12.1.
Could not get resource ‘https://jcenter.bintray.com/com/squareup/okhttp3/okhttp/3.12.1/okhttp-3.12.1.pom’.
Could not GET ‘https://jcenter.bintray.com/com/squareup/okhttp3/okhttp/3.12.1/okhttp-3.12.1.pom’.
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Could not resolve com.squareup.leakcanary:leakcanary-android-no-op:1.5.4.
Required by:
project :taigong
Could not resolve com.squareup.leakcanary:leakcanary-android-no-op:1.5.4.
Could not get resource ‘https://jcenter.bintray.com/com/squareup/leakcanary/leakcanary-android-no-op/1.5.4/leakcanary-android-no-op-1.5.4.pom’.
Could not GET ‘https://jcenter.bintray.com/com/squareup/leakcanary/leakcanary-android-no-op/1.5.4/leakcanary-android-no-op-1.5.4.pom’.
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Could not resolve cn.leancloud:realtime-android:8.2.6.
Required by:
project :taigong
Could not resolve cn.leancloud:realtime-android:8.2.6.
Could not get resource ‘https://jcenter.bintray.com/cn/leancloud/realtime-android/8.2.6/realtime-android-8.2.6.pom’.
Could not GET ‘https://jcenter.bintray.com/cn/leancloud/realtime-android/8.2.6/realtime-android-8.2.6.pom’.
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Could not resolve cn.leancloud:storage-android:8.2.6.
Required by:
project :taigong
Could not resolve cn.leancloud:storage-android:8.2.6.
Could not get resource ‘https://jcenter.bintray.com/cn/leancloud/storage-android/8.2.6/storage-android-8.2.6.pom’.
Could not GET ‘https://jcenter.bintray.com/cn/leancloud/storage-android/8.2.6/storage-android-8.2.6.pom’.
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Could not resolve io.reactivex.rxjava2:rxandroid:2.1.1.
Required by:
project :taigong
Could not resolve io.reactivex.rxjava2:rxandroid:2.1.1.
Could not get resource ‘https://jcenter.bintray.com/io/reactivex/rxjava2/rxandroid/2.1.1/rxandroid-2.1.1.pom’.
Could not GET ‘https://jcenter.bintray.com/io/reactivex/rxjava2/rxandroid/2.1.1/rxandroid-2.1.1.pom’.
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

  • 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.

这是后面几行

jcenter不是弃用了吗,要换成新的下载源吧
试试把 ```
jcenter()换成mavenCentral()?

啊,这个在哪换

你看下你的安卓工程的这里