大佬教程收集整理的这篇文章主要介绍了无法使用Gradle构建Android应用程序,但使用sudo除外,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在尝试使用gradle构建一个简单的’Hello world’安卓应用程序.如果我发出命令它会建立好
但没有sudo,
FAILURE: Build Failed with an exception.
* what went wrong:
A problem occurred configuring project ':MystudioApplication'.
> Failed to notify project evaluation listener.
> Could not resolve all dependencies for configuration ':MystudioApplication:_DebugCompile'.
> Could not find any version that matches com.android.support:appcompat-v7:+.
required by:
workspace:MystudioApplication:unspecified
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD Failed
@R_242_10586@l time: 12.621 secs
以下是我的build.gradle
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.6.+'
}
}
apply plugin: 'android'
repositories {
mavenCentral()
}
android {
compileSdkVersion 19
buildToolsVersion "19.0.0"
defaultConfig {
minSdkVersion 7
targetSdkVersion 19
}
}
dependencies {
compile 'com.android.support:appcompat-v7:+'
}
请帮忙
以上是大佬教程为你收集整理的无法使用Gradle构建Android应用程序,但使用sudo除外全部内容,希望文章能够帮你解决无法使用Gradle构建Android应用程序,但使用sudo除外所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。