2016-08-21 115 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' 
}