Day 1 - Android devlopment

Sorry for being late on my first blog after starting a new series.

I learned about basic android development. I am currently studying Contacts Provider.

I learned how to setup Intellij IDE for Android development with Java. It was quite painful and slow process due to large downloads, slow internet speed and slow build speed. And of course errors which I haven't seen in my life.

Errors

  • Compatibility issues of the project sdk I am using with the Gradle compileSdk and targetSdk

  • Compatibility issues of project sdk with gradle jvm version

  • Android emulator not starting

Solutions

  • Set the project sdk to Android API 31 Platform (Amazon Corretto version 11.0.24)

  • In build.gradle (Module), set the compileSdk 33 and targetSdk 33

  • In build.gradle (Project), set the com.android.application and com.android.library version to 7.4.0-beta02

  • In gradle-wrapper.properties set distributionUrl to https\://services.gradle.org/distributions/gradle-7.5-bin.zip

  • Reinstalled `VanillaIceCream` on the virtual device in emulator and the emulator also started working.

After doing all this gradle build was finally successful and the virtual device was up and running.

However the android dev process was irritating due to low network speed along with unknown errors I got on first try.

Now I am ready to explore deeper into the realms of Android development. I even created my first android app. A very simple app with a button and when you click on it the text inside of a TextView is changed.

0
Subscribe to my newsletter

Read articles from Utkarsh Swaroop Shrivastava directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Utkarsh Swaroop Shrivastava
Utkarsh Swaroop Shrivastava