打包安卓失败> Could not resolve all files for configuration ':classpath'. > Could not resolve com.android.tools.build:gradle:3.0.0.

  • Creator 版本:1.8.2

  • 目标平台: Android

  • 详细报错信息,包含调用堆栈:Building mode: release
    Using Android Studio project : /Users/phelpstim/Desktop/svn/cccClient/game01/build/hgw-android/jsb-link/frameworks/runtime-src/proj.android-studio
    running: ‘/Users/phelpstim/Library/Android/sdk/android-sdk-macosx/tools/android update project -t android-22 -p /Users/phelpstim/Desktop/svn/cccClient/game01/build/hgw-android/jsb-link/frameworks/runtime-src/proj.android-studio/app’

Updated project.properties
Updated local.properties
Updated file /Users/phelpstim/Desktop/svn/cccClient/game01/build/hgw-android/jsb-link/frameworks/runtime-src/proj.android-studio/app/proguard-project.txt
Building apk…
running: ‘"/Users/phelpstim/Desktop/svn/cccClient/game01/build/hgw-android/jsb-link/frameworks/runtime-src/proj.android-studio/gradlew" --parallel --info assembleRelease’

Initialized native services in: /Users/phelpstim/.gradle/native
The client will now receive all logging from the daemon (pid: 668). The daemon log file: /Users/phelpstim/.gradle/daemon/4.1/daemon-668.out.log
Starting 4th build in daemon [uptime: 13 mins 44.976 secs, performance: 99%, no major garbage collections]
Using 4 worker leases.
Creating new cache for fileHashes, path /Users/phelpstim/Desktop/svn/cccClient/game01/build/hgw-android/jsb-link/frameworks/runtime-src/proj.android-studio/.gradle/4.1/fileHashes/fileHashes.bin, access org.gradle.cache.internal.DefaultCacheAccess@61ea6461
Creating new cache for plugin-use-metadata, path /Users/phelpstim/.gradle/caches/4.1/plugin-resolution/plugin-use-metadata.bin, access org.gradle.cache.internal.DefaultCacheAccess@10f2187f
Creating new cache for client-status, path /Users/phelpstim/.gradle/caches/4.1/plugin-resolution/client-status.bin, access org.gradle.cache.internal.DefaultCacheAccess@10f2187f
Starting Build
Settings evaluated using settings file ‘/Users/phelpstim/Desktop/svn/cccClient/game01/build/hgw-android/jsb-link/frameworks/runtime-src/proj.android-studio/settings.gradle’.
Projects loaded. Root project using build file ‘/Users/phelpstim/Desktop/svn/cccClient/game01/build/hgw-android/jsb-link/frameworks/runtime-src/proj.android-studio/build.gradle’.
Included projects: [root project ‘proj.android-studio’, project ‘:hongGW’, project ‘:libcocos2dx’]
Parallel execution is an incubating feature.
Evaluating root project ‘proj.android-studio’ using build file ‘/Users/phelpstim/Desktop/svn/cccClient/game01/build/hgw-android/jsb-link/frameworks/runtime-src/proj.android-studio/build.gradle’.
Creating new cache for metadata-1.1/results, path /Users/phelpstim/.gradle/caches/transforms-1/metadata-1.1/results.bin, access org.gradle.cache.internal.DefaultCacheAccess@3b09f9e0
Creating new cache for metadata-2.23/module-metadata, path /Users/phelpstim/.gradle/caches/modules-2/metadata-2.23/module-metadata.bin, access org.gradle.cache.internal.DefaultCacheAccess@89a5ecf
Creating new cache for metadata-2.23/artifact-at-url, path /Users/phelpstim/.gradle/caches/modules-2/metadata-2.23/artifact-at-url.bin, access org.gradle.cache.internal.DefaultCacheAccess@89a5ecf
Failed to get resource: GET. [HTTP HTTP/1.1 400 Bad Request: https://jcenter.bintray.com/com/android/tools/build/gradle/3.0.0/gradle-3.0.0.pom]
Failed to get resource: GET. [HTTP HTTP/1.1 400 Bad Request: https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.0.0/gradle-3.0.0.pom]

FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring root project ‘proj.android-studio’.

Could not resolve all files for configuration ‘:classpath’.
Could not resolve com.android.tools.build:gradle:3.0.0.
Required by:
project :
Could not resolve com.android.tools.build:gradle:3.0.0.
Could not get resource ‘https://jcenter.bintray.com/com/android/tools/build/gradle/3.0.0/gradle-3.0.0.pom’.
Could not GET ‘https://jcenter.bintray.com/com/android/tools/build/gradle/3.0.0/gradle-3.0.0.pom’. Received status code 400 from server: Bad Request
Could not resolve com.android.tools.build:gradle:3.0.0.
Could not get resource ‘https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.0.0/gradle-3.0.0.pom’.
Could not GET ‘https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.0.0/gradle-3.0.0.pom’. Received status code 400 from server: Bad Request

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

  • Get more help at https://help.gradle.org

BUILD FAILED in 1s
Error running command, return code: 1.

已经翻墙 可以正常访问google youtube

现在能打包了么,建议先用一个hello world试试,然后贴出来你的配置

还是不行 打包helloworld还是一样的报错

The log file path [ /Users/phelpstim/.CocosCreator/logs/native.log ]
Error: Compile failed. The log file path [ /Users/phelpstim/.CocosCreator/logs/native.log ]
at ChildProcess.handleChildProcess (/Applications/CocosCreator.app/Contents/Resources/app.asar/editor/core/native-utils.js:1:20297)
at ChildProcess.e.on (/Applications/CocosCreator.app/Contents/Resources/app.asar/editor/core/native-utils.js:1:7685)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:194:7)
at maybeClose (internal/child_process.js:899:16)
at Socket. (internal/child_process.js:342:11)
at emitOne (events.js:96:13)
at Socket.emit (events.js:191:7)
at Pipe._handle.close [as _onclose] (net.js:510:12)

操作系统 OS X 10.11
SDK :

ndk:r17

ant 1.10.3

What went wrong:
A problem occurred configuring root project ‘proj.android-studio’.

Could not resolve all files for configuration ‘:classpath’.
Could not resolve com.android.tools.build:gradle:3.0.0.
Required by:
project :
Could not resolve com.android.tools.build:gradle:3.0.0.
Could not get resource ‘https://jcenter.bintray.com/com/android/tools/build/gradle/3.0.0/gradle-3.0.0.pom’.
Could not GET ‘https://jcenter.bintray.com/com/android/tools/build/gradle/3.0.0/gradle-3.0.0.pom’. Received status code 400 from server: Bad Request
Could not resolve com.android.tools.build:gradle:3.0.0.
Could not get resource ‘https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.0.0/gradle-3.0.0.pom’.
Could not GET ‘https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.0.0/gradle-3.0.0.pom’. Received status code 400 from server: Bad Request

求救 卡两天了

你的ndk,是自己下载的吧,然后你打包的时候用的ndk 又用的Android studio 的ndk,导致打包ndk不一致了?

请问这个问题最后解决了吗?我在creator2.1遇到了同样的问题. 可以翻墙,可以下载到pom文件.但报同样的错. 或者应该把这个文件直接放到 某 个文件夹下? 求告知是哪个文件夹

解决了吗?我也在creator2.0.10遇到了同样的问题