# android

Sergio Casero

12/11/2018, 10:15 AM
Hi guys, if you have any issues when you are migrating to AndroidX, (remember that XMLs crash in runtime), you could use this linux command:
Copy code
grep -rnw '.' -e ''
It returns each ocurrency, with the file and the line
Copy code
./layout/activity_new_incident.xml:33:    <
(edited) I don't know if we can improve the command, moving into a script (in order to add it to CI or whatever) If anyone have any suggestions, feel free to post any updates -> PD: I know this is an easy command, it just for sharing 🙂
👍 4
👍🏾 9


12/12/2018, 10:25 AM
Little suggestion: I ran it on top of my multi-module build and I was getting a lot of hits from files inside the /build folders of the different modules. Just added an extra grep at the end to only get hits from src folder 🙂
grep -rnw '.' -e '' | grep "/src/"
😍 1