2016-08-21 11 views

答えて

0

プロジェクトがターゲットエミュレータと互換性がない(APIバージョン)ことがあります。 targetSDKとminimumSdkのバージョンがエミュレータのsdkバージョンより低いか等しい場合はbuild.gradleファイルをチェックしてください。

compiledSdkVersionがminSdkVersionと一致し、targetSdkVersionでサポートされていることを確認してください。例:

apply plugin: 'com.android.application' 

android { 
    compileSdkVersion 23 
    buildToolsVersion "24.0.0" 

    defaultConfig { 
     applicationId "zeta.sqlitetest3" 
     minSdkVersion 16 
     targetSdkVersion 23 
     versionCode 1 
     versionName "1.0" 
    } 
    buildTypes { 
     release { 
      minifyEnabled false 
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
     } 
    } 
} 

dependencies { 
    compile fileTree(dir: 'libs', include: ['*.jar']) 
    testCompile 'junit:junit:4.12' 
    compile 'com.android.support:appcompat-v7:23.4.0' 
} 
関連する問題