How to fix Vulnerable WebRTC version error by third party libraries? - android

My Application in play developer console is showing error "Vulnerable WebRTC Versions, Your app uses a bad version of WebRTC, which contains security vulnerabilities."
I am using twilio video SDK, however it seems to be the latest version. Still cant figure out which library is using webrtc.
implementation platform('com.google.firebase:firebase-bom:31.1.1')
implementation 'com.google.firebase:firebase-analytics'
implementation 'com.google.firebase:firebase-messaging'
implementation 'com.google.firebase:firebase-crashlytics'
implementation 'androidx.appcompat:appcompat:1.5.1'
implementation 'com.google.dagger:dagger-android-support:2.38'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'com.jakewharton:butterknife:10.2.3'
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
implementation 'com.google.code.gson:gson:2.8.9'
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
debugImplementation "com.github.chuckerteam.chucker:library:3.5.2"
releaseImplementation "com.github.chuckerteam.chucker:library-no-op:3.5.2"
implementation 'com.squareup.picasso:picasso:2.71828'
implementation "androidx.lifecycle:lifecycle-runtime:2.5.1"
implementation "androidx.lifecycle:lifecycle-common-java8:2.5.1"
implementation "androidx.lifecycle:lifecycle-extensions:2.2.0"
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test:core:1.5.0'
androidTestImplementation 'androidx.test.ext:junit:1.1.4'
androidTestImplementation 'androidx.test:runner:1.5.1'
androidTestImplementation "androidx.test:rules:1.5.0"
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.0'
annotationProcessor 'com.google.dagger:dagger-android-processor:2.38'
annotationProcessor 'com.google.dagger:dagger-compiler:2.38'
annotationProcessor 'com.jakewharton:butterknife-compiler:10.2.3'
implementation 'androidx.recyclerview:recyclerview:1.2.1'
implementation "com.google.android.material:material:1.8.0-beta01"
//nav components
implementation 'androidx.navigation:navigation-fragment:2.5.3'
implementation 'androidx.navigation:navigation-ui:2.5.3'
implementation 'com.github.aabhasr1:OtpView:v1.1.2'
implementation 'com.pusher:pusher-java-client:2.2.6'
implementation 'androidx.room:room-runtime:2.4.3'
annotationProcessor 'androidx.room:room-compiler:2.4.3'
implementation 'com.squareup:otto:1.3.8'
implementation 'com.twilio:video-android:7.5.1'
implementation "com.twilio:audioswitch:1.1.2"
implementation 'androidx.core:core-splashscreen:1.0.0'
implementation "androidx.coordinatorlayout:coordinatorlayout:1.2.0"
//progress bar
implementation 'com.github.uzairiqbal91:CircularTimerView:1.0'
implementation "androidx.work:work-runtime:2.7.1"
//country code picker
implementation 'com.hbb20:ccp:2.6.0'
implementation 'com.android.support:multidex:1.0.3'
implementation 'io.github.informramiz:nameinitialscircleimageview:1.6'
implementation 'com.github.Drjacky:ImagePicker:2.1.16'
//App update
implementation 'com.google.android.play:app-update:2.0.1'
//Live
implementation 'com.github.florent37:singledateandtimepicker:2.2.7'
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
Is there a way to find which of these libraries use webrtc and what versions?

Related

cannot use Room database kotlin

