android file-dependancy android-support-library android-gradle-plugin android-recyclerview
我在Android studio中遇到此问题.
Error:(22, 13) Failed to resolve: com.android.support:appcompat-v7:26.0.0
<a href="install.m2.repo">Install Repository and sync project</a><br><a href="openFile:C:/Users/username/AndroidStudioProjects/ElectroSave/app/build.gradle">Show in File</a><br><a href="open.dependency.in.project.structure">Show in Project Structure dialog</a>
Run Code Online (Sandbox Code Playgroud)
这是我的Gradle代码:
apply plugin: 'com.android.application'
android {
compileSdkVersion 26
buildToolsVersion "25.0.2"
defaultConfig {
applicationId "com.example.noelly.myapplication"
minSdkVersion 19
targetSdkVersion 25
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'),
'proguard-rules.pro'
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:26.0.0'
}
Run Code Online (Sandbox Code Playgroud) 我想在Android项目中为Android FirebaseUI - Auth编写代码,但是从最近两天开始,我在当前代码中遇到错误,不知道如何修复它.努力但却没有以正确的方式发生.
这是我的build.gradle(项目:FriendlyChat)
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
mavenLocal()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath 'com.google.gms:google-services:3.0.0'
}
}
allprojects {
repositories {
jcenter()
mavenLocal()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
Run Code Online (Sandbox Code Playgroud)
这是我的build.gradle(模块:app)
apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'
repositories {
mavenLocal()
flatDir {
dirs …Run Code Online (Sandbox Code Playgroud) java android android-support-library google-play-services android-gradle-plugin