我一直在尝试使用gradlew进行调试apk,但无论我做什么,它都会使构建失败。如果有帮助,这是我的cmd日志:
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
非常感谢任何帮助。
答案 0 :(得分:0)
找不到与com.android.tools.build:gradle:0.8匹配的任何版本。
在您的项目中查找并更改com.android.tools.build:gradle:0.8.
至Ccom.android.tools.build:gradle:0.8.+
。
答案 1 :(得分:0)
在C:\ Users \ svond_000.gradle中搜索“0.8”。它应该存在于ivy.xml文件中。确保该行是“com.android.tools.build:gradle:0.8.+”并保存。我还必须使用android sdk manager安装21.1.1构建工具。