How to fix "Failed to notify build listener" error?

22,434

The error comes when the gradle build tools don't match with the Android Studio Version you are using. There are two possible ways to solve this;

  1. Downgrade the gradle tools version; eg From classpath 'com.android.tools.build:gradle:3.5.3' to classpath 'com.android.tools.build:gradle:3.2.1'.

  2. Update your Android Studio to match your gradle version

Share:
22,434
Vendelín Filip
Author by

Vendelín Filip

README about well, me 👋 Hey, I’m Vendelín Filip... not an average in dark corner sitting coder. ✍ Working on an online decentralized food sharing fair for students (share-snack.com), sample ordering app for a major baking production company and more. 👀 I’m into anything from coding and programming through biotech, art, design, music to philosophy. 🌱 Currently learning Dart for Flutter, Android development, project management and a lot more. 💞️ Open to collaborate with anybody on anything, just text me. But mainly projects with a reason and a bigger idea. 💻 How to reach me: 1️⃣Email 2️⃣Twitter 🐦 3️⃣LinkedIn 4️⃣Github 5️⃣Facebook

Updated on January 27, 2020

Comments

  • Vendelín Filip
    Vendelín Filip over 4 years

    this error came up when turned on my PC. And opened the Android Studio. The Gradle build took longer than normal and when it finally built there was this error. It is may be caused by the wrong committing my work from PC to my laptop (through GitHub). But I am not sure I am new here so It may also not be caused by this. Thank you for all the answers.

    I have tried to open and close AS on both devices and update them. And also tried to regradle them.

    AppName: sync failed date Failed to notify build listener.
    
    
    Run build:
    
    org.gradle.internal.exceptions.LocationAwareException: Failed to notify build listener. <76 internal calls>
    
    Caused by: org.gradle.internal.event.ListenerNotificationException: Failed to notify build listener. <8 internal calls>
    
    Caused by: java.lang.AbstractMethodError <54 internal calls>
    
    
    Build model'org.jetbrains.plugins.gradle.model.BuildScriptClasspathModel' for root project 'AppName':
    
    java.lang.AbstractMethodError <135 internal calls>
    
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
        at java.lang.Thread.run(Thread.java:745)
    

    On my laptop, it is working but not on PC. I can´t view my XML preview and not even pull things from GitHub.