For 2 weeks now I have not been able to build any of my apps in android studio and it has become rather frustrating.
I am getting the following errors:
- Error:resource style/Base.AlertDialog.AppCompat (aka com.almac.engineerapp:style/Base.AlertDialog.AppCompat) not found.
- Error:java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
I am aware that you can do the appt2.enable = false in the gradle.properties but this does not work for me.
I have also ensured that my build tools is 26.0.2 or something similar as advised by other posts and this hasn't worked.
I have not seen any other solutions and although this is similar I do not feel this is a duplicate post.
build.gradle:
apply plugin: 'com.android.application'
android {
compileSdkVersion 26
buildToolsVersion '26.0.2'
defaultConfig {
applicationId "com.almac.engineerapp"
minSdkVersion 25
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard- android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation 'com.journeyapps:zxing-android-embedded:3.4.0'
implementation 'com.android.volley:volley:1.1.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
}
can someone please help