chucker icon indicating copy to clipboard operation
chucker copied to clipboard

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

Open Namptiter opened this issue 1 year ago • 8 comments

:writing_hand: 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

Namptiter avatar Apr 17 '23 08:04 Namptiter

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

cortinico avatar Apr 17 '23 13:04 cortinico

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?

kanch231004 avatar Apr 26 '23 18:04 kanch231004

@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 avatar Apr 26 '23 22:04 cortinico

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?

cortinico avatar Apr 30 '23 18:04 cortinico

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.

kanch231004 avatar Apr 30 '23 18:04 kanch231004

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.

cortinico avatar Apr 30 '23 18:04 cortinico

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.

ashish07akg avatar Aug 24 '23 08:08 ashish07akg

Getting same issue

surajsahani avatar Dec 02 '23 06:12 surajsahani