I can’t create second activity

Asked

Viewed 47 times

0

inserir a descrição da imagem aqui

I can not create a new activity in Android Studio, appears the message "Package name is not a Valid package name"

  • The message says your package is invalid. Do a test: put the package as: com.exemplo.meuapp

1 answer

0

Packages must have at least a ".". The package name you put "layout" does not have ".". You can use layout.project for example. , or any name that contains ".". On android, is advised to name packages, with an inverted domain name to identify who developed. for example: "br.com.microsoft" is a good package name, if microsoft had developed the app. In your case, it could be: "br.com.alexandrelima". These names are only package identifiers, are not linked to the need for existence of sites with the same name.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.