【发布时间】:2019-07-17 12:38:09
【问题描述】:
我想将我的 android studio 连接到 Firebase,但出现此错误:
错误:无法解析 ':app@debug/compileClasspath' 的依赖关系:无法解析 androidx.appcompat:appcompat:1.0.2。 显示详细资料 受影响的模块:app
还有
错误:无法解析 ':app@debug/compileClasspath' 的依赖关系:无法解析 androidx.constraintlayout:constraintlayout:1.1.3。 显示详细资料 受影响的模块:app
apply plugin: 'com.android.application'
android {
compileSdkVersion 29
defaultConfig {
applicationId "com.example.socialnetwork"
minSdkVersion 19
targetSdkVersion 29
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
}
【问题讨论】:
-
确保您的互联网连接稳定
标签: android-studio