I cannot use #Entity, #Dao, #Database.
Error :
enter image description here
This is my implementation :
implementation "androidx.room:room-runtime:2.4.2"
implementation "androidx.room:room-ktx:2.4.2"
kapt "androidx.room:room-compiler:2.4.2"
implementation "androidx.navigation:navigation-fragment-ktx:2.4.1"
implementation "org.jetbrains.kotlin:kotlin-stdlib:1.6.10"
implementation 'androidx.core:core-ktx:1.7.0'
implementation 'androidx.appcompat:appcompat:1.4.1'
implementation 'com.google.android.material:material:1.5.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
implementation 'androidx.recyclerview:recyclerview:1.3.0-alpha01'
implementation 'androidx.room:room-runtime:2.5.0-alpha01'
implementation 'androidx.navigation:navigation-ui-ktx:2.4.1'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
implementation 'androidx.activity:activity-ktx:1.4.0'
compile 'androidx.constraintlayout:constraintlayout:2.1.3'
compile 'androidx.appcompat:appcompat:1.4.1'
compile 'androidx.recyclerview:recyclerview:1.2.1'
I don't know where to fix it.
I already have plugin kapt.
Maybe you could try to upgrade room annotation library from kapt to ksp.
kapt "androidx.room:room-compiler:2.4.2"
to
ksp "androidx.room:room-compiler:2.4.2"

How to discover external libraries that produces Insecure HostnameVerifier Vulnerability when publish app on Google play

When I publish my app on google play store, I receive next error:
HostnameVerifier Your app(s) are using an unsafe implementation of the
HostnameVerifier interface. You can find more information about how
resolve the issue in this Google Help Center article.
My app doesn't use HostnameVerifier or X509HostnameVerifier.
I suspect that external libraries produces error.
My currently gradle is:
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support:cardview-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.android.support:multidex:1.0.3'
// Fire Base
implementation 'com.firebase:firebase-jobdispatcher:0.8.5'
// implementation 'com.firebaseui:firebase-ui-storage:3.2.1'
implementation 'com.google.firebase:firebase-messaging:17.4.0'
implementation 'com.google.firebase:firebase-database:16.1.0'
implementation 'com.google.firebase:firebase-storage:16.1.0'
implementation 'com.google.firebase:firebase-config:16.1.0'
// Facebook
implementation 'com.facebook.android:facebook-login:4.38.1'
implementation 'com.facebook.android:account-kit-sdk:4.37.0'
// Google Services
// implementation 'com.google.maps:google-maps-services:0.2.7'
implementation 'com.google.maps.android:android-maps-utils:0.5'
implementation 'com.google.android.gms:play-services-maps:16.1.0'
implementation 'com.google.android.gms:play-services-location:16.0.0'
implementation 'com.google.android.gms:play-services-places:16.0.0'
implementation 'com.google.android.gms:play-services-auth:16.0.1'
// Rx
implementation 'io.reactivex.rxjava2:rxjava:2.1.14'
implementation 'io.reactivex.rxjava2:rxandroid:2.0.2'
// Networking (Retrofit)
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
implementation 'com.squareup.retrofit2:adapter-rxjava2:2.9.0'
implementation 'com.squareup.okhttp3:logging-interceptor:4.9.1'
implementation 'com.squareup.okhttp3:okhttp:4.9.1'
// DI (Butter knife)
implementation 'com.jakewharton:butterknife:8.8.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
// Image processing (Glide, Lottie, circular image & Image picker)
implementation 'com.github.bumptech.glide:glide:4.8.0'
implementation 'de.hdodenhof:circleimageview:2.2.0'
implementation 'com.airbnb.android:lottie:2.5.4'
implementation 'com.github.jkwiecien:EasyImage:2.0.4'
// Others
implementation 'com.akexorcist:googledirectionlibrary:1.1.1'
implementation 'me.himanshusoni.chatmessageview:chat-message-view:1.0.3'
/* dimen */
implementation 'com.intuit.sdp:sdp-android:1.0.6'
implementation 'com.intuit.ssp:ssp-android:1.0.5'
// Car Animation in Rate card
implementation 'com.daimajia.easing:library:2.0#aar'
implementation 'com.daimajia.androidanimations:library:2.3#aar'
implementation('com.crashlytics.sdk.android:crashlytics:2.9.5#aar') {
transitive = true
}
// comment below line & its relative code in files, if you face issue while generate signed apk.
//debugImplementation 'com.facebook.stetho:stetho-okhttp3:1.5.0'
// payment gateway...
implementation 'com.braintreepayments:card-form:3.5.0'
implementation 'com.braintreepayments.api:braintree:2.18.1'
implementation 'com.stripe:stripe-android:8.0.0'
/* toasty */
implementation 'com.github.GrenderG:Toasty:1.3.0'
implementation 'id.zelory:compressor:2.1.0'
// Page Indicator using Recycler view
implementation 'com.ryanjeffreybrooks:indefinitepagerindicator:1.0.9'
implementation 'com.google.android.libraries.places:places:1.1.0'
// Emoji Handle
implementation 'org.apache.commons:commons-lang3:3.4'
implementation 'me.philio:pinentryview:1.0.6'

