Project syncing error, while connecting firebase - android

Please Help
When I connect my project file with fireBase the following error comes up.
null
resource style/TextAppearance.Compat.Notification.Info (aka com.kangkan.developer.f_c_m:style/TextAppearance.Compat.Notification.Info) not found.
resource style/TextAppearance.Compat.Notification (aka com.kangkan.developer.f_c_m:style/TextAppearance.Compat.Notification) not found.
resource style/TextAppearance.Compat.Notification.Time (aka com.kangkan.developer.f_c_m:style/TextAppearance.Compat.Notification.Time) not found.
resource style/TextAppearance.Compat.Notification.Title (aka com.kangkan.developer.f_c_m:style/TextAppearance.Compat.Notification.Title) not found.
failed linking references.
The Screen Shot
R class also showed error
I've cleaned the project, invalidate caches/restart,
It's not gone, I am using the firebase core implementation 'com.google.firebase:firebase-core:16.0.1'

This can result in several reasons.
Make sure you are using an updated version of android-gradle-plugin
Make sure there are no dependency version clashed in build.gradle file.
Check whether your XML resources don't have errors.
Hope this helps!

Related

I have problem when i start android studio and rebuild project not work good

After Run Android Studio And Build Gradel I Have This Error And I Can't Fix This.
I'm Checked jdk instal And Sdk Instaletion But I Can't Find Way To Fix Error.
Cannot resolve class androidx.constraintlayout.widget.ConstraintLayout
ERROR:C:\Users\Sina\.gradle\caches\transforms-3\e0be1e4ebe8d827889716686ce55c5f3\transformed\material-1.4.0\res\layout\material_clock_display.xml:18: AAPT: error: attribute layout_constraintTop_toTopOf (aka com.example.sinasaadi:layout_constraintTop_toTopOf) not found.
ERROR:C:\Users\Sina\.gradle\caches\transforms-3\e0be1e4ebe8d827889716686ce55c5f3\transformed\material-1.4.0\res\layout\material_clock_period_toggle.xml:18: AAPT: error: attribute layout_constraintStart_toEndOf (aka com.example.sinasaadi:layout_constraintStart_toEndOf) not found.
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
ERROR:C:\Users\Sina\.gradle\caches\transforms-3\e0be1e4ebe8d827889716686ce55c5f3\transformed\material-1.4.0\res\layout\material_clock_display.xml:18: AAPT: error: attribute layout_constraintTop_toTopOf (aka com.example.sinasaadi:layout_constraintTop_toTopOf) not found.
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
enter image description here
In android studio go to file -> invalidate Caches. And try restarting studio.

Android resource linking failed that error appeared to me

I got this error when I am trying to run my app, so how to fix it ?
C:\Users\oem.gradle\caches\transforms-2\files-2.1\b29f469d834fe6ac53c0c0e264e4ef98\core-1.7.0\res\values\values.xml:105:5-114:25: AAPT: error: resource android:attr/lStar not found.
For those who have this issue in android change the version dependencies
ex implementation 'androidx.appcompat:appcompat:x.x.x'

gradle not coordinated with the project

I am using android studio version 4.1.3 and gradle version 6.8.3 . My target sdk version for the project is API 26.
After clicking on sync the project, the result seems have no problem but after clicking on run app, I have some errors. One of them says,
gradle-6.8.3\caches\transforms-3\71de35e86c45a332199eb23f9129d32f\transformed\material-1.4.0\res\values\values.xml:1316:-1327:11: AAPT: error: style attribute 'android:attr/dialogCornerRadius' not found
I have seen the Error:(9, 5) error: resource android:attr/dialogCornerRadius not found
But again the problem is not solved
I don't know what should I do?

Error to Build Gradle when I Updating sdk versions

I had faced following error when I update versions in Gradle:
C:\Users\03142\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\7e646e2ca904450b985ca981ac3ba677\res\values\values.xml
Error:(251, 5) error: duplicate value for resource 'attr/mode' with config ''.
Error:(251, 5) error: resource previously defined here.
How to Resolved it?
You have defined same resources for multiple times. Like you are using any module for your app but you initialled them multiple times in gradle file.

Gradle build fails after adding core ktx

When I add the core-ktx dependency to my app's build.gradle file, my gradle builds fail with the error message AAPT2 error: check logs for details
It furthermore tells that there are two attributes missing in values.xml. This file is located under the .gradle folder inside my user directory.
when I add android.enableAAPT2=false to my project properties, the build fails due to that option being deprecated so I want to avoid that.
The error descriptions of the two resource not found errors are the following:
error: resource android:attr/fontVariationSettings not found.
Message{kind=ERROR, text=error: resource android:attr/fontVariationSettings not found., sources=[C:\Users\Marc.gradle\caches\transforms-1\files-1.1\appcompat-v7-26.1.0.aar\b6d4f8d4d33639ae469eaec181e24176\res\values\values.xml], original message=, tool name=Optional.of(AAPT)}
When I add different ktx libraries everything is just fine. It builds properly and I can even import androidx.collections! How can I add the core-ktx library without any errors?
You are using 'AndroidX' which is only available if you set your compileSdkVersion 'android-P' and targetSdkVersion 28. Then in AndroidStudio go to Refactor -> Refactor to AndroidX and everything should work fine now :).

Categories

Resources