I am trying to add glide new version but I am getting these errors
I don't understand why this is happening
I am updating glide because this version of glide does not load GIF smoothly
apply plugin: 'com.android.application'
android {
compileSdkVersion 22
buildToolsVersion '26.0.2'
defaultConfig {
applicationId "com.rayvatapps.inspiquo"
minSdkVersion 19
targetSdkVersion 22
versionCode 7
versionName "2.5"
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
repositories {
jcenter()
}
dependencies {
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation 'com.android.support:design:22.2.0'
implementation 'com.android.support:appcompat-v7:22.2.0'
implementation 'com.android.support:support-v4:22.2.0'
//implementation 'com.android.support:support-v4:27.0.2'
//cardview
implementation 'com.android.support:cardview-v7:22.2.0'
//recyclerview
implementation 'com.android.support:recyclerview-v7:22.2.0'
//glide
// implementation 'com.github.bumptech.glide:glide:3.6.0'
implementation 'de.hdodenhof:circleimageview:1.3.0'
//voley
implementation 'com.android.volley:volley:1.0.0'
//gson
implementation 'com.google.code.gson:gson:2.6.2'
//sdp
implementation 'com.intuit.sdp:sdp-android:1.0.5'
//ripple effect
implementation 'com.skyfishjy.ripplebackground:library:1.0.1'
//glide new
implementation 'com.github.bumptech.glide:glide:4.7.1'
}
If I add old version than it's work fine while updating with a newer version it's not working
compileSdkVersion 27
targetSdkVersion 27
implementation 'com.android.support.constraint:constraint-layout:1.1.0'
implementation 'com.android.support:design:72.1.1'
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support:support-v4:27.1.1'
//implementation 'com.android.support:support-v4:27.1.1'
//cardview
implementation 'com.android.support:cardview-v7:27.1.1'
//recyclerview
implementation 'com.android.support:recyclerview-v7:27.1.1'
//glide
implementation 'com.github.bumptech.glide:glide:4.6.1'
implementation 'de.hdodenhof:circleimageview:2.2.0'
//voley
implementation 'com.android.volley:volley:1.0.0'
//gson
implementation 'com.google.code.gson:gson:2.8.2'
Add this to your project level build.gradle
repositories {
mavenCentral()
google()
}
use this
compile 'com.github.bumptech.glide:glide:3.5.2'
if you are used sdk version 28 then
implementation 'com.github.bumptech.glide:glide:3.5.2'
Related
I am migrating my existing project to Androidx . After adding this 2 line
android.useAndroidX=true
android.enableJetifier=true
in gradle.properties , I get a bunch of compile error . I found many solution but nothing worked for me . Please help me out.Thanks
gradle(app-level)
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.example.faridabadtaxirider"
minSdkVersion 21
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
buildToolsVersion '28.0.3'
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'androidx.appcompat:appcompat:1.0.0-beta01'
implementation 'androidx.constraintlayout:constraintlayout:1.1.2'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.1.0-alpha4'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0-alpha4'
//Add library
implementation 'com.github.aarsy.googlemapsanimations:googlemapsanimations:1.0.5'
implementation 'com.facebook.android:account-kit-sdk:4.29.0'
implementation 'io.paperdb:paperdb:2.6'
implementation 'com.squareup.picasso:picasso:2.5.2'
implementation 'de.hdodenhof:circleimageview:2.2.0'
implementation 'me.zhanghai.android.materialratingbar:library:1.2.0'
implementation 'com.google.maps.android:android-maps-utils:0.5+'
implementation 'com.google.firebase:firebase-messaging:19.0.1'
implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
implementation 'com.squareup.retrofit2:retrofit:2.3.0'
implementation 'com.squareup.retrofit2:converter-scalars:2.3.0'
implementation 'com.github.glomadrian:MaterialAnimatedSwitch:1.1#aar'
implementation 'com.firebase:geofire-android:2.1.2'
implementation 'com.google.android.gms:play-services-location:17.0.0'
implementation 'com.google.android.gms:play-services-places:17.0.0'
implementation 'com.google.android.gms:play-services-maps:17.0.0'
implementation 'com.google.android.gms:play-services-auth:17.0.0'//Fix crash account kit
implementation 'com.github.d-max:spots-dialog:1.1#aar'
implementation 'uk.co.chrisjenx:calligraphy:2.3.0'
implementation 'com.google.firebase:firebase-core:17.0.1'
implementation 'com.google.firebase:firebase-database:18.0.1'
implementation 'com.google.firebase:firebase-storage:18.1.1'
implementation 'com.google.android.material:material:1.0.0-beta01'
implementation 'com.rengwuxian.materialedittext:library:2.1.4'
implementation 'androidx.cardview:cardview:1.0.0-beta01'
implementation 'com.google.android.libraries.places:places:1.1.0'
implementation 'com.google.code.gson:gson:2.8.5'
}
apply plugin: 'com.google.gms.google-services'
Seems like 'me.zhanghai.android.materialratingbar:library:1.2.0' is not compatible with AndroidX. Try to use the latest version of that lib.
I have migrated to androidX by using android studio 3.4 and after migrating I'm facing every time this issue. Though I've tried excluding butterknife compilerAnnotation in gradle.properties but that shows WARNING: The option setting 'android.jetifier.blacklist=butterknife.*\.jar' is experimental and unsupported.
I've also updated to the latest butterknife dependency where JakeWharton himself mentioned the issue has been solved and it was jetifier issue. look at this workaround
implementation 'com.jakewharton:butterknife:10.1.0'
annotationProcessor 'com.jakewharton:butterknife-compiler:10.1.0'
In my build.gradle file
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
so I think this support library causes the issue. I've tried every solutions that comes in google first search result and couldn't solve it.
here is my build.gradle file
buildscript {
repositories {
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'io.fabric.tools:gradle:1.+'
}
}
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
repositories {
mavenCentral()
maven { url 'https://maven.fabric.io/public' }
}
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.audacityit.selltec"
minSdkVersion 19
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
// Butterknife requires Java 8.
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
//Support library
implementation 'com.google.android.material:material:1.0.0'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'androidx.recyclerview:recyclerview:1.0.0'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
//eventbus
implementation 'org.greenrobot:eventbus:3.1.1'
//butterknife
implementation 'com.jakewharton:butterknife:10.1.0'
annotationProcessor 'com.jakewharton:butterknife-compiler:10.1.0'
//retrofit
implementation 'com.squareup.retrofit2:retrofit:2.5.0'
implementation 'com.squareup.retrofit2:converter-gson:2.5.0'
implementation 'com.squareup.okhttp3:logging-interceptor:3.10.0'
//parceler
implementation 'org.parceler:parceler-api:1.1.9'
annotationProcessor 'org.parceler:parceler:1.1.9'
//glide
implementation 'com.github.bumptech.glide:glide:4.9.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.9.0'
//palette
implementation 'androidx.palette:palette:1.0.0'
//multidex
implementation 'androidx.multidex:multidex:2.0.1'
//utility
implementation 'com.iamsourav.sohoz:sohoz:1.0.0'
//circleimageview
implementation 'de.hdodenhof:circleimageview:3.0.0'
//recycler animator
implementation 'jp.wasabeef:recyclerview-animators:2.2.7'
//eventbus
implementation 'org.greenrobot:eventbus:3.1.1'
//shimmer
implementation 'com.github.sharish:ShimmerRecyclerView:v1.2'
//AutoScrollViewPager
// implementation('cn.trinea.android.view.autoscrollviewpager:android-auto-scroll-view-pager:1.1.2') {
// exclude module: 'support-v4'
// }
implementation 'cn.trinea.android.view.autoscrollviewpager:android-auto-scroll-view-pager:1.1.2'
//Flowlayout
implementation 'com.hyman:flowlayout-lib:1.1.2'
//two way slider
implementation 'io.apptik.widget:multislider-holo:1.3'
implementation 'at.blogc:expandabletextview:1.0.5'
//shimmer
implementation 'com.github.sharish:ShimmerRecyclerView:v1.2'
//google analytics
implementation 'com.google.android.gms:play-services-analytics:16.0.8'
//validation
implementation 'com.mobsandgeeks:android-saripaar:2.0.3'
//permission dispathcher
implementation("com.github.hotchemi:permissionsdispatcher:3.1.0") {
// if you don't use android.app.Fragment you can exclude support for them
exclude module: "support-v13"
}
annotationProcessor "com.github.hotchemi:permissionsdispatcher-processor:3.1.0"
//Image cropper
implementation 'com.theartofdev.edmodo:android-image-cropper:2.6.0'
//implementation 'com.crystal:crystalrangeseekbar:1.1.1'
//testing
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
implementation('com.crashlytics.sdk.android:crashlytics:2.8.0#aar') {
transitive = true
}
}
I have Created an application in android, and hosted in play store
the application works fine in all version except android 9. when i search my application
in android pie version using playstore, it is not showing my application,
I had set the sdk version to 28, but it is not showing my application.
I don't know what is the problem. Please help to solve the problem.
Thanks in advance.
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
buildToolsVersion '28.0.2'
defaultConfig {
applicationId "com.sample.name"
minSdkVersion 19
targetSdkVersion 28
versionCode 42
versionName "5.1"
multiDexEnabled true
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:design:28.0.0'
// compile 'com.squareup.retrofit2:retrofit:2.4.0'
// compile 'com.squareup.retrofit2:converter-gson:2.4.0'
implementation 'org.apache.commons:commons-lang3:3.4'
implementation 'com.squareup.okhttp3:logging-interceptor:3.11.0'
// compile 'com.squareup.okio:okio:1.3.0'
implementation 'com.android.support:cardview-v7:28.0.0'
implementation 'com.android.support:recyclerview-v7:28.0.0'
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.google.code.gson:gson:2.8.5'
implementation 'com.squareup.retrofit2:retrofit:2.4.0'
implementation 'com.squareup.retrofit2:converter-gson:2.4.0'
// compile 'com.razorpay:checkout:1.4.7'
//compile 'com.razorpay:checkout:1.4.8'
implementation 'com.razorpay:checkout:1.4.9'
implementation 'com.squareup.okhttp3:okhttp:3.11.0'
implementation 'com.squareup.okhttp3:okhttp-urlconnection:3.11.0'
implementation 'org.jsoup:jsoup:1.8.3'
implementation 'com.github.hotchemi:android-rate:1.0.1'
//compile 'com.google.firebase:firebase-database:11.8.0'
implementation 'com.google.firebase:firebase-database:16.0.1'
//compile 'com.google.firebase:firebase-messaging:1
// 1.4.2'
//compile 'com.google.firebase:firebase-core:11.4.2'
implementation 'com.google.firebase:firebase-messaging:17.3.0'
//compile 'com.google.firebase:firebase-messaging:11.8.0'
implementation 'com.github.danielemaddaluno.androidupdatechecker:library:1.0.2'
//compile 'com.google.firebase:firebase-core:11.8.0'
implementation 'com.google.firebase:firebase-core:16.0.1'
implementation 'com.google.android.gms:play-services-gcm:15.0.0'
// compile 'com.google.android.gms:play-services-analytics:16.0.1'
//compile 'com.google.android.gms:play-services-analytics:11.8.0'
implementation 'com.github.kassisdion:ViewPagerWithIndicator:v1.0'
implementation 'com.squareup.picasso:picasso:2.5.2'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.5.1'
testImplementation 'junit:junit:4.12'
implementation files('libs/PGSDK_V2.0.jar')
}
apply plugin: 'com.google.gms.google-services'
I have upgraded my android studio .. and I found many problems in the latest version
Although many similar questions exist, I checked the answers to all and none of them worked for me!
error:
Program type already present: android.support.v4.app.LoaderManager$LoaderCallbacks
Here is the error I'm facing while compiling the code:
Build.gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
buildToolsVersion '28.0.0'
defaultConfig {
applicationId 'com.ownmettro.androidecommerce'
minSdkVersion 17
targetSdkVersion 28
versionCode 1
versionName "1.0"
multiDexEnabled true
manifestPlaceholders = [onesignal_app_id: "11111111-1111-1111-1111-111111111111", onesignal_google_project_number: "REMOTE"]
}
repositories {
mavenCentral()
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt')
}
}
aaptOptions {
cruncherEnabled = false
}
productFlavors {
}
lintOptions {
abortOnError false
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
configurations.all {
resolutionStrategy {
force 'com.android.support:appcompat-v7:27.1.1'
force 'com.android.support:design:27.1.1'
force 'com.android.support:cardview-v7:27.1.1'
force 'com.android.support:recyclerview-v7:27.1.1'
force 'com.android.support:support-v4:27.1.1'
force 'com.android.support:preference-v7:27.1.1'
force 'com.android.support:preference-v14:27.1.1'
}
}
}
dependencies {
implementation 'com.android.support:multidex:1.0.3'
//noinspection GradleCompatible
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support:design:27.1.1'
implementation 'com.android.support:cardview-v7:27.1.1'
implementation 'com.android.support:recyclerview-v7:27.1.1'
implementation 'com.android.support:support-v4:27.1.1'
implementation 'com.android.support:preference-v7:27.1.1'
implementation 'com.android.support:preference-v14:27.1.1'
implementation 'com.github.bumptech.glide:glide:3.7.0'
implementation 'com.nineoldandroids:library:2.4.0'
implementation 'com.mcxiaoke.volley:library:1.0.19'
implementation 'com.google.code.gson:gson:2.8.0'
implementation 'com.squareup.retrofit2:retrofit:2.3.0'
implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
implementation 'com.squareup.picasso:picasso:2.3.2'
implementation 'com.squareup.okhttp3:okhttp:3.9.1'
implementation 'com.squareup.okhttp3:logging-interceptor:3.9.1'
implementation 'com.daimajia.slider:library:1.1.5#aar'
implementation 'com.crystal:crystalrangeseekbar:1.1.1'
implementation 'com.github.paolorotolo:appintro:4.1.0'
implementation 'com.stripe:stripe-android:2.0.2'
implementation 'com.braintreepayments:card-form:3.+'
implementation 'com.braintreepayments.api:drop-in:3.+'
implementation 'com.braintreepayments.api:braintree:2.+'
implementation 'com.paypal.sdk:paypal-android-sdk:2.15.3'
implementation 'com.facebook.android:facebook-android-sdk:4.+'
implementation 'com.onesignal:OneSignal:3.8.3'
implementation 'com.google.firebase:firebase-ads:12.0.1'
implementation 'com.google.firebase:firebase-auth:12.0.1'
implementation 'com.google.firebase:firebase-messaging:12.0.1'
implementation 'com.google.android.gms:play-services-auth:12.0.1'
implementation 'com.google.android.gms:play-services-maps:12.0.1'
implementation 'com.google.android.gms:play-services-location:12.0.1'
implementation 'com.google.firebase:firebase-auth:12.0.1'
implementation 'com.github.clans:fab:1.6.2'
}
apply plugin: 'com.google.gms.google-services'
Clear all caches and re-build by changing below things
compileSdkVersion 27
buildToolsVersion '27.0.3'
.....
targetSdkVersion 27
I updated sdk to 27.1.0 but now i want to downgrade to 27.0.2
My build.gradle contains these lines:
apply plugin: 'com.android.application'
apply plugin: 'org.greenrobot.greendao'
apply plugin: 'project-report'
android {
compileSdkVersion 27
buildToolsVersion '27.0.3'
defaultConfig {
applicationId "cz.my.package"
minSdkVersion 19
targetSdkVersion 27
versionCode 73
versionName "1.1.5"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
greendao {
schemaVersion 6
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
implementation 'com.android.support:appcompat-v7:27.0.2'
implementation 'com.android.support:support-v4:27.0.2'
implementation 'com.android.support:design:27.0.2'
implementation 'com.android.support:recyclerview-v7:27.0.2'
implementation 'com.google.android.gms:play-services-maps:11.8.0'
implementation 'com.google.firebase:firebase-messaging:11.8.0'
implementation 'com.github.bumptech.glide:glide:4.0.0'
implementation 'com.jakewharton:butterknife:8.8.1'
implementation 'de.hdodenhof:circleimageview:2.1.0'
implementation 'org.apmem.tools:layouts:1.10#aar'
implementation 'com.davemorrissey.labs:subsampling-scale-image-view:3.6.0'
implementation 'com.thoughtbot:expandablerecyclerview:1.3'
implementation 'in.championswimmer:SimpleFingerGestures_Android_Library:1.2'
implementation 'org.greenrobot:greendao:3.2.2'
implementation 'com.kyleduo.switchbutton:library:2.0.0'
implementation 'com.theartofdev.edmodo:android-image-cropper:2.6.0'
implementation 'cz.martinforejt:swipetohidelayout:1.0.4'
implementation 'org.apache.commons:commons-lang3:3.4'
testImplementation 'junit:junit:4.12'
annotationProcessor 'com.github.bumptech.glide:compiler:4.0.0'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
implementation files('libs/YouTubeAndroidPlayerApi.jar')
implementation 'org.jetbrains:annotations-java5:15.0'
}
apply plugin: 'com.google.gms.google-services'
But android studio says, that it founds some lib with version 27.1.0 and all must have same version.
Another problem is that i cant find 27 folder inside sdk/extras/android/m2repository/com/android/support/
How can i downgrade support libraries?