在android studio中导入库

时间:2015-05-06 07:48:38

标签: android android-studio shared-libraries

我最近从日食迁移到工作室..请帮帮我..

在我的项目中我导入了日期选择器库..我收到以下错误

D:\StudioWorkspace\reminder_app\Reminder\DateTimePicker\build.gradle
Error:(4, 0) Could not find property 'ANDROID_BUILD_SDK_VERSION' on project ':DateTimePicker'.
Error:(4, 0) Could not find property 'ANDROID_BUILD_SDK_VERSION' on project ':DateTimePicker'.

我的build.gradle文件

apply plugin: 'com.android.application'

android {
  compileSdkVersion 21
  buildToolsVersion "21.1.2"

defaultConfig {
    applicationId "com.example.allwyn.reminder"
    minSdkVersion 15
    targetSdkVersion 21
    versionCode 1
    versionName "1.0"
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
   }
}

 dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:22.1.1'
    compile 'com.android.support:cardview-v7:22.1.1'
    compile 'com.android.support:recyclerview-v7:22.1.1'
    compile 'com.wdullaer:materialdatetimepicker:1.3.0'
 }
我的傻瓜。属性文件

 ---ANDROID_BUILD_TARGET_SDK_VERSION=19
 ---ANDROID_BUILD_TOOLS_VERSION=19
 ---ANDROID_BUILD_SDK_VERSION=19
 +++ANDROID_BUILD_TARGET_SDK_VERSION=20
 +++ANDROID_BUILD_TOOLS_VERSION=20
 +++ANDROID_BUILD_SDK_VERSION=20

0 个答案:

没有答案