0
我正在构建一个Android应用程序来存储谷歌驱动器中的文本文件。根据我的观点,代码是确定的。但是,当我把谷歌播放服务的应用程序级别依赖项,它会在应用程序级版本依赖项中引发错误。由于这个原因,我无法同步gradle。我认为错误与版本号有关。 这里是发挥服务依赖我把 “编译‘com.google.android.gms:发挥服务:8.4.0’”Android谷歌播放服务的正确版本
这是显示为错误,当我把上面的依赖的依赖 “编译 'com.android.support:appcompat-v7:23.4.0'”
这里是我的应用程序级graddle
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "25.0.2"
defaultConfig {
applicationId "com.example.xxxxx.calllogtogoogledrive"
minSdkVersion 19
targetSdkVersion 23
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
testCompile 'junit:junit:4.12'
compile 'com.google.android.gms:play-services:8.4.0'
}
下面是该项目的gradle水平
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
编译错误消失。现在有运行时错误。 –
你能告诉我吗? –