Style Base.Theme.AppCompat multiple implementation Android studio 3.1.1 - android

Since the last update I'm getting some error in my styles.xml
The error, more specifically, is
Cannot resolve symbol Base
Cannot resolve symbol Base.Theme
With a multiple implementations tooltip (on ctrl + click)
And those are the possible implementation it suggest to me.
I would have ignored this, since my app is compiling and running anyway, but this is causing some annoying problems with my preview rendering and I hate it (for example I can't click a preview element to go to the code).
I think the problem might be in some of my implementations any of them probably use an old version, but they are all updated and I don't really understand why it was working before.
Any idea of the problem? Here are my dependencies
dependencies {
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support:support-v4:27.1.1'
implementation fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('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:design:27.1.1'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation 'com.github.thorbenprimke:realm-recyclerview:0.9.25'
implementation 'com.google.android.gms:play-services-maps:12.0.1'
implementation 'com.google.android.gms:play-services-location:12.0.1'
implementation 'com.github.PhilJay:MPAndroidChart:v3.0.2'
implementation 'com.google.android.gms:play-services-vision:12.0.1'
implementation 'com.github.chrisbanes:PhotoView:2.0.0'
implementation 'com.google.code.gson:gson:2.8.2'
implementation 'com.squareup.okhttp3:okhttp:3.9.0'
implementation 'com.android.support:cardview-v7:27.1.1'
implementation 'com.android.support:recyclerview-v7:27.1.1'
implementation 'com.github.recruit-lifestyle:WaveSwipeRefreshLayout:1.6'
implementation 'nl.dionsegijn:konfetti:1.1.0'
implementation 'me.itangqi.waveloadingview:library:0.3.5'
implementation 'com.github.pratikbutani:MultiSelectSpinner:c3051c6922'
implementation 'com.github.BeppiMenozzi:TriStateToggleButton:1.1.4'
implementation 'com.android.support:multidex:1.0.3'
implementation 'com.crashlytics.sdk.android:crashlytics:2.9.1'
testImplementation 'junit:junit:4.12'
}
apply plugin: 'com.google.gms.google-services'

Try this downgrading dependencies of appcompact to 27.0.2
implementation 'com.android.support:appcompat-v7:27.0.2'

Related

Program type already present: android.support.v4.app.INotificationSideChannel$Stub$Proxy- unable to resolve this issue

I am trying to implement crashlitics in my android app but the problem is whenever i am running the app i am getting above error .kindly help me to get it resolved .
i also added multidex enabled true and i am using following below dependencies .
plz let me know the issue .
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
//noinspection GradleCompatible
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:support-media-compat:28.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'me.dm7.barcodescanner:zxing:1.9.8'
implementation 'com.android.support.constraint:constraint-layout:1.1.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 'com.github.johnkil.android-robototextview:robototextview:4.0.0'
implementation 'com.google.android.gms:play-services-ads:17.1.1'
// Check for v11.4.2 or higher
implementation 'com.google.firebase:firebase-core:17.1.0'
// (Recommended) Add Analytics
implementation 'com.google.firebase:firebase-analytics:17.1.0'
// Add dependency
implementation 'com.crashlytics.sdk.android:crashlytics:2.10.1'

Android Studio Manifest Merger failed with multiple error

after I finish making all the SDK settings for Android and try to compile it gives me the error of “Manifest merger failed with multiple errors”. I have added below dependency lib in gradle file. I'm trying to solve this issue from last 2 days but no any success
AndroidStudio 3.4
Kotlin 1.3.21
Gradle 5.4.1-all
Gradle:
dependencies {
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'
testImplementation 'junit:junit:4.12'
implementation 'com.android.support:multidex:1.0.3'
implementation 'com.wang.avi:library:2.1.3'
implementation 'com.sothree.slidinguppanel:library:3.3.1'
implementation 'com.squareup:seismic:1.0.2'
implementation 'com.github.bumptech.glide:glide:3.7.0'
implementation 'jp.wasabeef:blurry:2.1.0'
implementation 'com.nshmura:snappysmoothscroller:1.0.0'
implementation 'com.simplecityapps:recyclerview-fastscroll:1.0.16'
implementation 'org.jsoup:jsoup:1.9.2'
implementation 'com.squareup.okhttp:okhttp:2.7.5'
implementation 'com.getkeepsafe.taptargetview:taptargetview:1.9.1'
implementation 'com.sackcentury:shinebutton:0.1.7'
implementation project(':dialogs')
implementation 'com.google.firebase:firebase-ads:17.1.3'
implementation 'com.google.firebase:firebase-core:16.0.7'
implementation 'com.google.android.gms:play-services-auth:16.0.1'
implementation 'com.google.firebase:firebase-messaging:17.3.4'
implementation 'com.google.firebase:firebase-database:16.0.6'
implementation 'com.google.firebase:firebase-invites:16.1.0'
implementation 'com.google.firebase:firebase-storage:16.0.5'
implementation 'com.google.firebase:firebase-config:16.3.0'
implementation 'com.google.code.gson:gson:2.8.5'
implementation 'com.theartofdev.edmodo:android-image-cropper:2.6.0'
implementation 'com.jakewharton:butterknife:8.8.1'
kapt 'com.jakewharton:butterknife-compiler:8.8.1'
implementation 'com.github.takahirom.downloadable.calligraphy:downloadable-calligraphy:0.1.3'
implementation 'com.google.android:flexbox:1.0.0'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'com.squareup.retrofit2:retrofit:2.5.0'
implementation 'com.squareup.retrofit2:converter-gson:2.5.0'
implementation 'com.squareup.okhttp3:logging-interceptor:3.9.1'
implementation 'com.onesignal:OneSignal:[3.9.1, 3.99.99]'
}
I have used the above dependency in my project, but some of the libraries are a conflict with each other.
you can add one line below to XML Elements for telling to manifest merger your app manifest is highest priority manifest in app
tools:node="merge
please read this article for more information
hope this help

com.google.android.gms:play-services is not working

com.google.android.gms:play-services are giving errors, they were working fine, but when I pres the run button in the for testing purpose the these all libraries just vanish. I don't know what to do ??
dependencies {
implementation('com.mikepenz:materialdrawer:4.4.6#aar') {
transitive = true
}
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'
})
//noinspection GradleCotestApimpatible
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support:design:27.1.1'
implementation 'com.android.support:recyclerview-v7:27.1.1'
implementation 'com.google.code.gson:gson:2.8.0'
implementation 'com.squareup.picasso:picasso:2.5.2'
implementation 'com.mikepenz:google-material-typeface:2.1.2.1#aar'
implementation 'com.loopj.android:android-async-http:1.4.9'
implementation 'com.mikepenz:google-material-typeface:2.1.2.1#aar'
implementation 'com.nostra13.universalimageloader:universal-image-loader:1.9.4'
implementation 'com.theartofdev.edmodo:android-image-cropper:2.2.+'
implementation 'com.google.android.gms:play-services-analytics:16.0.6'
implementation 'com.google.firebase:firebase-ads:17.1.2'
implementation'com.google.firebase:firebase-messaging:17.3.4'
implementation 'com.android.support:cardview-v7:27.1.1'
testImplementation 'junit:junit:4.12'
implementation files('libs/gcm.jar')
implementation 'com.github.Commit451.YouTubeExtractor:youtubeextractor:2.1.0'
implementation 'com.itextpdf:itextpdf:5.1.1'
implementation 'de.hdodenhof:circleimageview:2.1.0'
implementation 'com.akexorcist:RoundCornerProgressBar:2.0.3'
implementation 'com.github.rtoshiro.fullscreenvideoview:fullscreenvideoview:1.1.2'
implementation 'com.mikhaellopez:circularprogressbar:1.1.1'
implementation 'com.android.support:multidex:1.0.3'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation 'in.gauriinfotech:commons:1.0.8'
implementation 'com.github.rey5137:material:1.2.2'
implementation 'com.facebook.android:facebook-android-sdk:[4,5)'
implementation files('libs/YouTubeAndroidPlayerApi.jar')
implementation 'com.squareup.okhttp:okhttp:2.5.0'
implementation 'com.shamanland:xdroid-toaster:0.0.5'
implementation 'com.github.bumptech.glide:glide:3.7.0'
implementation 'com.google.firebase:firebase-core:16.0.6'
implementation 'io.reactivex.rxjava2:rxjava:2.1.5'
implementation 'io.reactivex.rxjava2:rxandroid:2.0.1'
implementation 'com.daasuu:animateHorizontalProgressBar:0.2.4'
}
apply plugin: 'com.google.gms.google-services'
had the same issue then I tried every answer, clean the code, rebuild project with graddle, invalidate the cache and restart, checking the dependency > classpath 'com.google.gms:google-services:4.0.1' , these were the most populated suggestions. but none of them worked, then I check my network connection that was poor, due to a long time for downloading dependency either it timed out or gave the same error. please check your connection first and then apply these solutions.

