Include android support version 4 in Android Studio

Edit file build.gradle (Module:app):
apply plugin: 'com.android.application'

android {
    compileSdkVersion 21
    buildToolsVersion "21.1.2"

    defaultConfig {
        applicationId "duchoa.navigationdrawerv1"
        minSdkVersion 14
        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:21.0.3'
}
Add compile 'com.android.support:support-v4:+' below code compile 'com.android.support:appcompat-v7:21.0.3' and press link Sync

Không có nhận xét nào:

Đăng nhận xét

Bài viết nổi bật

[Android] Hàm hẹn giờ thực thi method

Các bạn có bao giờ thắc mắc có những ứng dụng bạn đang sử dụng một thời gian nhất định thì ứng dụng tự động xuất hiện quảng cáo. Thực tế cod...