Hi I updated my gradle and android studio and since then I started getting build errors.
Once I changed compileSdkVersionto 28, I started getting error: package rx.android.schedulers does not exist
I also get this error in my build as shown in the pic bellow
Here are my dependencies from build.gradle
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation fileTree(dir: "$buildDir/native-libs", include: 'native-libs.jar')
implementation 'com.android.support:multidex:1.0.2'
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.jenzz.appstate:appstate:3.0.1'
implementation 'com.jenzz.appstate:adapter-rxjava2:3.0.1'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support:cardview-v7:28.0.0'
implementation 'com.android.support:recyclerview-v7:28.0.0'
implementation group: 'joda-time', name: 'joda-time', version: '2.3'
implementation 'com.mikhaellopez:circularprogressbar:1.1.1'
implementation 'io.realm:android-adapters:2.0.0'
implementation 'com.jakewharton.rxbinding2:rxbinding-recyclerview-v7:2.0.0'
implementation 'com.github.arimorty:floatingsearchview:2.1.1'
implementation 'uk.co.chrisjenx:calligraphy:2.3.0'
implementation 'com.laimiux.rxnetwork:rxnetwork:0.0.4'
// implementation 'org.opencv:opencv-android:2.4.8'
// implementation group: 'com.github.andrejlukasevic', name: 'document-scanner', version: '4.0.0'
// implementation 'com.mlsdev.rximagepicker:library:2.0.2'
implementation 'com.google.firebase:firebase-messaging:15.0.0'
debugImplementation 'com.21buttons:fragment-test-rule:1.0.0'
//Retrofit, RxJava and OkHttp,Gson,Dagger,ButterKnife.
implementation 'com.squareup.retrofit2:retrofit:2.1.0'
implementation 'com.squareup.retrofit2:converter-gson:2.1.0'
implementation 'com.squareup.retrofit2:adapter-rxjava:2.1.0'
implementation 'frankiesardo:icepick:3.1.0'
annotationProcessor 'frankiesardo:icepick-processor:3.1.0'
implementation group: 'com.squareup.retrofit2', name: 'adapter-rxjava2', version: '2.2.0'
implementation 'io.michaelrocks:libphonenumber-android:8.9.0'
implementation ('com.google.dagger:dagger:2.0.2'){
exclude group: 'com.google.guava'
}
annotationProcessor ('com.google.dagger:dagger-compiler:2.0.2'){
exclude group: 'com.google.guava'
}
implementation 'com.jakewharton:butterknife:8.8.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
compileOnly 'javax.annotation:jsr250-api:1.0'
implementation 'com.android.support:support-annotations:24.2.0'
implementation 'com.jakewharton.rxrelay2:rxrelay:2.0.0'
implementation 'com.jakewharton.rxrelay:rxrelay:1.1.0'
implementation 'com.futuremind.recyclerfastscroll:fastscroll:0.2.5'
implementation group: 'io.reactivex.rxjava2', name: 'rxandroid', version: '2.0.1'
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.0'
implementation 'com.jakewharton.timber:timber:4.5.1'
implementation 'com.google.code.gson:gson:2.5'
implementation 'com.squareup.retrofit2:retrofit-mock:2.1.0'
implementation 'com.github.bumptech.glide:glide:3.7.0'
implementation 'com.github.fafaldo:fab-toolbar:1.2.0'
implementation 'com.instabug.library:instabug:8.1.1'
implementation 'com.wdullaer:materialdatetimepicker:3.5.2'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation 'net.hockeyapp.android:HockeySDK:4.1.5'
implementation 'com.jakewharton.rxbinding2:rxbinding-appcompat-v7:2.0.0'
implementation 'com.tbruyelle.rxpermissions2:rxpermissions:0.9.4#aar'
implementation group: 'com.joooonho', name: 'selectableroundedimageview', version: '1.0.1'
implementation 'com.mixpanel.android:mixpanel-android:5.+'
debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.5'
//releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.5'
testImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.5'
testImplementation 'junit:junit:4.12'
testImplementation 'org.mockito:mockito-core:1.9.5'
testImplementation 'com.google.dexmaker:dexmaker:1.1'
testImplementation 'org.powermock:powermock-api-mockito:1.6.4'
testImplementation 'org.powermock:powermock-module-junit4:1.6.4'
testImplementation 'org.powermock:powermock-core:1.6.4'
testImplementation 'org.powermock:powermock-module-junit4-rule:1.5.4'
testImplementation 'org.powermock:powermock-classloading-base:1.6.4'
testImplementation 'org.powermock:powermock-classloading-xstream:1.5.4'
testImplementation 'org.powermock:powermock-module-testng:1.6.4'
testImplementation 'com.squareup.retrofit2:retrofit:2.1.0'
testImplementation 'com.squareup.retrofit2:converter-gson:2.1.0'
}
my java file where I am getting the error
import rx.android.schedulers.AndroidSchedulers;
#Override
protected void onResume() {
super.onResume();
DoPayApplication.updateIsAppLive(Boolean.TRUE);
publishRelay.call(StartStopAppMonitor.START_STOP_APP_MONITOR);
compositeSubscription.add(publishRelay.asObservable().observeOn(AndroidSchedulers.mainThread()).subscribe(iView -> {
I changed the import to use
import io.reactivex.android.schedulers.AndroidSchedulers;
That gave me this error
When i was with compileSdkVersion 26 it did not give me this error with respect to rxAndroid/rxJava.
This started after changing compileSdkVersion to 28
I am really confused, could you please shed some light on how to fix this.
Thanks
R
first of all, when you start using API 28, you need to start migrating to AndroidX
for example, change: implementation 'com.android.support:appcompat-v7:28.0.0'
to: implementation 'androidx.appcompat:appcompat:1.0.0' and i think your first error gets fixed.
this solved my issues
implementation 'io.reactivex:rxjava:1.0.12'
Related
I'm trying to build android project with navigation component.
My android project is written by both java and kotlin with some third party libraries(some library is very old).
When I add the following code into my app's build.gradle file in order to install navigation component as gogole site described([navigation component][1])
dependencies {
def nav_version = "2.3.3"
// Java language implementation
implementation "androidx.navigation:navigation-fragment:$nav_version"
implementation "androidx.navigation:navigation-ui:$nav_version"
// Kotlin
implementation "androidx.navigation:navigation-fragment-ktx:$nav_version"
implementation "androidx.navigation:navigation-ui-ktx:$nav_version"
// Feature module Support
implementation "androidx.navigation:navigation-dynamic-features-fragment:$nav_version"
// Testing Navigation
androidTestImplementation "androidx.navigation:navigation-testing:$nav_version"
// Jetpack Compose Integration
implementation "androidx.navigation:navigation-compose:1.0.0-alpha05"
}
After that my project build failed with following error.
Execution failed for task ':<<ProjectName>>:transformClassesWithByteCodeTransformForDebug'.
> java.util.concurrent.ExecutionException: java.lang.RuntimeException: cannot find META-INF.versions.9.module-info: module-info found in META-INF/versions/9/module-info.class
The module is java9 feature and module-info.class seems it is required with java9 even I compile my android project with java8.
I also added following statement as some back articles explained, but it's not helped.
packagingOptions {
exclude "**/module-info.class"
}
All Dependencies:
dependencies {
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
compile fileTree(include: ['*.jar'], dir: 'libs')
// Support library
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'androidx.recyclerview:recyclerview:1.1.0'
implementation 'com.google.android.material:material:1.0.0'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'androidx.multidex:multidex:2.0.1'
// viewmodel
implementation "androidx.lifecycle:lifecycle-reactivestreams:2.1.0"
implementation "androidx.lifecycle:lifecycle-extensions:2.1.0"
implementation "androidx.lifecycle:lifecycle-runtime:2.1.0"
implementation "androidx.lifecycle:lifecycle-common-java8:2.1.0"
androidTestImplementation "androidx.arch.core:core-testing:2.1.0"
// room
implementation "androidx.room:room-runtime:2.2.3"
kapt "androidx.room:room-compiler:2.2.3"
implementation "androidx.room:room-rxjava2:2.2.3"
testImplementation "androidx.room:room-testing:2.2.3"
androidTestImplementation "androidx.room:room-testing:2.2.3"
// GMS
implementation "com.google.android.gms:play-services-maps:15.0.2"
implementation "com.google.android.gms:play-services-location:15.0.2"
implementation "com.google.android.gms:play-services-tagmanager:16.0.8"
// for Places SDK for Android
implementation "com.google.android.libraries.places:places-compat:1.1.0"
implementation 'com.google.maps.android:maps-ktx:1.5.0'
implementation 'com.google.maps.android:maps-utils-ktx:1.5.0'
// Google
compile 'com.google.code.gson:gson:2.2.4'
compile 'com.google.guava:guava:14.0.1'
// Directions API
implementation "com.google.maps:google-maps-services:0.2.11"
// GreenDao
compile 'de.greenrobot:greendao:1.3.7'
// Util
compile 'com.deploygate:sdk:3.1'
// Firebase
implementation "com.google.firebase:firebase-core:16.0.9"
implementation "com.google.firebase:firebase-messaging:18.0.0"
implementation "com.google.firebase:firebase-dynamic-links:17.0.0"
implementation "com.google.firebase:firebase-config:17.0.0"
implementation 'com.google.firebase:firebase-crashlytics:17.2.2'
implementation 'com.google.firebase:firebase-analytics:17.6.0'
// AppsFlyer
implementation 'com.appsflyer:af-android-sdk:4.10.3#aar'
implementation 'com.android.installreferrer:installreferrer:1.0'
// Retrofit2
compile "com.squareup.retrofit2:retrofit:2.3.0"
compile "com.squareup.retrofit2:adapter-rxjava2:2.3.0"
compile "com.squareup.retrofit2:converter-moshi:2.3.0"
implementation("com.squareup.retrofit2:converter-simplexml:2.3.0") {
exclude group: 'xpp3', module: 'xpp3'
exclude group: 'stax', module: 'stax-api'
exclude group: 'stax', module: 'stax'
}
compile "com.squareup.retrofit2:retrofit-mock:2.3.0"
compile "com.squareup.okhttp3:okhttp:3.8.0"
testCompile "com.squareup.okhttp3:mockwebserver:3.8.0"
compile "com.squareup.okhttp3:logging-interceptor:3.8.0"
compile "com.squareup.moshi:moshi:1.5.0"
compile "com.squareup.moshi:moshi-kotlin:1.5.0"
compile 'io.reactivex.rxjava2:rxandroid:2.0.1'
compile 'io.reactivex.rxjava2:rxkotlin:2.2.0'
// dagger
implementation "com.google.dagger:dagger:2.25.4"
implementation "com.google.dagger:dagger-android:2.25.4"
implementation "com.google.dagger:dagger-android-support:2.25.4"
kapt "com.google.dagger:dagger-compiler:2.25.4"
kapt "com.google.dagger:dagger-android-processor:2.25.4"
kaptTest "com.google.dagger:dagger-compiler:2.25.4"
kaptAndroidTest "com.google.dagger:dagger-compiler:2.25.4"
kaptAndroidTestDebug "com.google.dagger:dagger-compiler:2.25.4"
implementation('com.github.bumptech.glide:glide:4.7.1') {
exclude group: 'com.android.support'
}
implementation('jp.wasabeef:glide-transformations:3.3.0'){
exclude group: 'com.android.support'
}
kapt 'com.github.bumptech.glide:compiler:4.5.0'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.61"
implementation "org.jetbrains.kotlin:kotlin-reflect:1.3.61"
// Kotlin Coroutines
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.3'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.3'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-rx2:1.3.3'
implementation 'com.jakewharton.timber:timber:4.6.0'
// RxRelay
implementation 'com.jakewharton.rxrelay3:rxrelay:3.0.0'
// for Test
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
androidTestImplementation 'androidx.test.espresso:espresso-contrib:3.2.0'
androidTestImplementation 'androidx.test.espresso:espresso-intents:3.2.0'
androidTestImplementation 'androidx.test.espresso:espresso-web:3.2.0'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test:rules:1.2.0'
testCompile 'org.powermock:powermock-api-mockito2:1.7.3'
testCompile 'org.powermock:powermock-module-junit4:1.7.3'
testCompile 'org.mockito:mockito-core:2.19.0'
androidTestCompile 'org.mockito:mockito-android:2.19.0'
compile 'com.ethanhua:skeleton:1.0.0'
//flexbox
implementation 'com.google.android:flexbox:1.0.0'
// runtime permission
implementation "com.github.hotchemi:permissionsdispatcher:3.3.1"
kapt "com.github.hotchemi:permissionsdispatcher-processor:3.3.1"
// JTS
implementation 'org.locationtech.jts:jts-core:1.17.1'
// デバッグ用
debugImplementation 'com.facebook.stetho:stetho:1.5.1'
def nav_version = "2.3.3"
// Java language implementation
implementation "androidx.navigation:navigation-fragment:$nav_version"
implementation "androidx.navigation:navigation-ui:$nav_version"
// Kotlin
implementation "androidx.navigation:navigation-fragment-ktx:$nav_version"
implementation "androidx.navigation:navigation-ui-ktx:$nav_version"
// Feature module Support
implementation "androidx.navigation:navigation-dynamic-features-fragment:$nav_version"
// Testing Navigation
androidTestImplementation "androidx.navigation:navigation-testing:$nav_version"
// Jetpack Compose Integration
implementation "androidx.navigation:navigation-compose:1.0.0-alpha05"
}
Could you please tell me how to solve this problem.
Thanks
[1]: https://developer.android.com/guide/navigation/navigation-getting-started?hl=ja
After adding below line in app gradle
implementation 'com.google.firebase:firebase-crashlytics:17.1.1'
I am getting following error when i build apk
More than one file was found with OS independent path 'okhttp3/internal/publicsuffix/publicsuffixes.gz'
Here are my gradle dependencies
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'androidx.recyclerview:recyclerview:1.0.0'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'com.google.android.material:material:1.1.0-beta01'
implementation "com.android.volley:volley:1.1.1"
implementation('org.apache.httpcomponents:httpmime:4.3.6') {
exclude module: 'httpclient'
}
implementation 'org.apache.httpcomponents:httpclient-android:4.3.5'
implementation "com.github.bumptech.glide:glide:4.9.0"
api 'com.theartofdev.edmodo:android-image-cropper:2.8.0'
implementation 'com.facebook.shimmer:shimmer:0.5.0#aar'
implementation 'com.google.android.libraries.places:places:2.0.0'
implementation 'com.google.firebase:firebase-analytics:17.4.4'
implementation 'androidx.biometric:biometric:1.0.1'
implementation 'com.google.firebase:firebase-messaging:20.1.5'
implementation 'android.arch.work:work-runtime:1.0.1'
implementation 'androidx.multidex:multidex:2.0.0'
implementation 'com.github.tcking:giraffecompressor:0.1.4'
implementation 'com.google.android.exoplayer:exoplayer-core:2.10.5'
implementation 'com.google.android.exoplayer:exoplayer-dash:2.10.5'
implementation 'com.google.android.exoplayer:exoplayer-ui:2.10.5'
implementation 'com.google.android.exoplayer:exoplayer-hls:2.10.5'
implementation 'com.google.android.exoplayer:exoplayer-smoothstreaming:2.10.5'
implementation project(path: ':mosambeelib')
implementation 'com.google.android.play:core:1.7.3'
implementation 'com.google.firebase:firebase-crashlytics:17.1.1'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.2.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
implementation project(path: ':aeps')
implementation project(path: ':bbps')
implementation project(path: ':dmt')
implementation project(path: ':razorpay-android-3.8.8')
}
apply plugin: 'com.google.gms.google-services'
apply plugin: 'com.google.firebase.crashlytics'
When i tried to see packages from project tree i can see double files in okhttp3 packages.
Thanks in advance.Any help will be appreciated.
I opened an old Android project and I fixed most of the errors and right now I have just one which appears only on Android 10 devices:
java.lang.RuntimeException: Unable to start activity ComponentInfo{}: android.view.InflateException: Binary XML file line #17 in :layout/abc_screen_simple: Binary XML file line #17 in :layout/abc_screen_simple: Error inflating class androidx.appcompat.widget.FitWindowsLinearLayout
I found some tips about upgrading calligraphy and viewpump, but these dependencies are not included in my project and adding them does not solve the problem either.
Here are my dependencies:
implementation 'androidx.appcompat:appcompat:1.3.0-alpha01'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.preference:preference:1.1.1'
implementation 'com.google.android.material:material:1.2.0'
implementation 'androidx.recyclerview:recyclerview:1.1.0'
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
implementation 'androidx.legacy:legacy-support-v13:1.0.0'
implementation 'com.google.firebase:firebase-core:17.4.4'
implementation 'com.google.firebase:firebase-messaging:20.2.4'
implementation 'androidx.multidex:multidex:2.0.1'
implementation('com.squareup.retrofit2:converter-simplexml:2.9.0') {
exclude module: 'stax-api'
}
implementation 'com.google.android.gms:play-services-location:17.0.0'
implementation 'com.google.android.gms:play-services-places:17.0.0'
implementation('org.simpleframework:simple-xml:2.7.1') {
exclude module: 'stax-api'
}
implementation 'com.github.PhilJay:MPAndroidChart:v3.0.3'
implementation 'com.bpodgursky:jbool_expressions:1.14'
implementation 'com.jakewharton:butterknife:10.2.2'
annotationProcessor 'com.jakewharton:butterknife-compiler:10.2.2'
implementation 'com.opencsv:opencsv:4.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'com.github.aakira:expandable-layout:1.4.2#aar+'
implementation 'com.google.code.gson:gson:2.8.5'
implementation 'com.github.bmarrdev:android-DecoView-charting:v1.2'
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
implementation('com.foursquare:foursquare-android-oauth:1.0.3') {
exclude group: 'com.google.android'
}
implementation group: 'com.squareup.okhttp3', name: 'logging-interceptor', version: '4.8.1'
implementation group: 'com.github.ganfra', name: 'material-spinner', version: '2.0.0'
implementation 'com.evernote:android-job:1.2.4'
implementation 'com.github.bmarrdev:android-DecoView-charting:v1.2'
implementation 'com.xw.repo:bubbleseekbar:3.15-lite'
implementation 'pl.edu.wat.wcy.iqpharma:shared:1.62'
implementation 'net.cachapa.expandablelayout:expandablelayout:2.9.2'
implementation group: 'com.github.ozodrukh', name: 'CircularReveal', version: '2.0.1'
implementation group: 'com.mikepenz', name: 'iconics-core', version: '3.2.1'
implementation group: 'com.mikepenz', name: 'material-design-iconic-typeface', version: '2.2.0.5'
implementation group: 'com.mikepenz', name: 'fontawesome-typeface', version: '5.3.1.1'
implementation 'com.rengwuxian.materialedittext:library:2.1.4'
implementation 'com.andrognito.pinlockview:pinlockview:2.1.0'
implementation 'io.github.inflationx:calligraphy3:3.1.1'
implementation 'io.github.inflationx:viewpump:2.0.3'
I found the answer to the problem. I was using font awesome (com.mikepenz) and that is why it did not work:
IconicsContextWrapper.wrap(newBase)
I am facing some issue regarding the build. I am trying to integrate the google photos api in my app. So, I added the below dependency:
implementation 'com.google.photos.library:google-photos-library-client:1.3.0'
After that, I am facing build issue due to some conflict:
ERROR: In project 'app' a resolved Google Play services library dependency depends on another at an exact version (e.g. "[1.16.
1]", but isn't being resolved to that version. Behavior exhibited by the library will be unknown.
Dependency failing: io.grpc:grpc-okhttp:1.16.1 -> io.grpc:grpc-core#[1.16.1], but grpc-core version was 1.21.0
Here I am posting all the dependencies:
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:28.1.1'
implementation 'com.android.support:support-v4:28.1.1'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.google.firebase:firebase-core:16.0.9'
implementation 'com.crashlytics.sdk.android:crashlytics:2.10.1'
implementation 'com.firebaseui:firebase-ui:4.3.2'
implementation 'com.google.firebase:firebase-messaging:18.0.0'
// implementation 'com.google.firebase:firebase-database:17.0.0'
implementation 'com.squareup.retrofit2:retrofit:2.4.0'
implementation 'com.android.volley:volley:1.1.1'
implementation 'com.ncorti:slidetoact:0.3.0'
implementation 'com.google.android.gms:play-services-location:16.0.0'
implementation 'de.hdodenhof:circleimageview:3.0.0'
implementation 'com.google.android.gms:play-services-maps:16.1.0'
implementation 'com.google.android.gms:play-services-places:16.1.0'
implementation 'com.google.android.gms:play-services-drive:16.1.0'
implementation 'com.google.android.material:material:1.0.0'
implementation 'com.amulyakhare:com.amulyakhare.textdrawable:1.0.1'
implementation 'com.mikepenz:materialdrawer:6.1.1'
implementation 'com.akexorcist:googledirectionlibrary:1.1.1'
implementation 'com.roughike:bottom-bar:2.3.1'
implementation 'com.google.api-client:google-api-client-android:1.23.0' exclude module: 'httpclient'
implementation 'org.greenrobot:eventbus:3.1.1'
implementation 'com.google.http-client:google-http-client-gson:1.23.0' exclude module: 'httpclient'
implementation 'com.google.android.gms:play-services-auth:16.0.1'
implementation 'com.google.android.gms:play-services-vision:17.0.2'
implementation 'com.google.photos.library:google-photos-library-client:1.3.0'
// JSON Parsing
implementation 'com.google.code.gson:gson:2.8.2'
implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'com.github.vipulasri:timelineview:1.0.6'
implementation 'com.jakewharton:butterknife:8.8.1'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'com.seatgeek:placesautocomplete:0.3-SNAPSHOT'
implementation 'com.tbuonomo.andrui:viewpagerdotsindicator:2.1.2'
implementation('com.google.apis:google-api-services-drive:v3-rev136-1.25.0') {
exclude group: 'org.apache.httpcomponents'
}
implementation('android.arch.work:work-runtime:1.0.0-alpha11') {
exclude group: 'com.google.guava', module: 'listenablefuture'
}
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.google.android.gms:play-services-plus:16.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support:support-vector-drawable:28.0.0'
implementation 'com.android.support:recyclerview-v7:28.0.0'
implementation 'com.google.apis:google-api-services-classroom:v1-rev135-1.23.0'
implementation 'com.google.android.gms:play-services-identity:16.0.0'
implementation 'com.android.support:multidex:1.0.3'
implementation 'com.robertlevonyan.view:MaterialChipView:1.2.5'
implementation 'com.google.apis:google-api-services-calendar:v3-rev305-1.23.0'
implementation 'com.aurelhubert:ahbottomnavigation:2.3.4'
implementation 'us.belka:androidtoggleswitch:1.2.2'
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'
implementation "org.igniterealtime.smack:smack-tcp:4.1.0"
// Optional for XMPPTCPConnection
implementation "org.igniterealtime.smack:smack-android-extensions:4.1.0"
}
apply plugin: 'com.google.gms.google-services'
When I run my Application it returns this error By searching ,I realised that I have to change dependency in the gradle file but I don't know what to change . This is my build.gradle file :
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
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.1.1'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
implementation 'com.android.support:support-v4:27.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'
implementation 'com.github.sundeepk:compact-calendar-view:1.9.1'
implementation 'com.mcxiaoke.volley:library-aar:1.0.0'
implementation 'com.android.support:cardview-v7:27.1.1'
implementation 'com.google.android.gms:play-services-location:10.2.4'
implementation 'com.android.support.constraint:constraint-layout:1.0.0-beta1'
implementation 'com.android.volley:volley:1.0.0'
implementation 'com.jakewharton:butterknife:8.5.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.5.1'
}
FYI
implementation 'com.mcxiaoke.volley:library-aar:1.0.0' is DEPRECATED
Remove dependencies of implementation 'com.mcxiaoke.volley:library-aar:1.0.0' from your Build.Gradle
Than Clean-Re-Build-Run your project
EDIT
Latest version is compile 'com.android.volley:volley:1.1.1'
Just exclude volley like below I did and it will work
implementation ('com.google.android.libraries.places:places:2.1.0'){
exclude group: 'com.android.volley'
}