2016-03-10 19 views
12
./gradlew --parallel :app:assembleDebugTest 

khi tôi chạy trên lệnh trong Android Studio terminal tôi đã nhận lỗi này.quan sát gói id 'xây dựng-công cụ; 20.0.0' trong không phù hợp vị trí

Lỗi Thực hiện song song là tính năng ấp trứng. quan sát gói id 'xây dựng-công cụ; 20.0.0' ở vị trí không phù hợp 'sdk/xây dựng-tools/android-4.4W' (dự kiến ​​'sdk/xây dựng-tools/20.0.0')

tập tin Gradle áp dụng plugin: 'com.android.application'

android { 
      compileSdkVersion 22 
      buildToolsVersion '23.0.2' 
      packagingOptions { 
        exclude 'LICENSE.txt' 
      } 
      defaultConfig { 
        applicationId "package" 
        minSdkVersion 15 
        targetSdkVersion 22 
        versionCode 1 
        versionName "1.0" 
        testApplicationId "package.test" 
        testInstrumentationRunner "package.test.Instrumentation" 
      } 
      buildTypes { 
        release { 
          minifyEnabled false 
          proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
        } 
      } 
      sourceSets { 
        androidTest { 
          assets.srcDirs = ['src/androidTest/assets'] 
        } 
      } 
      adbOptions { 
        timeOutInMs 60000 // set timeout to 1 minute 
      } 
    } 

    dependencies { 
      compile fileTree(dir: 'libs', include: ['*.jar']) 
      compile 'com.android.support:appcompat-v7:22.2.1' 
      compile project(':sdk') 
      androidTestCompile('com.android.support.test:runner:0.4') { 
        exclude module: 'support-annotations' 
      } 
      androidTestCompile('com.android.support.test:rules:0.4') { 
        exclude module: 'support-annotations' 
      } 
      androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.1') { 
        exclude module: 'support-annotations' 
      } 

      androidTestCompile 'org.mockito:mockito-core:1.+' 
      androidTestCompile 'com.google.dexmaker:dexmaker:1.2' 
      androidTestCompile 'com.google.dexmaker:dexmaker-mockito:1.2' 
      androidTestCompile('com.android.support.test.espresso:espresso-contrib:2.2.1') { 
        exclude module: 'support-annotations' 
        exclude group: 'com.android.support', module: 'appcompat' 
        exclude group: 'com.android.support', module: 'support-v4' 
        exclude module: 'recyclerview-v7' 
      } 

      androidTestCompile 'info.cukes:cucumber-android:[email protected]' 
      androidTestCompile 'info.cukes:cucumber-picocontainer:1.2.0' 
    } 

tham khảo: Dưa chuột thử nghiệm Android link

+0

Khởi động lại Android Studio + Làm việc hiệu quả với tôi – RominaV

Trả lời

10

tôi phải đối mặt với cùng một lỗi ngày hôm qua

gỡ bỏ cài đặt các build-công cụ: 20 làm việc cho tôi

câu trả lời trên issue này là hữu ích

3

đổi tên thư mục

"sdk/xây dựng-tools/android-4.4W" -> "sdk/build-tools/20.0.0 "

Các vấn đề liên quan