uses-sdk element cannot have a “tools:node” attribute

后端 未结 5 1133
滥情空心
滥情空心 2020-12-28 16:26

I\'ve updated Android Studio last night to 0.9.0, buildToolsVersion to 21.1.0 and gradle to 0.14.0, after that I\'m receiving this error

Error:Executi

5条回答
  •  情歌与酒
    2020-12-28 16:46

    My solution

    • I have removed all of the From all of my manifest.xml files
    • In my base.gradle file(the one for the entire project I Added

      ext {
        compileSdkVersion = 19
        buildToolsVersion = "21"
        minSdkVersion = 10
        targetSdkVersion = 19
      }
      
    • In my modules I have this

      // all modules
      compileSdkVersion rootProject.ext.compileSdkVersion
      buildToolsVersion rootProject.ext.buildToolsVersion
      // in an application module
      defaultConfig {
         applicationId "com.something"
         minSdkVersion rootProject.ext.minSdkVersion
         targetSdkVersion rootProject.ext.targetSdkVersion
         versionCode appVersionCode
         versionName appVersionName
      }
      

提交回复
热议问题