gradle - failed to build tool version android -


i tried open old project of mine in freshly installed android studio (today), gave me error :

failed find build tools revision 23.0.0 rc2 install build tools 23.0.0 rc2 , sync project 

i looked in internet , tried add in gradle file :

android { compilesdkversion 22 buildtoolsversion "22.0.0" } 

and gave me error:

gradle dsl method not found: 'android()' possible causes: project may using version of gradle not contain method. gradle settings. build file may missing gradle plugin. apply gradle plugin. 

this gradle file :

// top-level build file can add configuration options common sub-projects/modules. buildscript { repositories {     jcenter() } dependencies {     classpath 'com.android.tools.build:gradle:1.2.3'   } }  allprojects { repositories {     jcenter()   } } android { compilesdkversion 22 buildtoolsversion "22.0.0" } 

right click on project > open module settings > properties tab, change :

compile sdk verion api 23: android 6.0 build tools version 23.0.0 

enter image description here


Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -