【发布时间】:2019-09-22 04:33:34
【问题描述】:
android studio 中的 gradle 文件出错。
apply plugin: 'com.android.application'
应用插件:'com.google.gms.google-services'
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.mih.demo2"
minSdkVersion 16
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.google.firebase:firebase-core:16.0.4'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}
实现“com.android.support:appcompat-v7:28.0.0”时出错
【问题讨论】:
-
请提供准确的错误信息!顺便说一句,您是否尝试将目标/编译 SDK 版本增加到 28?
-
我做到了,但没有解决
-
分享错误信息截图。
-
请添加您收到的整个错误,并回复@AlexMamo
标签: android android-studio firebase-realtime-database