android - Android Gradle错误(libGDX)

标签 android eclipse intellij-idea gradle libgdx

我使用libGDX 1.3.1已有几个月了。一切都很好,因为没有涉及gradle,但是现在我想使用gdx-facebook 1.1.1 libGDX扩展。如果我想使用gdx-facebook扩展名(以及1.3.1和1.9.x),gradle构建将失败。它与gdx-facebook扩展有关。

FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':android'.
> Could not resolve all dependencies for configuration ':android:_debugCompile'.
   > Could not find any matches for com.android.support:support-v4:[22,23) as no versions of com.android.support:support-v4 are available.
     Searched in the following locations:
         https://repo1.maven.org/maven2/com/android/support/support-v4/maven-metadata.xml
         https://repo1.maven.org/maven2/com/android/support/support-v4/
         https://oss.sonatype.org/content/repositories/snapshots/com/android/support/support-v4/maven-metadata.xml
         https://oss.sonatype.org/content/repositories/snapshots/com/android/support/support-v4/
         https://oss.sonatype.org/content/repositories/releases/com/android/support/support-v4/maven-metadata.xml
         https://oss.sonatype.org/content/repositories/releases/com/android/support/support-v4/
 Required by:
         911:android:1.0 > de.tomgrill.gdxfacebook:gdx-facebook-android:1.1.1 > com.facebook.android:facebook-android-sdk:4.7.0

我什至使用SDK管理器下载了支持库。

最佳答案

得到了解决方案。有时android SDK Manager不会显示所有软件包,为什么我真的不知道。早些时候我以为Extras下的支持存储库是原因,我确实下载了它,但是错误仍然存​​在,但是今天SDK Manager显示了本地maven支持存储库,我下载了它,现在一切都很酷。

关于android - Android Gradle错误(libGDX),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35972883/

相关文章:

android客户端将多部分表单数据解析为非ascii

eclipse - Ocaml 递归 : Pattern Matching

java - 如何从 Eclipse 远程运行 Apache Spark?

grails - 在 IntelliJ IDEA 中管理 Grails 自动依赖项的源代码和 javadoc?

java - 创建新工件时出现错误 "MANIFEST.MF already exists in VFS"

java - 在 Kotlin 中存储日期和时间的最佳方式

android - 使用应用程序上下文启动 Webview 时,未打开选择 html 组件(下拉列表)

android - 何时以及为什么应该使用 getResources()?

此语言级别不支持 Java- Diamond 类型

java - JAR文件执行: cannot find/load main class