Reputation: 13
Since when I updated Android Studio, My app doesn't work as it functions before the update.
I've already tried to delete the cache folder
That's the code:
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
defaultConfig {
applicationId 'daxilgames.footballplayersquiz2019'
minSdkVersion 17
targetSdkVersion 28
apply plugin: 'jdepend'
apply plugin: 'antlr'
apply plugin: 'announce'
apply plugin: 'com.android.application'
versionCode 3
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
debug {
debuggable false
}
}
productFlavors {
}
}
dependencies {
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.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation 'com.google.android.gms:play-services-ads:11.0.4'
testImplementation 'junit:junit:4.12'
}
Upvotes: 0
Views: 1165
Reputation: 1647
The ANTLR plugin antlr
extends the Java plugin java
(and applies it implicitly), and you cannot apply both the com.android.application
and the java
plugins in the same module, so you get the error
The 'java' plugin has been applied, but it is not compatible with the Android plugins .
Try to remove the line apply plugin: 'antlr'
.
Upvotes: 1