【发布时间】:2023-03-12 20:20:01
【问题描述】:
问题是当我在 Android Studio 上同步项目时。我按照 Fire 基础指南中的所有步骤操作,发生“ASCII”错误。我已经将我的 google-services.json 文件粘贴到了 app 文件夹中。
build.gradle(项目:)
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.4'
classpath 'com.google.gms:google-services:4.3.2'
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
build.gradle(模块:app)
apply plugin: 'com.android.application'
android {
compileSdkVersion 27
defaultConfig {
applicationId "com.example.anikr.communityapp"
minSdkVersion 15
targetSdkVersion 27
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
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'
implementation 'com.google.firebase:firebase-analytics:17.2.0'
}
apply plugin: 'com.google.gms.google-services'
【问题讨论】:
-
您好,欢迎来到 SO。请不要将文本文件作为图片发布,在此处阅读 how to format text 并花几分钟时间让您的问题看起来可读。如果您不付出努力,我们将无法帮助您。谢谢:)
标签: android firebase gradle ascii