dependency issue in android 3.1.3

dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:28.0.0-rc01'
implementation 'com.android.support.constraint:constraint-layout:1.1.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 'com.android.support:recyclerview-v7:28.0.0-rc01'
implementation 'com.android.support:design:28.0.0-rc01'been
}
I have error with regards to dependency in Android studio 3.1.3 for appcompat-v7:28.0.0-rc01 and even for rc02 similarly for com.android.support.constraint:constraint-layout:1.1.2 and 1.1.3 layout. how can I solve it?
dependency issues
build description
app file for build
Try using a lower version of appcompat like this:
implementation 'com.android.support:appcompat-v7:27.1.1'
Also remember to change sdkVersion to 27
I have these Dependencies so you can use any if you want and make sure to turn off the Offline Work in the Settings->Gradle to get it working.
I was searching for these errors when i came through that by disabling the Offline Work in Settings->Gradle you can get it sync without any errors.
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
//noinspection GradleCompatible
implementation 'com.android.support:appcompat-v7:28.0.0-alpha3'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
implementation 'com.android.support:design:28.0.0-rc01'
testImplementation 'junit:junit:4.12'
// google play services
implementation 'com.google.android.gms:play-services-maps:15.0.1'
implementation 'com.google.android.gms:play-services-location:15.0.1'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}
Regards

