The package must have at least one . separator [Android Studio]


If you see the below error message when trying to configure a new Android Project in Android Studio IDE, then you need to make sure that the Package Name is chosen correctly.

The package must have at least one '.' separator

Make sure that the package name has at least one dot in it. example com.code2care, but if you know how package names are chosen then it should have 2 dots and 3 words in it,

Syntax: domainextension.domain.appname
Examples:
  • com.code2care.myappname
  • org.code2care.gamename
  • com.facebook.katana: This is Facebook App for Android Package name
  • com.android.chrome: This is for Android Chrome Browser

So the 1st part of the package name is the domain e.g. com, org, net e.t.c, the 2nd part is your company name, 3rd part is the app name.

Note: As this will be your java package - it should only contain lower case text per convention.

Android Studio - The package must have at least one . separator


Have Questions? Post them here!





Recent Posts:
Hello there!,

You are using AdBlocker!

I am an independent developer trying to help fellow developers and students to resolve issues faced on a day-to-day basis, we 'Code to Care' . There is a lot of expenses involved in hosting and managing a website that's the reason we have ads.

A humble request to you to disable adBlocker on Code2care.org and support us pay our bills.

Thanks,
Cod2ecare - Line's of code for change.

To see contents reload page after unblocking
Code2care is an initiative to publish and share varied knowledge in programming and technical areas gathered during day-to-day learnings and development activities.

Students and Software Developers can leverage this portal to find solutions to their various queries without re-inventing the wheel by referring to our easy to understand posts. Technical posts might include Learnings, Video Tutorials, Code Snippets, How Tos, Blogs, Articles, etc.