每当我在Android中设置一个新项目或降级targetSdkVersion时,我都多次遇到这个问题。
Gradle build system start complaining about dependencies "Failed to resolve: com.android.support:recyclerview-v7:21.1.2" or something else.
我的问题是:
targetSdkVersion/compileSdkVersion/buildToolsVersion?与gradle依赖的版本之间有什么关系吗?如果是,那么它是如何计算的,以及如何
我试图将支持库添加到我的应用程序中,方法是将其放在build.gradle的依赖项部分:
compile 'com.android.support:appcompat-v7:20.0.+'
这在我所有的libgdx应用程序中都很好,除了其中一个。它根本找不到图书馆。上面写着:
Error:Could not find any version that matches com.android.support:appcompat-v7:20.0.+.
Searched in the following locations:
file:/C:/Users/MyName
我在Android Studio中遇到了这个依赖错误,我该如何修复它?
Unable to resolve dependency for ':app@debug/compileClasspath': Could not find any version that matches com.android.support:appcompat-v7:29.+.
<a href="openFile:C:/Users/Don't U DArE/AndroidStudioProjects/1stApp/app/build.gradle">Open
Could not find com.android.support:appcompat-v7:24.2.1.
Searched in the following locations:
- https://jcenter.bintray.com/com/android/support/appcompat-v7/24.2.1/appcompat-v7-24.2.1.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven PO
我试图在Android2.2中使用动作条,但在我的项目中找不到build.gradle?有人能帮我吗?
链接在这里:
Make sure you have downloaded the Android Support Repository using the SDK Manager.
**Open the build.gradle file for your application.**
Add the support library feature project identifier to the dependencies section. For example, to include