После обновления Gradle, также GMS, у меня ошибка
Тип программы уже представлен: net.jcip.annotations.GuardedBy
Сообщение {kind = ERROR, text = Тип программы уже присутствует: net.jcip.annotations.GuardedBy, sources = [Неизвестный исходный файл], имя инструмента = Optional.of (D8)}
apply plugin: 'com.android.application'
configurations {
all*.exclude group: 'com.android.support', module: 'support-v4'
}
buildscript {
repositories {
jcenter()
mavenCentral()
}
}
def AAVersion = '4.6.0' // change this to your desired version, for
example the latest stable: 4.1.0
android {
signingConfigs {
config {
keyAlias 'toefl2017'
keyPassword 'sangohan1987'
storePassword 'sangohan1987'
}
}
compileSdkVersion 28
buildToolsVersion "28.0.0"
defaultConfig {
applicationId "com.ouamassi.widaf"
minSdkVersion 14
targetSdkVersion 28
versionCode 5
versionName "1.03"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
javaCompileOptions{
annotationProcessorOptions{
includeCompileClasspath = true
}
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
buildTypes {
release {
minifyEnabled false
debuggable false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.config
}
debug {
}
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES.txt'
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/dependencies.txt'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/LICENSE'
exclude 'META-INF/license.txt'
exclude 'META-INF/LGPL2.1'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/notice.txt'
exclude 'META-INF/ASL2.0'
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation ('com.android.billingclient:billing:1.2.2')
implementation ("org.androidannotations:androidannotations:$AAVersion")
implementation ("org.androidannotations:androidannotations-api:$AAVersion")
implementation ('com.google.android.gms:play-services:12.0.0')
implementation project(path: ':fivestarslibrary', configuration: 'default')
}
Где это охраняемая вещь? я ищу его, но ничего не нашел
Общий Gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.1'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'
classpath 'com.google.gms:google-services:3.1.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
любая помощь будет оценена