Android gradle 错误 (libGDX)
Android gradle error (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 管理器不显示所有包,我真的不知道为什么。早些时候我认为 extras 下的支持存储库是原因,我确实下载了它,但错误仍然存在,但今天 SDK 管理器显示本地 maven 支持存储库,我下载了它,现在一切都很酷。
我已经使用 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 管理器不显示所有包,我真的不知道为什么。早些时候我认为 extras 下的支持存储库是原因,我确实下载了它,但错误仍然存在,但今天 SDK 管理器显示本地 maven 支持存储库,我下载了它,现在一切都很酷。