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'
Related
I'm trying to implement mediation to my source code but I keep getting the following error:
Program type already present: com.google.android.gms.common.zza
apply plugin: 'com.android.application'
android {
android.defaultConfig.vectorDrawables.setUseSupportLibrary(true)
dexOptions {
javaMaxHeapSize "4g"
preDexLibraries false
}
compileSdkVersion 28
buildToolsVersion '28.0.3'
defaultConfig {
minSdkVersion 17
targetSdkVersion 28
renderscriptTargetApi 19
renderscriptSupportModeEnabled true
versionCode 13
versionName "2.1"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
multiDexEnabled true
vectorDrawables {
useSupportLibrary = true
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
androidTestImplementation('androidx.test.espresso:espresso-core:3.2.0', {
exclude group: 'com.android.support', module: 'support-annotations'
})
implementation 'androidx.appcompat:appcompat:1.0.0'
implementation 'com.google.android.material:material:1.0.0'
implementation 'androidx.vectordrawable:vectordrawable-animated:1.0.0'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.media:media:1.0.0'
implementation 'androidx.vectordrawable:vectordrawable:1.0.0'
implementation 'de.hdodenhof:circleimageview:2.1.0'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'androidx.vectordrawable:vectordrawable:1.0.0'
implementation 'devlight.io:navigationtabbar:1.2.5'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'com.leo.simplearcloader:simplearcloader:1.0.+'
implementation 'com.google.code.gson:gson:2.6.2'
implementation 'com.squareup.retrofit2:retrofit:2.0.2'
implementation 'com.squareup.retrofit2:converter-gson:2.0.2'
implementation 'com.squareup.okhttp3:okhttp:3.3.1'
implementation 'com.squareup.picasso:picasso:2.5.2'
implementation 'com.jakewharton.picasso:picasso2-okhttp3-downloader:1.0.2'
implementation 'com.jakewharton.timber:timber:3.1.0'
implementation 'com.squareup.okhttp3:logging-interceptor:3.2.0'
implementation 'com.google.android.gms:play-services-auth:15.0.0'
implementation 'com.google.firebase:firebase-core:15.0.2'
implementation 'com.google.firebase:firebase-messaging:15.0.2'
implementation 'com.google.firebase:firebase-ads:15.0.0'
implementation 'com.github.vivchar:ViewPagerIndicator:1.1.0'
implementation 'com.anjlab.android.iab.v3:library:1.0.44'
implementation 'com.github.GrenderG:Toasty:1.3.0'
implementation 'com.facebook.android:facebook-android-sdk:[5,6)'
implementation 'com.miguelcatalan:materialsearchview:1.4.0'
implementation 'com.google.android.exoplayer:exoplayer:r2.5.2'
implementation 'androidx.multidex:multidex:2.0.0'
implementation 'com.facebook.android:audience-network-sdk:5.+'
implementation 'com.google.android.ads.consent:consent-library:1.0.3'
implementation 'com.github.bhargavms:DotLoader:1.1.1'
implementation 'com.sothree.slidinguppanel:library:3.4.0'
implementation 'com.github.chrisbanes:PhotoView:1.2.5'
implementation 'com.github.TutorialsAndroid:progressx:v2.0'
implementation 'com.orhanobut:hawk:2.0.1'
implementation 'com.github.Gavras:GIFView:v1.2'
implementation 'com.facebook.rebound:rebound:0.3.8'
implementation 'com.theartofdev.edmodo:android-image-cropper:2.7.0'
implementation 'jp.co.cyberagent.android:gpuimage:2.0.3'
implementation "com.leinardi.android:speed-dial:2.0.1"
implementation 'com.jackandphantom.android:blurimage:1.2.0'
implementation 'com.google.ads.mediation:adcolony:4.1.2.0'
testImplementation 'junit:junit:4.12'
}
apply plugin: 'com.google.gms.google-services'
I am actually a beginner, and I'm following the steps in google developer's documentation. I migrated my project to android X with no errors.
Can anyone help?
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 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'
After start using constraint layout my app does not build. It shows an error
This thing maybe fixed when I implement each library separately.
This error FOR now doesn't show but and not compile
Now dependencies like this
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:multidex:1.0.3'
implementation 'com.android.support:support-v4:27.1.0'
implementation 'com.android.support:cardview-v7:27.1.0'
implementation 'com.android.support:animated-vector-drawable:27.1.0'
implementation 'com.android.support:customtabs:27.1.0'
implementation 'com.android.support:appcompat-v7:27.1.0'
implementation 'com.android.support:design:27.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
I have done already Clean -> Rebuild also i tried to change libraries from that error manually but no results. Also after all that work with manual working i received new error
My OLD VERSION gradle file code below
apply plugin: 'com.android.application'
android {
compileSdkVersion 27
defaultConfig {
applicationId "com.borisruzanov.myapp"
minSdkVersion 21
targetSdkVersion 27
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
resConfigs "auto"
// Enabling multidex support.
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:multidex:1.0.3'
implementation 'com.android.support:support-v4:27.1.0'
implementation 'com.android.support:appcompat-v7:27.1.0'
implementation 'com.android.support:design:27.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
//General
compile 'com.facebook.android:facebook-android-sdk:4.29.0'
//Firebase
compile 'com.google.firebase:firebase-core:11.8.0'
compile 'com.google.firebase:firebase-database:11.8.0'
compile 'com.google.firebase:firebase-auth:11.8.0'
compile 'com.google.firebase:firebase-storage:11.8.0'
implementation 'com.firebaseui:firebase-ui-auth:3.2.1'
implementation 'com.firebaseui:firebase-ui-database:3.2.1'
compile 'com.google.firebase:firebase-messaging:11.8.0'
compile 'com.google.firebase:firebase-config:11.8.0'
//Images
implementation 'com.github.bumptech.glide:glide:4.6.1'
annotationProcessor 'com.github.bumptech.glide:compiler:4.6.1'
compile 'de.hdodenhof:circleimageview:2.2.0'
compile 'com.theartofdev.edmodo:android-image-cropper:2.6.+'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'id.zelory:compressor:2.1.0'
//Network
compile 'com.squareup.okhttp:okhttp:2.7.5'
compile 'com.android.support:cardview-v7:27.1.0'
}
apply plugin: 'com.google.gms.google-services'
Figured out that Firebase using support library different version. How I can change it ?
I was facing this from two days and now I solved it today these are the steps
First Try this in your app level gradle file
implementation('com.github.bumptech.glide:glide:4.6.1') {
exclude group: 'com.android.support'
}`
if it does not solve try logging dependencies run this command
./gradlew -q dependencies app:dependencies --configuration compile
in your android studio's Terminal Tab it will log all the dependency tree of your project
then find which libraries are using duplicating dependencies
for example
implementation 'com.github.bumptech.glide:glide:4.6.1' is using duplicate dependencies
so change
implementation 'com.github.bumptech.glide:glide:4.6.1'
to
implementation('com.github.bumptech.glide:glide:4.6.1') {
exclude group: 'com.android.support'
}
Thats It..
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?