AnroidStudio2.0开发API17的方法

来源:互联网 发布:电子琴网络培训中心 编辑:程序博客网 时间:2024/06/06 09:47

为了干净的使用最新版本。重新做了一下系统。

安装:

jdk-8u40-macosx-x64.1427945120.dmg

android-studio-ide-143.2739321-mac.dmg


修改build.gradle(Moudle:app)后,可以调试API17.

但是还会报错,报错不影响运行。希望高手不吝指教,正确的方法。

apply plugin: 'com.android.application'android {    compileSdkVersion 23    buildToolsVersion "23.0.3"    defaultConfig {        applicationId "com.example.iwanghang.drmplayer"        minSdkVersion 17        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.3.0'    compile 'com.android.support:support-v4:23.3.0'}


0 0
原创粉丝点击