android – Google place API : com.google.common.annotations.Beta-ThrowExceptions

Exception or error:

I have tried many solution but non of them worked.

Below is my gradle file dependencies, Please someone help me.

I have event tried to add “exclude module: ‘guava-jdk5′” but it still now working for me.

dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.google.firebase:firebase-core:12.0.1' exclude module: 'guava-jdk5'
implementation 'com.google.firebase:firebase-crash:12.0.1' exclude module: 'guava-jdk5'
implementation 'com.google.firebase:firebase-messaging:12.0.1' exclude module: 'guava-jdk5'
implementation 'com.crashlytics.sdk.android:crashlytics:2.9.6'
implementation('com.google.android.libraries.places:places:1.0.0') {
    exclude module: 'glide'
    exclude module: 'gson'
    exclude module: 'volley'
    exclude group: "com.google.android.gms", module: "play-services"
    exclude module: 'guava-jdk5'
    exclude module: 'httpclient'
    exclude group: 'org.androidannotations', module: 'annotation'
}

implementation project(':android-pdf-viewer')
implementation 'com.llollox:androidtoggleswitch:2.0.1'
implementation 'com.github.bumptech.glide:glide:3.8.0'
implementation 'com.ethanhua:skeleton:1.1.2'
implementation 'io.supercharge:shimmerlayout:2.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.android.support:support-v4:28.0.0'
testImplementation 'junit:junit:4.12'
implementation 'com.google.code.gson:gson:2.8.5' exclude module: 'guava-jdk5'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support:recyclerview-v7:28.0.0'
implementation 'com.facebook.android:facebook-android-sdk:[5,6)'
implementation project(':appFramework')
implementation 'de.hdodenhof:circleimageview:3.0.1'
implementation 'com.karumi:dexter:5.0.0'
implementation 'me.relex:circleindicator:1.2.2'
implementation 'com.yanzhenjie:album:2.1.3'
implementation 'com.github.PhilJay:MPAndroidChart:v3.0.3'
implementation 'org.androidannotations:androidannotations-api:4.6.0'
annotationProcessor 'org.androidannotations:androidannotations:4.6.0'
implementation 'dev.dworks.libs:volleyplus:+'
implementation 'com.android.billingclient:billing:1.2'
implementation 'com.github.yalantis:ucrop:2.2.3'
implementation 'com.appsflyer:af-android-sdk:5.+'
implementation 'com.android.installreferrer:installreferrer:1.0'
implementation 'com.github.florent37:viewtooltip:1.1.8'

}

How to solve:

Leave a Reply

Your email address will not be published. Required fields are marked *