Android Studio: error package name is not set to a valid package name
I want a new page create Android Studio by using the activity Gallery. Here comes a naming error, which prevents me from creating the page.
Error message: package name is not set to a valid package name
When you create a new Android page (activity) in Android Studio error message indicates that the package name is not valid.
Solution:
You have to change the view of your project on packages.
Go to packages: In the project window, a changing field, with which you can switch the view on packages is up.
Then if you click on the folder: layout-> right mouse button >new > activity-> Gallery
Then in the dialog: new Android activity: Add an activity to mobile >on empty activity
After that, no error is more available in the dialog view.
|