Program type already present: org.apache.commons.codec.BinaryDecoder

I am using some .jar files as Vuforia and apache for my application. When I compile the application,
I face with Program type already present: org.apache.commons.codec.BinaryDecoder and I do not know to fix it. I searched many times but could not found same example with me.
This is my dependencies:
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:26.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
implementation 'com.android.support:support-annotations:26.1.0'
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.android.support:design:26.1.0'
implementation files('src/main/java/Vuforia.jar')
implementation files('libs/mail.jar')
implementation files('libs/additionnal.jar')
implementation files('libs/activation.jar')
implementation files('libs/commons-io-2.6.jar')
implementation files('libs/commons-io-2.6-javadoc.jar')
implementation files('libs/commons-io-2.6-sources.jar')
implementation files('libs/commons-io-2.6-test-sources.jar')
implementation files('libs/commons-io-2.6-tests.jar')
implementation files('libs/commons-codec-1.11-javadoc.jar')
implementation files('libs/commons-codec-1.11-sources.jar')
implementation files('libs/commons-codec-1.11-test-sources.jar')
implementation files('libs/commons-codec-1.11-tests.jar')
implementation files('libs/commons-codec-1.11.jar')
implementation 'org.mnode.ical4j:ical4j:1.0.5'
implementation 'com.android.support:multidex:1.0.3'
}
Can you guys help me to fix problem?
Thank you
I experience the same error. I was using a jar which included:
implementation files('libs/commons-io-2.6.jar')
And in my app I too had included:
implementation files('libs/commons-io-2.6.jar')
So all I had to do was to remove that line from my app and not include the commons-io-2.6.jar file in my libs folder.
change:
implementation 'com.android.support:appcompat-v7:26.0.0'
to:
implementation 'com.android.support:appcompat-v7:26.1.0'
it might help

Categories

Resources