user642958
user642958

Reputation: 129

Android on Netbeans 6.9.1: Package name not valid

I am new to Android Development. Actually, I haven't started yet because I always get the error: "Package name not valid" when trying to create a new Project in Netbeans 6.9.1. I've installed Android SDK (path is set in NB) and Platforms are available. Does anyone know what I've done wrong or how I could solve my problem. I want to start soon.

Sincerely

Upvotes: 6

Views: 18945

Answers (3)

Tom Rutchik
Tom Rutchik

Reputation: 1702

Even though this is a pretty old topic, I'll add one more reason one why someone can get an invalid package name.

The package name cannot include a Java language keyword such as int, long, interface, etc. For example, "com.myDomain.myApp.interface" would not be a valid package name. However, "com.myDomain.myApp.interface_" is a valid package name.

Upvotes: 0

Alex
Alex

Reputation: 166

For creating a package use a dot, not a space, example:
android.bug not android bug

Upvotes: 15

Evan
Evan

Reputation: 456

It has to be in reverse DNS format (e.g. com.example). More info here.

Upvotes: 2

Related Questions