再按一次,再给我看一些问题。
这些是我在应用程序的build.gradle中使用的设置:
apply plugin: 'com.android.application'
android {
compileSdkVersion 26
buildToolsVersion '28.0.3'
defaultConfig {
applicationId 'com.abc.callrecorder'
minSdkVersion 15
targetSdkVersion 26
versionCode 2
versionName '1.1'
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
javaCompileOptions {
annotationProcessorOptions {
includeCompileClasspath true
}
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
productFlavors {
}
}
dependencies {
implementation 'com.google.android.gms:play-services-ads:11.6.0'
implementation fileTree(include: ['*.jar'], dir: 'libs')
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
implementation 'com.gu:option:1.3'
implementation 'com.android.support:design:26.1.0'
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support:cardview-v7:26.1.0'
implementation 'com.android.support:recyclerview-v7:26.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation 'com.android.support:support-v4:26.1.0'
implementation 'com.android.support:support-vector-drawable:26.1.0'
implementation 'com.yqritc:recyclerview-flexibledivider:1.4.0'
implementation 'de.hdodenhof:circleimageview:2.1.0'
implementation 'com.microsoft.onedrivesdk:onedrive-picker-android:v2.0'
implementation 'com.alimuzaffar.lib:pinentryedittext:1.3.1'
implementation 'com.squareup.picasso:picasso:2.5.2'
implementation 'com.jaredrummler:android-device-names:1.1.4'
implementation 'com.skyfishjy.ripplebackground:library:1.0.1'
implementation 'com.wang.avi:library:2.1.3'
implementation 'com.jakewharton:butterknife:6.0.0'
implementation 'com.github.AmniX:MaterialPatternllockView:7a45dcaa79'
implementation 'com.scottyab:aescrypt:0.0.1'
implementation 'com.google.firebase:firebase-messaging:11.8.0'
implementation 'com.google.firebase:firebase-iid:17.0.0'
implementation 'com.google.firebase:firebase-iid-interop:16.0.1'
implementation 'com.google.firebase:firebase-messaging-license:12.0.1'
testImplementation 'junit:junit:4.12'
}
apply plugin: 'com.google.gms.google-services'
这些是build.gradle应用程序中的设置:
buildscript {
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
classpath 'com.google.gms:google-services:3.0.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
maven {
url "https://maven.google.com"
}
maven { url "https://jitpack.io" }
maven { url 'http://guardian.github.com/maven/repo-releases' }
mavenCentral()
google()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
这些是错误:
不建议使用'android.enableAapt2'选项,因此不应使用 不再。使用'android.enableAapt2 = true'删除此警告。它 将于2018年底删除。
配置'compile'已过时,已被替换为 “实现”和“ api”。它将在2018年底删除。 更多信息请参见: http://d.android.com/r/tools/update-dependency-configurations.html