There are some mistakes in the original text :

Error:(16, 0) Gradle DSL method not found: 'android()'
Possible causes:<ul><li>The project ‘XXXXXXX' may be using a version of Gradle that does not contain the method.
<a href="open.wrapper.file">Open Gradle wrapper file</a></li><li>The build file may be missing a Gradle plugin.
<a href="apply.gradle.plugin">Apply Gradle plugin</a></li>

The reason for the error :

android studio When introducing projects , Automatically find whether the machine has project settings SDK edition , If you don't find , We will be in project structure Change it to your own SDK. However , After modification ,AS It will be under the project automatically build.gradle Add the following code to :

terms of settlement :

Delete the code in the red box in the picture above , And then execute build->Rebuild project, The code after deletion is as follows :

Gradle DSL method not found: 'android() More articles about

  1. [ original ] Gradle DSL method not found: &#39;android()&#39; and buildToolsVersion is not specified Solutions for .

    I'm using it today Android Studio 2.0 When opening a project generated by someone else's earlier version , Tips : Gradle DSL method not found: 'android()'. The solution is , Open... Under the root directory ...

  2. 【 turn 】 solve Gradle DSL method not found: ‘android()’

    [ turn ] solve Gradle DSL method not found: ‘android()’ Recently imported as This is the problem with our project This problem bothered me for a long time , ok , After searching for a long time, it's all runProguard Of , most ...

  3. android studio Wrong presentation : Gradle DSL method not found: &#39;android() Solution

    There are some mistakes in the original text : Error:(16, 0) Gradle DSL method not found: 'Android()'Possible causes:<ul><li>Th ...

  4. solve Gradle DSL method not found: ‘android()’

    Recently imported as This is the problem with our project This problem bothered me for a long time , ok , After searching for a long time, it's all runProguard Of , Last in stackoverflow We found a solution on the Internet : http://stackoverflow. ...

  5. 【Android Studio】Gradle DSL method not found:&#39;android()&#39;

    As shown in the figure : Reference resources :http://www.jianshu.com/p/d370d41fb7da I've come across this problem again : Reference resources :http://stackoverflow.com/questions/24204 ...

  6. android studio ,Gradle DSL method not found: 'compile()'

    use gradle structure android Engineering appears   Gradle DSL method not found: 'compile()' error Check your outer layer build.gradle Is it used in the file compile Fang ...

  7. After Android Studio update: Gradle DSL method not found: &#39;runProguard()&#39;

    1 The specific error is : Error:(16, 0) Gradle DSL method not found: 'runProguard()' Possible causes:<ul><li ...

  8. Gradle DSL method found: ‘android()’ error

    Gradle DSL method found: ‘android()’ error Just like the last mistake, this is also due to the new version of Gradle in android() The method has been abandoned , But be careful android() Just in the whole project ...

  9. Android Studio:Gradle DSL method not found: &#39;runProguard()&#39;

    Android Studio A new 1.0 edition , After updating, I found that it was 0.8 The following normal project compilation failed , Judging from the error report, it's stuck in gradle above . Gradle DSL method not found: 'r ...

Random recommendation

  1. Talking about linux Routine work crontab (linux Timing task )

    We've all talked about the timing task , It's like the alarm clock on your cell phone , It will ring at the appointed time . Today in the right redis When the cache is stored at a fixed time, another operation is performed , Find some details , Writing is not good . Let's make do with it , First A brief introduction linux Routine work ...

  2. structure ASP.NET MVC4+EF5+EasyUI+Unity2.x Background management system of injection (15)- The authority management system is ready

    Series catalog In this section, we talk about the characteristics of the permission system , This system uses MVC4+EF5+IOC The architecture of interface programming , The permission tree uses DWTree, Flexible in function , Authorization is meticulous , Permissions can go down to the button level , For simple deployment , Lead to ...

  3. [NOIP2009] Improvement group Luogu P1071 Lurker

    Title Description R Guohe S The country is at war , Both sides exchanged spies , Sneak into each other , Wait for the opportunity to act . After all the hardships and dangers , Lurking in S National R National spy school C I finally found out S The coding rules of Chinese military code : 1. S The original message to be sent by the Chinese military is ...

  4. Longest common subsequence (LCS)

    ordinary DP. f[i][j] Represents a sequence a Middle front i Among them , Sequence b Middle front b Among them , The length of the longest common subsequence of components . DP equation : if(a[i-1]==b[j-1]) f[i][j]=f[i-1][j-1]+1;  el ...

  5. [SQL Server system ] -- View

    1: Definition From the user's perspective , A view is to view the data in the database from a specific perspective . From the inside of the database system , A view is made up of SELECT A virtual table defined by a query composed of statements . From the inside of the database system , A view is made up of numbers in one or more tables ...

  6. C++ _access and _waccess How to use

      C++ _access and _waccess How to use summary The header file :<io.h> Determine the access rights of the file Prototype int _access( const char *path,   int mo ...

  7. timestamp Normal date converted to timestamp format

    select cast(sysdate as timestamp) "DATE" from dual select to_timestamp(to_date(sysdate, 'y ...

  8. c# Basic review 1

    1. Classes and objects 1.1 Concepts of classes and objects class : Type of object , It is different from int Basic data type , Because classes have behavior : It can also be said that it has phase A collection of objects with the same characteristics and behaviors . object : The object is one by one, you can see , Tangible entities , ...

  9. Work study notes ——GDI Leak detection tool

    use .Net Map editor written by , Recently, I frequently hang up in the hands of a long-time planner . The reason should be GDI Let the cat out of the . But it's really difficult to find the leak manually in thousands of lines of code , Until I found this test on the Internet GDI Leaked tools GDILeaks. it ...

  10. EZOJ Netong 14( Dan Dan and Beida Xinke -Splay The color separation of , Find the subtree where the node is )

    Dan Dan and Beida Xinke The total time limit 10s Memory limit 256MB The author lydrainbowcat Submission 1/25 background Yan Yan ( Children read : very ) He is a cute teacher in Miaofeng library , Her husband ( Children call it : Xinke, Peking University ...