Resolve problem Can’t determine type for tag macro name

black Angel11
Jun 29, 2023

Hello guys,

Today we are going to talk about a problem that some are facing after android studio
After creating your first project on android studio
After writing the code, when you run the program, you will see this message

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

let’s solve problem:-

1-go to Gradle Scripts

2-click on build-gradle (module:xxx.app)

3- change implementation ‘androidx.appcompat:appcompat:1.6.1’ to >>>> implementation ‘androidx.appcompat:appcompat:1.4.1’

4-change implementation ‘com.google.android.material:material:1.9.0’ to >>> implementation ‘com.google.android.material:material:1.6.0’

5-change implementation ‘androidx.navigation:navigation-fragment:2.6.0’ to >>> implementation ‘androidx.navigation:navigation-fragment:2.5.0’

6-change implementation ‘androidx.navigation:navigation-ui:2.6.0’ to >>> implementation ‘androidx.navigation:navigation-ui:2.5.0’

7-press on sync now

8- run

as you see your emulator will open and your application run and it build SUCCESSFUL

poc video:-

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

black Angel11
black Angel11

Written by black Angel11

Senior peneteration tester | Security Researcher | Bug Bounty Hunter

Responses (3)

Write a response

work for me , thanks

--

Thank you very much it worked i did the changes you have mentioned for similar codes only i.e 3 and 4 steps

--

I meet the same issue, but my build.gradle file do not have these codes you mentioned 3 ~ 6

--