package android.support.design.widget does not exist after refactor dependencies - Androidx api 28

After refactoring dependencies to androidx dependencies with android studio I keep getting errors when building. I looks like the application still uses the old depedencies, but I have tried to clean projekt and rebuild project... nothing helped.
Below is the dependencies I use in my application.
def retrofit_version = "2.4.0"
def glide_version = "4.3.1"
implementation 'androidx.appcompat:appcompat:1.0.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
// Design Support
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.cardview:cardview:1.0.0'
implementation 'androidx.recyclerview:recyclerview:1.0.0'
implementation "com.squareup.retrofit2:retrofit:$retrofit_version"
implementation "com.squareup.retrofit2:converter-gson:$retrofit_version"
implementation 'androidx.paging:paging-runtime:2.0.0'
implementation "com.github.bumptech.glide:glide:$glide_version"
annotationProcessor "com.github.bumptech.glide:compiler:$glide_version"
implementation 'androidx.lifecycle:lifecycle-extensions:2.0.0'
implementation 'androidx.lifecycle:lifecycle-viewmodel:2.0.0'
implementation 'androidx.preference:preference:1.0.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'

GSON not deleted

Why in my APK there is GSON even though I have nothing to implement GSON in Gradle?
Result Analyze APK
My Gradle :
//main
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation "org.jetbrains.anko:anko-commons:0.10.5"
implementation "androidx.appcompat:appcompat:1.1.0"
implementation "androidx.constraintlayout:constraintlayout:1.1.3"
implementation "androidx.recyclerview:recyclerview:1.1.0"
implementation "androidx.paging:paging-runtime:2.1.1"
implementation "androidx.navigation:navigation-fragment-ktx:$nav_version"
implementation "androidx.navigation:navigation-ui-ktx:$nav_version"
implementation "androidx.lifecycle:lifecycle-extensions:$lifecycle_version"
implementation "androidx.lifecycle:lifecycle-common-java8:$lifecycle_version"
implementation "androidx.room:room-runtime:$room_version"
implementation "androidx.multidex:multidex:2.0.1"
implementation "com.android.volley:volley:1.1.1"
//google
implementation "com.google.android.gms:play-services-location:17.0.0"
implementation "com.google.android.material:material:1.0.0"
implementation "com.google.firebase:firebase-auth:19.2.0"
implementation "com.google.firebase:firebase-firestore:21.3.1"
implementation "com.google.firebase:firebase-storage:19.1.0"
implementation "com.google.firebase:firebase-messaging:20.1.0"
implementation "com.firebaseui:firebase-ui-storage:3.3.0"
// third party dependencies
implementation "com.balysv:material-ripple:1.0.2"
implementation "com.facebook.shimmer:shimmer:0.5.0"
implementation "com.squareup.moshi:moshi-kotlin:1.9.2"
implementation "com.tbuonomo.andrui:viewpagerdotsindicator:4.1.2"
implementation "com.github.bumptech.glide:glide:$glide_version"
//noinspection GradleDependency
implementation "com.journeyapps:zxing-android-embedded:3.6.0"
//kapt
kapt "com.github.bumptech.glide:compiler:$glide_version"
kapt "androidx.room:room-compiler:$room_version"
kapt "androidx.annotation:annotation:1.1.0"
// test
testImplementation 'junit:junit:4.13'
androidTestImplementation "androidx.test:runner:1.2.0"
androidTestImplementation "androidx.test.espresso:espresso-core:3.2.0"
I want to reduce my apk size, so I deleted the libary that I didn't use.
One or more of your dependencies has GSON in self.
i think it might be Glide or someone else.
for redecuing apk size check this topic might be helpful: Reduce the APK size - Android Developers

