Common Mistakes as a beginner Android Developer

Photo by Erik Mclean on Unsplash

Error in XML Code

My day was taken up by this interesting aspect. As I attempted to use the custom Poppins font in it, an issue arose that disturbed my inner peace. I downloaded the font successfully and imported it to the font folder. This font appeared on my preview screen but didn’t appear in the emulator when I attempted to run the app

tools:text="Developers Info"
android:text="Developers Info"

The theme in Manifest File

The text input layout would always fail for me with an error like Error inflating class com.google.android.material.textfield.TextInputLayout. I have no idea that it was due to a mistaken theme in the manifest file.

<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> 
<style name="AppTheme" parent="@style/Theme.MaterialComponents.Light.NoActionBar.Bridge">

Learnings from the GitHub

When we started working on our project together, we used GitHub. As we’re new to it, we decided to push our code to a branch. One of my friends tried to pull the project, and he was able to pull it successfully, but he never got the files. We have no idea what the mistake was, but we did everything correctly and it took us weeks to identify the problem. When you pull a project and it’s in a branch, you need to switch between branches. The command for it is like this:

git chechkout branch_name

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store