2016-12-17 5 views
0

今日、私はアンドロイドスタジオの初心者です。 android-」ハッシュ文字列でターゲットを見つけることができませんでした:原因:ハッシュ文字列 'android-N'でターゲットを見つけることができませんでした

私は

私は古いprojekctを開いて、私は「ある原因 エラーメッセージを取得し、プロジェクトをコンパイルし始めている

のAndriodスタジオの最新バージョンを更新しましたN '"

What should I do in order to use this old project in the updated android studio? 

ありがとう!

enter image description here

enter image description here

enter image description here

enter image description here

ソースコードファイルから

// Top-level build file where you can add configuration options common to all sub-projects/modules. 

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

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

allprojects { 
    repositories { 
     jcenter() 
    } 
} 

task clean(type: Delete) { 
    delete rootProject.buildDir 
} 

答えて

1

アンドロイドN build.gradleありますあなたのSDKにインストールされていません エラーで書かれたリンクをクリックしてください:

Android SDKマネージャ を開くと、プロジェクトに必要なSDKをインストールするのに役立つダイアログが表示されます。

+0

ありがとうございました!私はsdkマネージャーでアンドロイドNを見つけることができません。私の欠点は何ですか? –

+0

android 7.0 Nougatはまだアンドロイドです。問題が残っている場合は、7.1.1 – Abdou

+1

をインストールしてください。もしあなたのbuild.gradleで 'compileSdkVersion 'android-N''が' compileSdkVersion 24'になってtargetSdkVersionを24 – Abdou

関連する問題