I wished to make floating label type of edit text. So I added this under dependencies:
implementation 'com.android.support:design:28.0.0'
Now, I am getting this error under Render Problem:
Render Problem
Failed to find style 'chipIconSize' in current theme
The above error is shown in the xml preview.
This is the dependency section in build gradle(module app) :
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
//noinspection GradleCompatible
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
//noinspection GradleCompatible
implementation 'com.google.firebase:firebase-database:16.0.3'
implementation 'com.google.android.gms:play-services-location:16.0.0'
// implementation 'com.google.firebase:firebase-core:16.0.4'
implementation 'com.google.firebase:firebase-messaging:17.3.3'
implementation 'com.google.firebase:firebase-auth:16.0.4'
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:cardview-v7:28.0.0'
implementation 'com.android.support:recyclerview-v7:28.0.0'
}
The logcat shows the following error and warning under Java compiler:
The app gradle file must have a dependency on com.google.firebase:firebase-core for Firebase services to work as intended.
java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: AAPT2 error: check logs for details
How can I resolve the error?
The app gradle file must have a dependency on
com.google.firebase:firebase-core for Firebase services to work as
intended.
Add :
implementation 'com.google.firebase:firebase-core:16.0.4'
To your build.gradle dependencies.
For the :
Failed to find style 'chipIconSize' in current theme
It seems liek you'll need to add:
implementation 'com.google.android.material:material:1.0.0'
To support that attribute from material design or simply, remove it.
Check this link: https://material.io/develop/android/docs/getting-started/
Related
I'm following the tutorial https://www.youtube.com/watch?v=X5AOrAhyrkg&list=PLRRNzqzbPLd8Qldg1J3LFesfXW9hWM_t4&index=3&t=0s
But when I implement the library 'me.zhanghai.android.materialprogressbar:library:1.6.1' it causes some error.
I did take a look at Android Material and appcompat Manifest merger failed but when I try that solution on It doesn't work for me. I know that I'm using the latest version of AndroidX which is the problem. But I haven't figured it out yet.
implementation fileTree(dir: 'libs', include: ['*.jar'])
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:recyclerview-v7:28.0.0'
implementation 'me.zhanghai.android.materialprogressbar:library:1.6.1'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
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'
}
So I hope to find a solution
This is what I encountered previously with third party libraries. This issue occurs when you are currently migrated to Androidx and the third party lib (in your case, 'me.zhanghai.android.materialprogressbar:library:1.6.1') is still using android support and it will clash causing the merge dex error.
I don't think if this will help, but do try adding this.
('me.zhanghai.android.materialprogressbar:library:1.6.1'){
exclude group: "com.android.support"
}
If it doesn't, you might have to post your issue on their github page and see if they can promise u an answer.
I've been trying to add the design library but everytime i do it i get this unable to merge dex error
i've tried using different versions of SDK's already and other design versions but it dosen't seem to be working
Here is an image of the error:
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:26.0.1'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.android.support:support-v4:26.0.1'
compile 'com.android.support:design:26.0.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.clans:fab:1.6.4'
implementation 'com.github.bumptech.glide:glide:4.8.0'
implementation 'com.theartofdev.edmodo:android-image-cropper:2.6.0'
implementation 'de.hdodenhof:circleimageview:2.2.0'
implementation 'com.rengwuxian.materialedittext:library:2.1.4'
implementation 'com.android.support:recyclerview-v7:26.0.1'
implementation 'id.zelory:compressor:2.0.0'
implementation 'com.astuetz:pagerslidingtabstrip:1.0.1'
compile 'com.github.javiersantos:BottomDialogs:1.2.1'
compile 'com.github.mancj:SlideUp-Android:1.0-beta'
compile 'com.github.zcweng:switch-button:0.0.3#aar'
compile 'com.firebaseui:firebase-ui-database:0.4.1'
implementation 'com.google.firebase:firebase-database:11.8.0'
implementation 'com.google.firebase:firebase-auth:11.8.0'
implementation 'com.google.firebase:firebase-core:11.8.0'
implementation 'com.google.firebase:firebase-storage:11.8.0'
}
Sorry for such messy dependencies but i've been trying everything to get this fixed but nothing because i need the design library
I got the same issue and I found the docs that work for me.
Add some config to app/build.gradle:
android {
defaultConfig {
...
multiDexEnabled true
}
...
}
dependencies {
compile 'com.android.support:multidex:1.0.3'
}
I have to migrate my project to AndroidX to support a certain third part library but when I try to migrate using Android Studio provided tool through Refactor > Migrate to AndroidX I always get this error
ERROR: Failed to resolve: cardview Affected Modules: app
here are my dependencies:
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'androidx.appcompat:appcompat:1.1.0-alpha02'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.1.2-alpha02'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0-alpha02'
implementation 'androidx.recyclerview:recyclerview:1.1.0-alpha02'
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'com.google.android.material:material:1.0.0'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'com.synnapps:carouselview:0.1.5'
implementation 'com.amitshekhar.android:android-networking:1.0.2'
implementation 'com.squareup.picasso:picasso:2.3.2'
implementation 'de.hdodenhof:circleimageview:2.2.0'
implementation 'com.thoughtbot:expandablerecyclerview:1.3'
implementation 'com.robertlevonyan.view:MaterialChipView:1.2.5'
implementation 'com.github.tcking:giraffeplayer2:0.1.19-lazyLoad'
implementation 'com.github.faruktoptas:FancyShowCaseView:1.1.0'
implementation 'com.github.sundeepk:compact-calendar-view:3.0.0'
implementation 'com.github.cdflynn:turn-layout-manager:v1.2'
implementation 'com.github.takusemba:multisnaprecyclerview:1.3.3'
implementation 'com.ramotion.cardslider:card-slider:0.3.0'
implementation 'com.ramotion.circlemenu:circle-menu:0.3.2'
// implementation 'com.github.halilozercan:BetterVideoPlayer:1.2.alpha1'
implementation 'com.github.ybq:Android-SpinKit:1.1.0'
implementation 'com.budiyev.android:circular-progress-bar:1.2.2'
implementation 'com.github.GrenderG:Toasty:1.3.1'
implementation 'fm.jiecao:jiecaovideoplayer:5.7'
implementation 'com.github.cdflynn:turn-layout-manager:v1.2'
implementation 'io.github.yavski:fab-speed-dial:1.0.6'
implementation 'com.github.yalantis:ucrop:2.2.2'
//animation library
implementation 'com.daimajia.easing:library:2.0#aar'
implementation 'com.daimajia.androidanimations:library:2.3#aar'
// implementation 'com.facebook.android:account-kit-sdk:4.37.0'
// implementation 'com.google.android.gms:play-services-auth:16.0.1'
}
Migrating to android x has weird bugs updating your android studio to newest version might solve it
also you can set android.enablejetifier to false in gradle.properties and you won't see this error but you should use androidx libraries
How to install lettuce library on Android studio in Gradle files ?
https://lettuce.io
is there any solution to compile the library ?
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.0.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.2'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'com.google.android.material:material:1.0.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.1.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0’
}
In the lettuce's getting started section there is a section called For Gradle Users on how to add the library from gradle. I think just adding:
implementation 'io.lettuce:lettuce-core:5.1.3.RELEASE'
would work. You must check if you must adjust your current dependencies and/or modify your proguard rules.
Hope I helped.
I made a app find nearby place but i get this error
> Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.common.internal.zzbq" on path: DexPathList[[zip file "/data/app/vapelit.unikomapps.com.vapelitfinal-1/base.apk"
Here my gradle
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.google.android.gms:play-services-maps:16.0.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'
compile 'com.synnapps:carouselview:0.1.5'
compile 'com.android.support:multidex:1.0.0'
implementation 'com.google.android.gms:play-services:12.0.1'
implementation 'com.google.android.gms:play-services-maps:15.0.0'
implementation 'com.google.android.gms:play-services-auth:15.0.0'
implementation 'com.google.android.gms:play-services-location:15.0.0'
}## Heading ##
You need to implement this :
implementation 'com.google.android.gms:play-services-maps:16.0.0'
implementation 'com.google.android.gms:play-services-auth:16.0.0'
implementation 'com.google.android.gms:play-services-location:16.0.0'
and add this in your gradle :
configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
def requested = details.requested
if (requested.group == 'com.android.support') {
if (!requested.name.startsWith("multidex")) {
details.useVersion '28.0.0'
}
}
}
}
and in your gradle you have to delete this :
implementation 'com.google.android.gms:play-services-maps:15.0.0'
and keep only this:
implementation 'com.google.android.gms:play-services-maps:16.0.0'
Happy Coding ;)
#Agam
In your gradle code your are using google map library with different version. So remove old version library and make sure you are using same version of all google play service library which are related to each other.
Try to update below line in your gradle file and remove google play service library which include all google play services file under one gradle library. For mode details about google play service visit on Google Play Service Version with Table 1:
implementation 'com.synnapps:carouselview:0.1.5'
implementation 'com.android.support:multidex:1.0.3'
//implementation 'com.google.android.gms:play-services:12.0.1'
implementation 'com.google.android.gms:play-services-maps:16.0.0'
implementation 'com.google.android.gms:play-services-auth:16.0.1'
implementation 'com.google.android.gms:play-services-location:16.0.0'
I hope you will resolve your problem.