Edit the name of Aplicationid in android Studio

Asked

Viewed 2,331 times

0

Good afternoon,

I’m trying to publish an app on google play, but it turns out the following error:

Use a different package name. "com.example" is restricted.

I already changed (manually) the package name, but after I did this the following error appeared:

pkg: /data/local/tmp/nome do meu projeto(alterado)

Failure [INSTALL_FAILED_CONFLICTING_PROVIDER]"

I’m using Android Studio.

2 answers

1

A good tip (quick and easy) is to create a new package and move everything to this new package.

  • Redo the whole of the rename of your package, leave as was (com.examplo).

  • Create a new package, as you want (for example br.com.stackoverflow.brasil) inside the directory java:

Antigo

  • Now, move (holding and dragging) all the packages inside the com.exemplo to the br.com.stackoverflow.brasil and the Android Studio will automatically move all references:

Novo

  • Now, update your package on AndroidManifest.xml

package="br.com.stackoverflow.brazil"

  • Now, remove (delete) the empty package com.exemplo:

inserir a descrição da imagem aqui

0

Browser other questions tagged

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