Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Namptiter opened this issue Apr 17, 2023 · 8 comments

Comments

@Namptiter
Copy link

Namptiter commented Apr 17, 2023

✍️ Describe the bug

I got this exception when setup Checker:
Can't determine type for tag '?attr/colorSurface'
I think it depend on version of com.google.android.material : 1.7.0

@cortinico
Copy link
Member

Sorry but this is too little information for us to reproduce.

@kanch231004
Copy link

We are using material version 1.0.0 in our current project so getting this error. How to fix it? Not able to match to material version 1.8.0 which chucker is using as it is breaking other things. What is the alternative for this?

@cortinico
Copy link
Member

@kanch231004 doing something like this would help:

debugImplementation("com.github.chuckerteam.chucker:library:<version>") {
    exclude group: "com.google.android.material", module: "material"
}

as it will exclude the transitive dependency on MDC that Chucker is adding

@cortinico
Copy link
Member

Could not find method com.github.chuckerteam.chucker:library:3.5.2() for arguments [build_4zas3xewxvwlhl95ah6tj79nb$_run_closure11$_closure87@625a2fb3] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

That's a problem in your build file. Can you share it? Also is it a build.gradle or a build.gradle.kts?

@kanch231004
Copy link

Yes right,

Getting this error as we are using material 1.0.0 and after excluding I think material component versions used by chucker are not found. How can I continue using my material component version and also resolve this UI issue?

Android resource linking failed

 ERROR:/Users/kanchan.pal/.gradle/caches/transforms-3/97e1310236b3ac4afdb7e58ecaa2a718/transformed/jetified-library-3.5.2/res/values/values.xml:96:5-108:13: AAPT: error: style attribute 'attr/colorSurface (aka com.flipkart.android:attr/colorSurface)' not found.
     
 ERROR:/Users/kanchan.pal/.gradle/caches/transforms-3/97e1310236b3ac4afdb7e58ecaa2a718/transformed/jetified-library-3.5.2/res/values/values.xml:96:5-108:13: AAPT: error: style attribute 'attr/colorOnPrimary (aka com.flipkart.android:attr/colorOnPrimary)' not found.
     
 ERROR:/Users/kanchan.pal/.gradle/caches/transforms-3/97e1310236b3ac4afdb7e58ecaa2a718/transformed/jetified-library-3.5.2/res/values/values.xml:96:5-108:13: AAPT: error: style attribute 'attr/colorOnSecondary (aka com.flipkart.android:attr/colorOnSecondary)' not found.
     
 ERROR:/Users/kanchan.pal/.gradle/caches/transforms-3/97e1310236b3ac4afdb7e58ecaa2a718/transformed/jetified-library-3.5.2/res/values/values.xml:96:5-108:13: AAPT: error: style attribute 'attr/colorOnBackground (aka com.flipkart.android:attr/colorOnBackground)' not found.
     
 ERROR:/Users/kanchan.pal/.gradle/caches/transforms-3/97e1310236b3ac4afdb7e58ecaa2a718/transformed/jetified-library-3.5.2/res/values/values.xml:96:5-108:13: AAPT: error: style attribute 'attr/colorOnSurface (aka com.flipkart.android:attr/colorOnSurface)' not found.

@cortinico
Copy link
Member

How can I continue using my material component version and also resolve this UI issue?

Sorry this is not possible. You should update the version of Material you use. Chucker needs it to render complex UI and we don't support down till material 1.0.0.

An alternative for you is to use a older version of Chucker, like 3.2.0 or so.

@ashish07akg
Copy link

ashish07akg commented Aug 24, 2023

Hi same issue i am facing i have updated material and app compact both after that i am facing linking issue .
i have tried exclude option as well but not got success. Please [help]([u
Screenshot 2023-08-24 at 2 01 04 PM

NOTE-> previously we are using chukker 3.5.2 with sdk 32 its working fine i have upgraded sdk version 32 to 33 so that we need to update the chukker version 4.0 after upgrading chukker we are getting macro tag error.

@surajsahani
Copy link

Getting same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants