file-dependancy

How to update gradle in android studio?

谁都会走 提交于 2019-11-26 00:17:27
问题 I installed Android Studio 0.1.9. Today I got and update to version 0.2 and of course I updated. After the installation I restarted Android Studio but now I get this message: Project is using an old version of the Android Gradle plug-in. The minimum supported version is 0.5.0. Please update the version of the dependency \'com.android.tools.build:gradle\' How do I do that? I can\'t find any update tools for the gradle plugin in android studio. 回答1: Step 1 (Use default gradle wrapper) File

Failed to resolve: com.android.support:cardview-v7:26.0.0 android

落花浮王杯 提交于 2019-11-25 21:47:49
问题 i try to add recyclerview to my project and get this error appear and i added it from android studio dependencies 回答1: Starting from version 26 of support libraries make sure that the repositories section includes a maven section with the "https://maven.google.com" endpoint. Something like; allprojects { repositories { jcenter() maven { url "https://maven.google.com" } } } 回答2: This is how I have it working. Add maven { url "https://maven.google.com" } as @Gabriele_Mariotti suggests above.