Hi all am try to add AR Functionalities to my project but getting an build error
Duplicate class a.a.a found in modules jetified-core-1.15.0-runtime (com.google.ar:core:1.15.0) and jetified-installreferrer-2.2-runtime (com.android.installreferrer:installreferrer:2.2)``
Go to the documentation to learn how to Fix dependency resolution errors.
after adding
`implementation ("com.google.ar.sceneform.ux:sceneform-ux:1.17.1")`
to the gradle.
below given are my gradle dependencies
final RETROFIT_VERSION = '2.9.0'
final BUTTER_KNIFE_VERSION = '10.2.3'
final DAGGER_VERSION = '2.42'
final OKHTTP_VERSION = '4.8.0'
final GLIDE_VERSION = '3.8.0'
implementation fileTree(dir: 'libs', include: ['*.jar'])
//AR Core SceneFrom
implementation "com.google.ar.sceneform.ux:sceneform-ux:1.17.1"
//material
implementation 'com.google.android.material:material:1.3.0'
//androidx
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'androidx.browser:browser:1.4.0'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.percentlayout:percentlayout:1.0.0'
kapt 'androidx.annotation:annotation:1.2.0'
implementation 'androidx.recyclerview:recyclerview:1.2.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'androidx.multidex:multidex:2.0.1'
implementation "androidx.activity:activity-ktx:1.2.0"
implementation "androidx.fragment:fragment-ktx:1.3.0"
//dagger
implementation "com.google.dagger:dagger:$DAGGER_VERSION"
kapt "com.google.dagger:dagger-compiler:$DAGGER_VERSION"
//kotlin
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
//retrofit
implementation "com.squareup.retrofit2:retrofit:$RETROFIT_VERSION"
implementation "com.squareup.retrofit2:converter-gson:$RETROFIT_VERSION"
implementation "com.squareup.retrofit2:adapter-rxjava2:$RETROFIT_VERSION"
//butter knife
implementation "com.jakewharton:butterknife:$BUTTER_KNIFE_VERSION"
kapt "com.jakewharton:butterknife-compiler:$BUTTER_KNIFE_VERSION"
//glide
implementation "com.github.bumptech.glide:glide:$GLIDE_VERSION"
//ok http
implementation "com.squareup.okhttp3:okhttp:$OKHTTP_VERSION"
implementation "com.squareup.okhttp3:logging-interceptor:$OKHTTP_VERSION"
implementation 'com.afollestad.material-dialogs:core:0.9.6.0'
//firebase
implementation platform('com.google.firebase:firebase-bom:26.6.0')
implementation 'com.google.firebase:firebase-analytics-ktx'
implementation 'com.google.firebase:firebase-config-ktx'
implementation 'com.google.firebase:firebase-crashlytics-ktx'
implementation 'com.google.firebase:firebase-messaging'
implementation 'com.google.firebase:firebase-core'
implementation('io.branch.sdk.android:library:5.1.4') {
exclude module: 'answers-shim'
}
//gson
implementation 'com.google.code.gson:gson:2.8.6'
//event bus
implementation 'org.greenrobot:eventbus:3.2.0'
//sdp
implementation 'com.intuit.sdp:sdp-android:1.0.6'
//circle image
implementation 'de.hdodenhof:circleimageview:3.1.0'
//aes
implementation 'com.scottyab:aescrypt:0.0.1'
//notify visitor
implementation 'com.notifyvisitors.notifyvisitors:notifyvisitors:5.3.3'
implementation 'com.android.installreferrer:installreferrer:2.2'
//razorpay
implementation 'com.razorpay:checkout:1.5.16'
implementation 'com.razorpay:razorpay-java:1.4.0'
//BillDesk
implementation project(path: ':BillDeskSDK_v2.1.3')
implementation project(path: ':slidetopick')
//ktx
implementation 'androidx.core:core-ktx:1.3.2'
implementation 'androidx.fragment:fragment-ktx:1.3.3'
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.1'
implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.3.1'
// lifecycle
implementation "androidx.lifecycle:lifecycle-extensions:2.2.0"
//Coroutines
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:1.5.2"
//test
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
//biometric
implementation "androidx.biometric:biometric:1.1.0"
// reactive
implementation 'io.reactivex.rxjava2:rxjava:2.2.21'
implementation "io.reactivex.rxjava2:rxandroid:2.1.1"
//desugar
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5'
Tanks in advance if you are helping to fix this issue.
Related
I am new to android kotlin and I am using viewModel in my OCR App."import androidx.fragment.app.viewModels" is not showing.I have added all the neccessary dependencies.What am doing wrong ?
Here are the dependencies.
dependencies {
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation 'androidx.core:core-ktx:1.3.2'
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.2'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
implementation 'com.google.android.material:material:1.2.1'
//lottie animation
implementation 'com.airbnb.android:lottie:3.4.1'
// Add CameraX dependencies
def camerax_version = "1.0.0-beta05"
implementation "androidx.camera:camera-core:${camerax_version}"
implementation "androidx.camera:camera-camera2:${camerax_version}"
implementation "androidx.camera:camera-lifecycle:${camerax_version}"
implementation "androidx.camera:camera-view:1.0.0-alpha12"
// Add ML Kit dependencies
implementation 'com.google.android.gms:play-services-mlkit-text-recognition:16.0.0'
implementation 'com.google.mlkit:language-id:16.0.0'
implementation 'com.google.mlkit:translate:16.0.0'
}
And these is the import error.
Add this dependency to use by viewModels() in a Fragment:
implementation 'androidx.fragment:fragment-ktx:1.2.5'
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.
Right now I have a project that has 3 modules, one app module and a streaming module that uses its own base module.
When I build this project, it always fails in the app:transformClassesWithDexBuilderForDev2Debug, and it's always this:
AbortException: Type com.google.android.gms.internal.measurements.zz<something> is referenced as an interface from com.google.android.gms.internal.measurements.zz<something else>
My app module's gradle looks like this:
...
ext {
supportLibVersion = '28.0.0';
gmsVersion = '15.0.0';
}
com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation files('libs/libadapterinmobi.jar')
implementation project(':streaming')
implementation 'com.twitter.sdk.android:twitter-core:3.3.0'
implementation('com.crashlytics.sdk.android:crashlytics:2.9.6#aar') {
transitive = true
}
implementation('com.redbricklane.zapr:zapr-sdk:3.2.1#aar') {
transitive = true;
}
implementation 'com.redbricklane.zapr.admob:zapr-admob-adapter:2.1#aar'
implementation "com.android.support:appcompat-v7:$supportLibVersion"
implementation "com.android.support:customtabs:$supportLibVersion"
implementation "com.android.support:design:$supportLibVersion"
implementation "com.android.support:cardview-v7:$supportLibVersion"
implementation "com.android.support:recyclerview-v7:$supportLibVersion"
implementation "com.android.support:palette-v7:$supportLibVersion"
implementation "com.android.support:support-v4:$supportLibVersion"
implementation "com.google.android.gms:play-services-location:16.0.0"
implementation "com.google.android.gms:play-services-analytics:16.0.4"
implementation "com.google.android.gms:play-services-ads:17.1.2"
implementation "com.google.android.gms:play-services-auth:16.0.1"
implementation "com.google.firebase:firebase-core:16.0.8"
implementation "com.google.firebase:firebase-inappmessaging-display:17.1.1"
implementation "com.google.firebase:firebase-messaging:17.5.0"
implementation "com.google.firebase:firebase-auth:16.2.0"
implementation "com.google.firebase:firebase-database:16.1.0"
implementation "com.google.firebase:firebase-config:16.4.1"
implementation "com.google.firebase:firebase-appindexing:17.1.0"
implementation 'com.android.support:multidex:1.0.3'
implementation 'com.github.bumptech.glide:glide:4.9.0'
implementation 'com.github.bumptech.glide:annotations:4.9.0'
implementation 'com.github.bumptech.glide:volley-integration:4.2.0#aar'
annotationProcessor 'com.github.bumptech.glide:compiler:4.9.0'
implementation('com.facebook.android:facebook-android-sdk:4.30.0') {
exclude group: 'com.google'
}
implementation 'jp.co.cyberagent.android.gpuimage:gpuimage-library:1.4.1'
implementation 'com.melnykov:floatingactionbutton:1.3.0'
implementation 'com.googlecode.mp4parser:isoparser:1.1.22'
implementation 'me.relex:circleindicator:1.2.1#aar'
implementation 'com.android.volley:volley:1.1.1'
implementation 'com.squareup.okhttp3:okhttp:3.10.0'
implementation 'com.mixpanel.android:mixpanel-android:4.9.8'
implementation 'com.flurry.android:analytics:6.4.2'
implementation 'com.squareup.picasso:picasso:2.5.2'
implementation 'io.github.luizgrp.sectionedrecyclerviewadapter:sectionedrecyclerviewadapter:1.0.4'
implementation 'com.danikula:videocache:2.7.0'
implementation 'com.inmobi.monetization:inmobi-ads:7.2.1'
implementation 'commons-io:commons-io:2.5'
implementation 'com.github.livefront:bridge:v1.1.3'
implementation 'frankiesardo:icepick:3.2.0'
annotationProcessor 'frankiesardo:icepick-processor:3.2.0'
}
...
And my streaming module's gradle file looks like this:
...
androidExtensions {
experimental = true
}
com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
//implementation files('libs/libadapterinmobi.jar')
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:recyclerview-v7:28.0.0'
implementation 'com.android.support:cardview-v7:28.0.0'
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.android.support:exifinterface:28.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support:customtabs:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.android.support.constraint:constraint-layout-solver:1.1.3'
implementation 'com.android.volley:volley:1.1.1'
implementation 'android.arch.lifecycle:extensions:1.1.1'
implementation 'android.arch.lifecycle:viewmodel:1.1.1'
implementation 'android.arch.lifecycle:livedata:1.1.1'
implementation 'android.arch.persistence.room:runtime:1.1.1'
implementation 'android.arch.paging:runtime:1.0.1'
implementation ("com.facebook.android:facebook-core:4.28.0") {
exclude group: 'com.google'
}
implementation('com.crashlytics.sdk.android:crashlytics:2.9.6#aar') {
transitive = true
}
//implementation 'com.google.firebase:firebase-core:16.0.8'
implementation 'com.google.firebase:firebase-invites:16.1.1'
//implementation 'com.google.firebase:firebase-messaging:17.5.0'
//implementation 'com.google.firebase:firebase-dynamic-links:16.1.8'
implementation 'com.google.android.gms:play-services-auth:16.0.1'
implementation 'com.google.android.gms:play-services-location:16.0.0'
implementation 'com.google.android.exoplayer:exoplayer:2.9.1'
implementation 'com.google.android.exoplayer:extension-rtmp:2.9.1'
implementation 'com.google.code.gson:gson:2.8.2'
implementation 'com.github.bumptech.glide:glide:4.9.0'
implementation 'com.github.bumptech.glide:okhttp3-integration:4.9.0'
implementation 'com.squareup.okhttp3:okhttp:3.10.0'
implementation 'com.squareup.picasso:picasso:2.5.2'
implementation 'com.intuit.ssp:ssp-android:1.0.5'
implementation 'com.intuit.sdp:sdp-android:1.0.5'
implementation 'com.vinaysshenoy:mugen:1.0.2'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'com.github.florent37:viewtooltip:1.1.6'
implementation 'com.karumi:dexter:5.0.0'
implementation 'com.android.billingclient:billing:1.2'
implementation 'me.saket:better-link-movement-method:2.2.0'
implementation 'com.makeramen:roundedimageview:2.3.0'
implementation 'com.github.yalantis:ucrop:2.2.2'
implementation 'com.robinhood.ticker:ticker:2.0.1'
implementation project(':playtrivia-base')
//implementation project(':stepbarview')
annotationProcessor "com.github.bumptech.glide:compiler:4.9.0"
annotationProcessor "android.arch.persistence.room:compiler:1.1.1"
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
api "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}
repositories {
maven { url "http://dl.bintray.com/amulyakhare/maven" }
maven { url "https://jitpack.io" }
mavenCentral()
}
...
Most of the posts regarding this error are found here and in github repos' issue pages, and all of them suggest excluding com.google in their gradle inclusion codes. The problem here is that I don't know which one to put that exclusion into, since I don't know which one uses com.google.android.gms.internal.measurements.<something>.
EDIT: I forgot to mention that all of the other solutions in those posts involve updating all the Firebase and play-services repos to their latest version. It doesn't work for me.
The project level androidDependencies Gradle task didn't help either (I had no hits when I searched for internal).
With all that, how do I even start debugging this?
I have refactored my project to AndroidX and I have added material design after removing the support design library.
Here are my all dependencies.
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'androidx.appcompat:appcompat:1.0.0-alpha1'
implementation 'androidx.legacy:legacy-support-v13:1.0.0-alpha1'
implementation 'androidx.legacy:legacy-support-v4:1.0.0-alpha1'
//implementation 'com.android.support:support-compat:28.0.0'
//implementation 'com.android.support:appcompat-v7:28.0.0'
//implementation "com.android.support:support-core-utils:28.0.0"
//implementation 'com.android.support:animated-vector-drawable:28.0.0'
//implementation 'com.android.support:mediarouter-v7:28.0.0'
// implementation 'com.android.support:design:28.0.0'
//implementation 'com.android.support:customtabs:28.0.0'
//implementation 'com.android.support:support-dynamic-animation:28.0.0'
implementation 'androidx.palette:palette:1.0.0-alpha1'
implementation 'androidx.vectordrawable:vectordrawable-animated:1.0.0-alpha1'
implementation 'androidx.browser:browser:1.0.0-alpha1'
implementation 'androidx.cardview:cardview:1.0.0-alpha1'
implementation 'androidx.recyclerview:recyclerview:1.0.0-alpha1'
implementation 'androidx.constraintlayout:constraintlayout:2.0.0-alpha2'
implementation 'com.google.android.material:material:1.0.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.1.0-alpha4'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0-alpha4'
//implementation 'com.android.support:multidex:1.0.1'
implementation 'androidx.multidex:multidex:2.0.0'
implementation 'com.google.android.gms:play-services-auth:16.0.0'
implementation 'com.google.firebase:firebase-core:16.0.3'
implementation 'com.github.andremion:counterfab:1.0.1'
implementation 'com.firebaseui:firebase-ui-auth:4.0.1'
implementation 'com.google.firebase:firebase-auth:16.0.3'
implementation 'com.google.firebase:firebase-config:16.0.0'
implementation 'com.google.android.gms:play-services-analytics:16.0.3'
//implementation 'com.jakewharton:butterknife:8.8.1'
implementation 'com.google.firebase:firebase-firestore:17.1.0'
implementation 'com.google.firebase:firebase-messaging:17.3.1'
// Required only if Facebook login support is required
//implementation 'com.facebook.android:facebook-android-sdk:4.27.0'
//implementation 'com.github.DanielMartinus:Stepper-Touch:0.6'
//implementation 'com.stone.vega.library:VegaLayoutManager:1.0.6'
//implementation 'com.squareup.picasso:picasso:2.5.2'
implementation 'com.crashlytics.sdk.android:crashlytics:2.9.5'
implementation 'com.squareup.okhttp:okhttp:2.7.2'
//implementation 'com.google.code.gson:gson:2.8.2'
//implementation'com.google.firebase:firebase-invites:15.0.0'
implementation 'de.hdodenhof:circleimageview:2.1.0'
implementation 'com.airbnb.android:lottie:2.2.5'
implementation 'com.google.android.gms:play-services-maps:15.0.1'
implementation 'com.google.android.gms:play-services-location:15.0.1'
//implementation 'com.mcxiaoke.volley:library-aar:1.0.0-alpha1'
implementation 'com.squareup.okhttp:okhttp-urlconnection:2.2.0'
//implementation 'com.yarolegovich:lovely-dialog:1.1.0'
//implementation 'com.github.GrenderG:Toasty:1.2.8'
implementation 'com.squareup.okhttp3:okhttp:3.10.0'
//implementation'io.salyangoz.updateme:updateme:0.1.0'
//implementation 'com.wdullaer:materialdatetimepicker:3.5.0'
//implementation 'com.github.ganfra:material-spinner:2.0.0'
//implementation 'com.google.android.gms:play-services-identity:15.0.0'
//implementation 'com.github.thomper:sweet-alert-dialog:v1.4.0'
// Shimmer
//implementation 'com.facebook.shimmer:shimmer:0.1.0#aar'
//implementation 'com.karumi:dexter:4.2.0'
implementation 'com.google.firebase:firebase-perf:16.1.0'
implementation 'com.google.android.gms:play-services-places:15.0.1'
implementation 'com.afollestad.material-dialogs:core:0.9.6.0'
//implementation 'com.github.medyo:android-about-page:1.2.4'
implementation 'net.danlew:android.joda:2.9.9.3'
//implementation 'com.instabug.library:instabug:4.13.1'
//implementation "android.arch.persistence.room:runtime:1.0.0-alpha1-beta2"
implementation 'com.github.freshdesk:freshchat-android:1.4.0'
implementation 'commons-io:commons-io:2.4'
//implementation 'com.yarolegovich:sliding-root-nav:1.1.0'
implementation('com.github.bumptech.glide:glide:4.7.1') {
exclude group: "com.android.support"
}
annotationProcessor 'com.github.bumptech.glide:compiler:4.7.1'
//implementation('com.twitter.sdk.android:twitter-core:3.2.0#aar') { transitive = true }
}
I think I am having two dependencies which have the same component. But I am not able to figure out which one.
The AppBarLayout component is in two libraries.
I am working on an android app which uses Google Maps and Googla Places API. But after running the project it's getting error like below:
See error
Dependencies I have added on the project are:
implementation fileTree(dir: 'libs', include: ['*.jar'])
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
implementation 'com.squareup.retrofit2:retrofit:2.3.0'
implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
implementation 'com.github.glomadrian:MaterialAnimatedSwitch:1.1#aar'
implementation 'com.firebase:geofire-android:2.3.1'
implementation 'com.github.d-max:spots-dialog:0.7#aar'
implementation 'com.android.support:appcompat-v7:27.0.1'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation 'uk.co.chrisjenx:calligraphy:2.3.0'
implementation 'com.rengwuxian.materialedittext:library:2.1.4'
implementation 'com.android.support:design:27.0.1'
implementation 'com.android.support:cardview-v7:27.0.1'
implementation 'com.google.firebase:firebase-database:16.0.1'
implementation 'com.google.firebase:firebase-auth:16.0.2'
implementation 'com.google.firebase:firebase-core:16.0.1'
implementation 'com.google.android.gms:play-services-maps:11.8.0'
implementation 'com.google.android.gms:play-services:11.8.0'
testImplementation 'junit:junit:4.12'
implementation 'com.google.firebase:firebase-database:16.0.1'
implementation 'com.google.firebase:firebase-auth:16.0.2'
implementation 'com.google.firebase:firebase-core:16.0.1'
implementation 'com.google.android.gms:play-services-maps:11.8.0'
implementation 'com.google.android.gms:play-services:11.8.0'
Update the Dependencies version of above lib to to this
implementation 'com.google.firebase:firebase-database:+'
implementation 'com.google.firebase:firebase-auth:+'
implementation 'com.google.firebase:firebase-core:+'
implementation 'com.google.android.gms:play-services-maps:+'
Don't add all dependencies remove implementation 'com.google.android.gms:play-services:+' use individual dependencies that are needed like implementation 'com.google.android.gms:play-services-maps:+'