Wilson Lesley
Wilson Lesley

Reputation: 53

Suddenly can't determine type for tag error

Today I suddenly got error:

Can't determine type for tag '<macro name="m3_comp_bottom_app_bar_container_color">?attr/colorSurface</macro>'

Out of nowhere. Invalidate cache & restart & clean does not work. Checkout to old version which 100% worked before, does not work.

Also already tried the solution from other thread:

implementation 'androidx.appcompat:appcompat:1.5.1'    
implementation 'com.google.android.material:material:1.7.0'

Changed into this & clean & rebuild does not work, same error.

AndroidStudio Version is Bumblebee 2021.1.1 targetSDKVersion is 31, everything's fine until just now.

Thank you

Upvotes: 1

Views: 1217

Answers (2)

Kartik Agarwal
Kartik Agarwal

Reputation: 1413

I also ran into the same issue. I resolved it using the following combination in Gradle

implementation 'androidx.appcompat:appcompat:1.4.2'
implementation 'com.google.android.material:material:1.6.0'

Also, I was using this version of KOTLIN

kotlin_version = '1.5.21'

AndroidStudio Version is Bumblebee 2021.1.1 | Patch 3

Upvotes: 1

Wilson Lesley
Wilson Lesley

Reputation: 53

I fixed this problem by: Update AGP to 7.2.0 Gradle to 7.3.3 appcompat v.1.5.0 material design 1.7.0

Updating AGP seems a must for my case

Upvotes: 1

Related Questions