saveAndClose()
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
maven { url 'https://maven.google.com' }
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.3'
classpath 'com.google.gms:google-services:3.0.0'
classpath ('com.google.firebase:firebase-plugins:1.1.0') {
exclude group: 'com.google.guava', module: 'guava-jdk5'
}
}
allprojects {
repositories {
jcenter()
mavenCentral()
google()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
}
apply plugin: 'com.android.application'
android {
compileSdkVersion 26
buildToolsVersion '26.0.0'//27.0.3
defaultConfig {
applicationId "com.xample.app"
minSdkVersion 16
targetSdkVersion 26
versionCode 4
versionName "1.4"
multiDexEnabled = true
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
debug {
zipAlignEnabled false
}
}
productFlavors {
}
当尝试构建我的项目时,我已经知道程序类型:com.google.common.annotations.Beta和一些错误
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
testImplementation 'junit:junit:4.12'
implementation 'com.android.support:appcompat-v7:26.0.0-beta2'
implementation 'com.android.support:design:26.0.0-beta2'
implementation 'com.android.support:support-v4:26.0.0-beta2'
implementation 'com.google.android.gms:play-services:10.2.6'
implementation 'com.squareup.picasso:picasso:2.5.2'
implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.6'
implementation 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'
implementation 'com.uncopt:android.justified:1.0'
implementation files('libs/YouTubeAndroidPlayerApi.jar')
implementation 'com.google.apis:google-api-services-youtube:v3-rev182-1.22.0'
implementation 'com.google.firebase:firebase-core:16.0.1'
implementation 'com.google.firebase:firebase-firestore:17.0.3'
implementation 'com.android.volley:volley:1.1.0'
implementation 'com.google.firebase:firebase-messaging:17.1.0'
implementation('com.google.api-client:google-api-client-android:1.23.0') {
exclude module: 'guava-jdk5'
}
implementation('com.google.apis:google-api-services-tasks:v1-rev52-1.23.0') {
exclude module: 'guava-jdk5'
}
implementation 'com.android.support:multidex:1.0.3'
}
apply plugin: 'com.google.gms.google-services'
configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
def requested = details.requested
if (requested.group == 'com.android.support') {
if (!requested.name.startsWith("multidex")) {
details.useVersion '25.3.0'
}
}
}
}
伙计们请帮助..谢谢您的进步。
答案 0 :(得分:1)
升级以下内容:
classpath 'com.google.gms:google-services:3.0.0'
对此:
classpath 'com.google.gms:google-services:4.0.2'
答案 1 :(得分:0)
尝试更改以下内容
minifyEnabled true
进入:
minifyEnabled false