में स्थापित किया गया है इसलिए मैं अपने Gradle में निम्नलिखित निर्भरता जोड़ामैं अपने अनुप्रयोग में एक <code>CardView</code> जोड़ने की कोशिश की समर्थन पुस्तकालय के किन संस्करणों मेरे Android स्टूडियो
compile 'com.android.support:cardview-v7:22.2.1'
मैंने महसूस किया कि एक त्रुटि के कारण होता है क्योंकि मैं गलत संस्करण संख्या दी है। आधिकारिक Google डॉक्स पर एक नज़र डालने के बाद मुझे पता चला कि Android Support Repository
appcompat
लाइब्रेरी रखने के लिए उपयोग किया जाता है।
जैसा कि आप स्थापित किया गया समर्थन भंडार संस्करण 33 है। लेकिन यदि मैं अपना ग्रेडल संस्करण 33 में बदलता हूं तो यह अभी भी त्रुटि दिखा रहा है।
मैं एंड्रॉइड स्टूडियो में AppCompatLibrary का कौन सा संस्करण देख सकता हूं?
संपादित करें:
build.gradle
फ़ाइल
apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'
android {
compileSdkVersion 22
buildToolsVersion "23.0.3"
defaultConfig {
applicationId "com.spintum.preexam"
minSdkVersion 19
targetSdkVersion 22
versionCode 1
versionName "1.0"
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
repositories {
mavenCentral()
}
dependencies {
// compile fileTree (dir:'libs',include:'achartengine-*.jar')
//compile fileTree('libs/achartengine-1.1.0.jar')
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.android.support:percent:22.2.0'
compile 'com.android.support:design:22.2.1'
compile 'com.android.support:appcompat-v7:22.2.1'
compile 'com.android.support:support-v4:22.2.0'
compile 'com.android.support:cardview-v7:+'
//compile 'com.android.support:recyclerview-v7:22.2.+'
compile 'com.google.code.gson:gson:2.3.1'
compile 'com.google.android.gms:play-services:8.3.0'
compile 'com.google.android.gms:play-services-auth:8.3.0'
compile 'com.google.android.gms:play-services-identity:8.3.0'
compile 'com.google.android.gms:play-services-plus:8.3.0'
compile 'com.google.android.gms:play-services-location:8.3.0'
compile 'com.android.support:multidex:1.0.0'
compile 'com.github.markushi:circlebutton:1.1'
compile 'com.facebook.android:facebook-android-sdk:4.0.0'
compile 'de.hdodenhof:circleimageview:2.1.0'
compile 'com.ToxicBakery.viewpager.transforms:view-pager-transforms:[email protected]'
}
33 सही नहीं है ... 23 होना चाहिए। Https://developer.android.com/topic/libraries/support-library/features.html#v7 –