Getting com.android.build.api.transform.TransformException: Error while generating the main dex list. on adding places sdk

I started facing this error when I added the new google places sdk to my app. This is the full stack trace
java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: xyz[removed name]/build/intermediates/transforms/dexBuilder/debug/0,
Learn how to resolve the issue at https://developer.android.com/studio/build/dependencies#duplicate_classes.
Program type already present: com.android.volley.ParseError
at com.android.builder.dexing.D8DexArchiveMerger.getExceptionToRethrow(D8DexArchiveMerger.java:132)
at com.android.builder.dexing.D8DexArchiveMerger.mergeDexArchives(D8DexArchiveMerger.java:117)
at com.android.build.gradle.internal.transforms.DexMergerTransformCallable.call(DexMergerTransformCallable.java:101)
at com.android.build.gradle.internal.transforms.DexMergerTransformCallable.call(DexMergerTransformCallable.java:36)
at java.util.concurrent.ForkJoinTask$AdaptedCallable.exec(ForkJoinTask.java:1424)
... 4 more
Caused by: com.android.tools.r8.CompilationFailedException: Compilation failed to complete
at com.android.tools.r8.utils.ExceptionUtils.withCompilationHandler(ExceptionUtils.java:65)
at com.android.tools.r8.utils.ExceptionUtils.withD8CompilationHandler(ExceptionUtils.java:43)
at com.android.tools.r8.D8.run(D8.java:90)
at com.android.builder.dexing.D8DexArchiveMerger.mergeDexArchives(D8DexArchiveMerger.java:115)
... 7 more
Caused by: com.android.tools.r8.utils.AbortException: Error: Program type already present: com.android.volley.ParseError
at com.android.tools.r8.utils.Reporter.failIfPendingErrors(Reporter.java:116)
at com.android.tools.r8.utils.Reporter.fatalError(Reporter.java:74)
at com.android.tools.r8.utils.ExceptionUtils.withCompilationHandler(ExceptionUtils.java:59)
... 10 more
These are the imports (only including the relevant ones, the full list is big)
implementation 'com.google.android.gms:play-services-auth:16.0.1'
implementation 'com.google.android.gms:play-services-base:16.1.0'
implementation 'com.google.android.gms:play-services-maps:16.1.0'
implementation 'com.google.android.gms:play-services-identity:16.0.0'
implementation 'com.google.android.gms:play-services-location:16.0.0'
implementation 'com.google.android.gms:play-services-places:16.1.0'
implementation 'com.google.android.gms:play-services-nearby:16.0.0'
implementation 'com.google.android.gms:play-services-gcm:16.1.0'
implementation 'com.google.android.libraries.places:places:1.1.0'
I also have multidex enabled set to true. I tried, clean, Inavlidate Caches/Restart, restarting Studio. Would appreciate any suggestions. Thanks!!
Edit: Adding full dependency block
implementation 'com.google.code.gson:gson:2.8.2'
implementation 'com.mcxiaoke.volley:library:1.0.18'
implementation 'com.android.support:multidex:1.0.3'
implementation files('libs/gcm.jar')
// Facebook SDK Core only (Analytics)
implementation 'com.facebook.android:facebook-core:4.33.0'
// Facebook Login only
implementation 'com.facebook.android:facebook-login:4.33.0'
implementation 'com.braintreepayments.api:braintree:2.14.2'
implementation 'com.braintreepayments.api:drop-in:3.4.0'
implementation 'com.android.support:support-v4:27.1.1'
implementation 'com.android.support:customtabs:27.1.1'
implementation 'com.android.support:animated-vector-drawable:27.1.1'
/**
* Google
*/
implementation 'com.google.android.gms:strict-version-matcher-plugin:1.1.0'
implementation 'com.google.android.gms:play-services-auth:16.0.1'
implementation 'com.google.android.gms:play-services-base:16.1.0'
implementation 'com.google.android.gms:play-services-maps:16.1.0'
implementation 'com.google.android.gms:play-services-identity:16.0.0'
implementation 'com.google.android.gms:play-services-location:16.0.0'
implementation 'com.google.android.gms:play-services-places:16.1.0'
implementation 'com.google.android.gms:play-services-nearby:16.0.0'
implementation 'com.google.android.gms:play-services-gcm:16.1.0'
implementation 'com.android.support:mediarouter-v7:27.1.1'
implementation 'com.google.android:flexbox:0.3.2'
//compile files('libs/splunk-mint-4.2.1.jar')
implementation 'com.android.support:design:27.1.1'
// CardView
implementation 'com.android.support:cardview-v7:27.1.1'
implementation 'com.pixplicity.multiviewpager:library:1.0'
implementation 'com.github.aakira:expandable-layout:1.4.1#aar'
implementation 'me.everything:overscroll-decor-android:1.0.4'
implementation 'org.apache.httpcomponents:httpmime:4.5.2'
implementation 'commons-net:commons-net:3.3'
implementation 'com.android.support:percent:27.1.1'
/*For Request Server*/
implementation 'com.squareup.okhttp3:logging-interceptor:3.9.1'
implementation 'com.squareup.retrofit2:retrofit:2.3.0'
implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
implementation 'com.squareup.retrofit2:adapter-rxjava:2.3.0'
implementation 'com.artemzin.rxjava:proguard-rules:1.1.6.0'
/**
* Animation.
*/
implementation 'com.nineoldandroids:library:2.4.0'
implementation 'com.daimajia.easing:library:1.0.1#aar'
implementation 'com.daimajia.androidanimations:library:1.1.3#aar'
implementation 'net.soulwolf.widget:ratiolayout:1.0.0'
implementation 'com.jakewharton:butterknife:8.5.1'
kapt 'com.jakewharton:butterknife-compiler:8.5.1'
/**
* Event Bus.
*/
implementation 'org.greenrobot:eventbus:3.0.0'
implementation 'com.wefika:flowlayout:0.4.1'
/**
* Ring capcha
*/
implementation 'com.thrivecom:ringcaptcha:1.0.11#aar'
/**
* Zendesk
*/
implementation 'com.zopim.android:sdk:1.3.7.1'
implementation 'com.zendesk:support:2.0.0'
implementation('com.twitter.sdk.android:twitter:3.3.0#aar') {
transitive = true
}
implementation('com.crashlytics.sdk.android:crashlytics:2.9.3#aar') {
transitive = true
}
implementation('io.fabric.sdk.android:fabric:1.3.12#aar') {
transitive = true
}
implementation 'io.branch.sdk.android:library:3.1.0'
implementation 'com.mixpanel.android:mixpanel-android:5.+'
implementation 'com.yqritc:android-scalablevideoview:1.0.4'
implementation 'com.android.support:cardview-v7:27.1.1'
implementation 'com.android.support:recyclerview-v7:27.1.1'
implementation 'com.google.dagger:dagger:2.12'
kapt 'com.google.dagger:dagger-compiler:2.11'
implementation 'com.google.dagger:dagger-android-support:2.11'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
kapt 'com.google.dagger:dagger-android-processor:2.11'
// ViewModel and LiveData
implementation 'android.arch.lifecycle:extensions:1.1.1'
kapt "android.arch.lifecycle:compiler:1.1.1"
// Room
implementation 'android.arch.persistence.room:runtime:1.1.1'
kapt "android.arch.persistence.room:compiler:1.1.1"
// Paging
implementation 'android.arch.paging:runtime:1.0.1'
implementation 'com.jakewharton.timber:timber:4.6.0'
// Test helpers for LiveData
testImplementation 'android.arch.core:core-testing:1.1.1'
// Test helpers for Room
testImplementation 'android.arch.persistence.room:testing:1.1.1'
implementation 'org.apache.commons:commons-lang3:3.6'
implementation 'com.github.bumptech.glide:glide:4.5.0'
kapt 'com.github.bumptech.glide:compiler:4.4.0'
implementation 'com.github.rubensousa:gravitysnaphelper:1.5'
implementation 'me.everything:overscroll-decor-android:1.0.4'
implementation 'com.github.bumptech.glide:recyclerview-integration:4.4.0'
implementation 'io.reactivex.rxjava2:rxjava:2.1.8'
implementation 'io.reactivex.rxjava2:rxandroid:2.0.1'
implementation 'android.arch.persistence.room:runtime:1.1.1'
implementation 'android.arch.persistence.room:rxjava2:1.1.1'
implementation 'android.arch.lifecycle:reactivestreams:1.1.1'
implementation 'com.github.zcweng:switch-button:0.0.3#aar'
implementation 'com.shuhart.bubblepagerindicator:bubblepagerindicator:1.0.6'
implementation 'com.iarcuschin:simpleratingbar:0.1.5'
implementation 'co.omise:omise-android:2.6.4'
implementation 'com.airbnb.android:lottie:2.5.4'
implementation 'com.adjust.sdk:adjust-android:4.13.0'
implementation 'com.android.installreferrer:installreferrer:1.0'
implementation 'io.card:android-sdk:5.5.1'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'android.arch.persistence.room:testing:1.1.1'
androidTestImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test:rules:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-contrib:3.0.2'
androidTestImplementation 'org.mockito:mockito-core:2.7.19'
androidTestImplementation 'org.mockito:mockito-android:2.7.19'
implementation 'net.cachapa.expandablelayout:expandablelayout:2.9.2'
implementation project(':menu')
implementation project(':base')
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'com.google.firebase:firebase-perf:16.2.0'
implementation 'com.google.firebase:firebase-core:16.0.4'
implementation 'com.google.firebase:firebase-analytics:16.0.4'
implementation 'com.google.firebase:firebase-appindexing:16.0.2'
implementation 'com.google.firebase:firebase-messaging:17.3.4'
implementation 'com.google.android.instantapps:instantapps:1.1.0'
implementation 'com.romandanylyk:pageindicatorview:1.0.2'
implementation 'com.airbnb.android:lottie:2.5.4'
implementation 'me.grantland:autofittextview:0.2.+'
//OTP
implementation 'com.poovam:pin-edittext-field:1.1.2'
implementation 'jp.wasabeef:glide-transformations:4.0.1'
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'de.hdodenhof:circleimageview:3.0.0'
implementation 'com.braintreepayments.api:data-collector:2.22.0'
//Applozic
implementation 'com.applozic.communication.uiwidget:mobicomkitui:5.33'
//Places SDK
implementation 'com.google.android.libraries.places:places:1.1.0'
Program type already present: com.android.volley.ParseError
This error generally means you have two dependencies that are both providing the same class, causing a conflict.
You could run ./gradlew app:dependencies to list down all dependencies of all the libraries that you have included in your project. With this you can figure out the libraries that have common dependencies.
You need to migrate your Places SDK to the new version, follow this migration guide: Migrating to the New Places SDK Client.
In there is says that when adding:
implementation 'com.google.android.libraries.places:places:1.1.0'
One should remove:
implementation 'com.google.android.gms:play-services-places:16.0.0'
That should also be the case with 16.1.0.

Categories

Resources