0

I have been trying to make a debug apk with gradlew but whatever I seem to do it keeps failing the build. Here is my cmd log if it helps:

C:\Users\svond_000\Downloads\dalvik-sdk-8u40-ea3\dalviksdk\samples\HelloWorld\javafx>gradlew.bat assembledebug

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'HelloWorld'.
> Could not resolve all dependencies for configuration ':classpath'.
> Could not find any version that matches com.android.tools.build:gradle:0.8.
 Searched in the following locations:
     https://jcenter.bintray.com/com/android/tools/build/gradle/maven-metadta.xml
 Required by:
     :HelloWorld:unspecified > me.tatarka:gradle-retrolambda:2.4.1

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

BUILD FAILED

Total time: 5.394 secs

Any help is greatly appreciated.

4

2 回答 2

0

在 C:\Users\svond_000.gradle 中搜索“0.8”。它应该存在于 ivy.xml 文件中。确保该行是“com.android.tools.build:gradle:0.8.+”并保存。我还必须使用 android sdk 管理器安装 21.1.1 构建工具。

于 2015-01-24T11:27:07.617 回答
0

找不到任何与 com.android.tools.build:gradle:0.8 匹配的版本。

在您的项目中查找并更改com.android.tools.build:gradle:0.8.为。Ccom.android.tools.build:gradle:0.8.+

于 2015-01-24T10:03:00.263 回答