Invalidating in-memory cache of /Users/apple/.gradle/caches/4.1/fileHashes/fileHashes.bin
Invalidating in-memory cache of /Users/apple/.gradle/caches/4.1/fileHashes/resourceHashesCache.bin
Settings evaluated using settings file ‘/Users/apple/projects/cocos/aloemanor/build/jsb-default/frameworks/runtime-src/proj.android-studio/settings.gradle’.
Projects loaded. Root project using build file ‘/Users/apple/projects/cocos/aloemanor/build/jsb-default/frameworks/runtime-src/proj.android-studio/build.gradle’.
Included projects: [root project ‘proj.android-studio’, project ‘:aloe’, project ‘:libcocos2dx’]
Parallel execution is an incubating feature.
Evaluating root project ‘proj.android-studio’ using build file ‘/Users/apple/projects/cocos/aloemanor/build/jsb-default/frameworks/runtime-src/proj.android-studio/build.gradle’.
Creating new cache for metadata-1.1/results, path /Users/apple/.gradle/caches/transforms-1/metadata-1.1/results.bin, access org.gradle.cache.internal.DefaultCacheAccess@33919c6b
Creating new cache for metadata-2.23/module-metadata, path /Users/apple/.gradle/caches/modules-2/metadata-2.23/module-metadata.bin, access org.gradle.cache.internal.DefaultCacheAccess@7ce7bf5
Creating new cache for metadata-2.23/artifact-at-url, path /Users/apple/.gradle/caches/modules-2/metadata-2.23/artifact-at-url.bin, access org.gradle.cache.internal.DefaultCacheAccess@7ce7bf5
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]
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]
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://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
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
-
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 3s
Error running command, return code: 1.
以上是日志:
https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.0.0/gradle-3.0.0.pom 在浏览器上可以下载,但是在cocos编译的时候一直错误
在android studio中可以编译成功