Android - Error:A prblem occurred configuring project ':app'

14,279

Solution 1

Simply Solve like this

Project -> Open Module Settings -> SDK Location -> Android NDK location: Remove the location path and click 'OK'

Rebuild Again

Solution 2

please add newline in the end of build.gradle file

Solution 3

Try to remove or add something to the build.gradle file that should force it to resync and update dependencies.
I had such problem after working sometime in offline mode, not exactly Offline mode from the gradle menu, but without internet connection

Share:
14,279
Veer3383
Author by

Veer3383

Android Enthusiast

Updated on June 14, 2022

Comments

  • Veer3383
    Veer3383 about 2 years

    my laptop suddenly got switched off while code was compiling. and the files where i had made changes got corrupted. i fixed them again and this is the error i got while compiling.

    can anybody help me figuring out what this is?

    Failed to deserialize script metadata extracted using org.gradle.groovy.scripts.internal.SubsetScriptTransformer for build file '/home/viraj/TutsTry/Airfollow/app/build.gradle'