2016-12-13 3 views
0

これは何度も尋ねられていますが、解決できないことがわかりました。SDKプラットフォームツールバージョン(24.0.3)が古すぎて、API 25でコンパイルされたAPIをチェックできません[警告]

Main Project Gradle

dependencies { 
    classpath 'com.android.tools.build:gradle:2.2.3' 

    // NOTE: Do not place your application dependencies here; they belong 
    // in the individual module build.gradle files 
} 

App Module Gradle File

android { 
compileSdkVersion 25 
buildToolsVersion "25.0.1" 
defaultConfig { 
    applicationId "com.something" 
    minSdkVersion 15 
    targetSdkVersion 25 
    versionCode 1 
    versionName "1.0" 
    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 
} 
buildTypes { 
    release { 
     minifyEnabled false 
     proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
    } 
} 
} 

そこで問題は、私は混乱し25.0.1

にそれを設定しているとして、それは、ビルド・ツールのバージョン24.0.3を取ってないところからです!

+0

OKになります

3.再起動Androidのスタジオは、あなたがサポートlibにバージョン25.0.1を使用していますか? 'compile 'com.android.support:appcompat-v7:25.0.1'' – Basi

+1

@Basiはい、本当に! –

+0

クリーンリビルド - 再起動 –

答えて

0

は、このよう

android { 
compileSdkVersion 25 
buildToolsVersion "25.0.0" 
defaultConfig { 
    applicationId "com.something" 
    minSdkVersion 15 
    targetSdkVersion 25 
    versionCode 1 
    versionName "1.0" 
    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 
} 
buildTypes { 
    release { 
     minifyEnabled true 
     proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
    } 
    } 
} 

を設定し、com.android.support:appcompat-v7:25.0.1をコンパイル追加してみてください。

5

3つのステップ: このように試すことができます。私も同じ問題があります。

enter image description here

0

私は同じ問題に直面し、次のステップを実行することによって解決:

1.24.0.3

enter image description here

としてのあなたの古いプラットフォームのツールを、アンインストールしてみてください。

2.推奨のプラットフォームツールをインストールします。

関連する問題