के लिए अलग संस्करण से कैनरी 3कैनरी करने के लिए 4, निम्न त्रुटि का निर्माण समय में फेंक दिया जाता है एंड्रॉयड स्टूडियो अद्यतन करने के बाद किया है।एंड्रॉयड निर्भरता संकलन और रनटाइम
Android dependency 'com.android.support:support-support-v4' has different version for the compile (25.2.0) and runtime (26.0.0-beta2) classpath. You should manually set the same version via DependencyResolution.
मैं परियोजना भर में एक पूर्ण खोज भाग गया और संस्करण 25.1.0
जहां इस्तेमाल किया नहीं है।
ऐप-build.gradle
android {
compileSdkVersion 26
buildToolsVersion '26.0.0'
defaultConfig {
applicationId "com.xxx.xxxx"
minSdkVersion 14
targetSdkVersion
versionCode 1
versionName "1.0"
multiDexEnabled true
}
buildTypes {
debug {
debuggable true
}
release {
debuggable false
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
lintOptions {
abortOnError false
}
}}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
testImplementation 'junit:junit:4.12'
implementation project(':core')
implementation com.google.android.gms:play-services-gcm:9.0.0'
implementation('com.crashlytics.sdk.android:crashlytics:[email protected]') {
transitive = true
}
implementation 'com.android.support:multidex:1.0.1'
implementation 'com.flurry.android:analytics:7.0.0'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.6.0'
implementation 'com.jakewharton:butterknife:8.6.0'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
}
लाइब्रेरी-build.gradle:
apply plugin: 'com.android.library'
android {
compileSdkVersion 26
buildToolsVersion '26.0.0'
defaultConfig {
minSdkVersion 14
targetSdkVersion
versionCode 1
versionName "1.0"
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation files('libs/model.jar')
testImplementation 'junit:junit:4.12'
implementation 'com.android.support:percent:26.0.0-beta2'
implementation 'com.android.support:appcompat-v7:26.0.0-beta2'
implementation 'com.android.support:support-core-utils:26.0.0-beta2'
implementation 'com.squareup.retrofit2:retrofit:2.0.2'
implementation 'com.squareup.picasso:picasso:2.4.0'
implementation 'com.squareup.retrofit2:converter-gson:2.0.2'
implementation 'com.squareup.okhttp3:logging-interceptor:3.2.0'
implementation 'uk.co.chrisjenx:calligraphy:2.2.0'
implementation 'com.google.code.gson:gson:2.2.4'
implementation 'com.android.support:design:26.0.0-beta2'
implementation 'com.github.PhilJay:MPAndroidChart:v3.0.1'
}
नोट: परियोजना कैनरी 3
हाय, मैं Gradle निर्भरता आदेश भाग गया और मैं स्क्रीनशॉट यूआरएल यहाँ पोस्टिंग कर रहा हूँ, imgur.com/dL35BaN। मैंने अपनी परियोजना में फायरबेस का कभी भी उपयोग नहीं किया। जीसीएम में उस पंक्ति को जोड़ा गया, यह काम नहीं करता है हालांकि – DroidLearner
@DroidLearner मुझे कुछ याद आ रहा है, लेकिन मुझे आपके द्वारा पोस्ट किए गए स्क्रीनशॉट में com.android.support:support-compat का कोई संदर्भ नहीं दिखाई देता है। इसके अलावा उस स्क्रीन शॉट में एक चेतावनी भी है जो 'संकलन' कॉन्फ़िगरेशन को संदर्भित करती है जिसे मैं ओपी में आपकी ग्रेडल फ़ाइल में नहीं देखता हूं। यह संभावना है कि यह मूल सबमिशन से आ रहा है। क्या आप वहां से प्रासंगिक ग्रेडल जानकारी पोस्ट कर सकते हैं? – jdonmoyer
हाय, आपको निर्भरता पेड़ के साथ पूरी ग्रेडल फाइलें यहां पोस्ट कर रहा है .. ऐप ग्रेडल फ़ाइल -> https://gist.github.com/anonymous/93affc0d75eb96b59f9fde51332b9716 कोर ग्रेड फ़ाइल -> https://gist.github.com/ अज्ञात/5c85031f26ff766109061ab1f00b833d निर्भरता पेड़ -> https://gist.github.com/anonymous/71dd33b6fa4dc63dd357889e8aff01ee उम्मीद है कि इससे मदद मिलती है। – DroidLearner