Resolve problem Can’t determine type for tag macro name
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:-