Error:Cause: buildToolsVersion is not specified

前端 未结 12 2176
慢半拍i
慢半拍i 2020-12-24 00:50

I create a simple project and then I right-click on the project and then I use the make mudole app option. Now I have two build.gradle folders: 1-

12条回答
  •  一生所求
    2020-12-24 01:13

    Check if android studio version in build.gradle is same as the one you are running.

    buildscript {
    
       repositories {
           google()
           jcenter()
       }
     dependencies {
        classpath 'com.android.tools.build:gradle:3.0.0'
    
    
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
      }
    }   
    

    In my case, I opened/imported the project created on android studio 2.3.3 in android studio 3 and i was able to get rid of this issue after updating the build.gradle with 3.0.0

提交回复
热议问题