style/Base.AlertDialog.AppCompat not found

android

(ravi kilnake) #1

I had a power cut and after that whenever I open android studio, I get this message for every project i open…

Error:resource style/Base.AlertDialog.AppCompat (aka com.example.patta.avoid:style/Base.AlertDialog.AppCompat) not found.
Error:failed linking references.
Error:java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
Error:java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
Error:com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
Error:org.gradle.tooling.BuildException: Failed to execute aapt
Error:com.android.ide.common.process.ProcessException: Failed to execute aapt
Error:java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
Error:java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
Error:com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details

how to fix this?


(Rene) #2

This Error is fixed in Gradle Plugin 3.2.0.
Just try to migrate to 3.2.0 in your build.gradle file by changing this line classpath 'com.android.tools.build:gradle:3.2.0-alpha11'.
Your Android Studio should do the rest