7

嗨,我正面臨構建版本問題。當我運行該應用程序時,它會拋出一個錯誤,它需要使用23.0.3,但它強制使用25.0.0。如何解決這個奇怪的問題?AS強制使用android SDK構建工具25.0.0 SDK構建工具修訂版(23.0.3)對於項目來說太低

這裏有搖籃文件

的build.gradle模塊

buildscript { 
    repositories { 
     maven { url 'https://maven.fabric.io/public' } 
    } 

    dependencies { 
     classpath 'io.fabric.tools:gradle:1.+' 
    } 
} 
apply plugin: 'com.android.application' 
apply plugin: 'io.fabric' 



android { 
    compileSdkVersion 23 
    buildToolsVersion "23.0.3" 
    useLibrary 'org.apache.http.legacy' 
    defaultConfig { 
     applicationId "com.Yampp" 
     minSdkVersion 14 
     targetSdkVersion 23 
     compileOptions { 
      sourceCompatibility JavaVersion.VERSION_1_7 
      targetCompatibility JavaVersion.VERSION_1_7 
     } 
    } 

    buildTypes { 
     release { 
      minifyEnabled false 
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' 
     } 
    } 
} 

dependencies { 
    compile 'com.android.support:appcompat-v7:23.4.0' 
    compile 'com.google.android.exoplayer:exoplayer:r1.5.9' 
    compile 'com.android.support:recyclerview-v7:23.4.0' 
    compile files('libs/android-query.0.25.10.jar') 
    compile 'com.android.support:design:23.2.1' 
    compile fileTree(include: ['*.jar'], dir: 'libs') 
    compile 'com.google.android.gms:play-services:9.4.0' 
    compile 'com.google.android.gms:play-services-cast-framework:9.4.0' 
    compile 'com.googlecode.android-query:android-query:0.25.9' 
    compile 'com.android.support:mediarouter-v7:23.4.0' 
    compile 'com.android.support:cardview-v7:23.0.+' 
    compile('com.crashlytics.sdk.android:crashlytics:[email protected]') { 
     transitive = true; 
    } 

} 

的build.gradle項目

buildscript { 
    repositories { 
     jcenter() 
    } 
    dependencies { 
     classpath 'com.android.tools.build:gradle:2.3.0' 

    } 
} 

allprojects { 
    repositories { 
     jcenter() 
    } 
} 
+0

可以升級的compileSdk,構建工具和搖籃本身,而不會影響應用程序代碼 –

+1

,我在過去的一天新的不好的地方,因爲我看到'錯誤:執行失敗的任務「 :app:transformNativeLibsWithStripDebugSymbolFor '。'和* nothing *我可以修復它!迫使我從23.0.3移到25.0.x一直是一個主要的不便 –

回答

7

Error:The SDK Build Tools revision (23.0.3) is too low for project ':Yampp'. Minimum required is 25.0.0

只要升級打造工具25.0.0這不是影響應用程序的行爲。

buildToolsVersion "25.0.0" 
+0

非常好。非常感謝:-) @Gabriele Mariotti – Star

相關問題