problem when changing a pc android project

1

A hard drive bothered me and I managed to copy the miracle project file.

I have put it on a new hard drive, installing android studio again and I take the project but it gives me errors that I can not fix:

  

Gradle DSL method not found: 'compile ()' possible causes:

     

-The project may be using a version of the Android Gradle plug-in that does not contain the method Upgrade plugin to version 2.3.1 and sync   project

     

-The project may be using a version of Gradle that does not contain the Open Gradle wrapper method

     

-The build file may be missing to Gradle plugin Apply Gradle plugin

Any ideas on how to recover the project?

    
asked by miklotov 10.05.2017 в 20:29
source

1 answer

0

for this you must download:

  • The API version your project uses (from the SDK Manager)

  • A recent version of Gradle - > Ctrl + Alt + S - > Build, execution, deployment - > Gradle - > Use defatut Gradle wrapper (by default) or you can download the latest version from the official page and select "use local gradle distribution"

  • Dependencies like the support libraries that your project uses and its respective versions (from the SDK Manager)

  • If this does not work for you, we would like you to give more information such as the configuration of your build.gradle that seems to have some problem.

        
    answered by 11.05.2017 в 09:25