We already have our development environment installed, right? Then let’s create our first Android project now.

1 Open Android Studio

2 Start a new Android Studio project

Some fields should be filled now. You can keep the default values or make your own choices.

2.1 Configure your new project

  • Application Name: Hello World
  • Company Domain: marceljm.com

2.2 Select the form factors your app will run on

  • Phone and Tablet
  • Minimum SDK: API 15: Android 4.0.3 (IceCreamSandwich)

2.3 Add an Activity to Mobile

  • Empty Activity

2.4 Customize the Activity

  • Activity Name: MainActivity
  • Layout Name: activity_main

 

It’s done.

You created your first Android project and I expect that no error has been shown.

Well, unfortunately I didn’t have the same luck…

“Gradle project sync completed with some errors.”

In my case the problem was caused by the proxy that for some reason doesn’t sync with repositories https. To force http usage, just open build.gradle file and replace the two occurrences of

repositories {
	jcenter()
}

by

repositories {
	maven { url "http://jcenter.bintray.com" }
	jcenter()
}

After that, I tried to sync again and I had no error messages. Success!

Our Android project is almost ready to run. And we will do that in the next post.