Edit the name of the Application in Android Studio

0

Good afternoon,

I'm trying to publish an app in google play, but the following error appears:

  

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

I have already (manually) changed 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.

    
asked by anonymous 18.08.2015 / 21:59

2 answers

1

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

  • Refresh all rename of your package, leave it as it was ( com.examplo ).

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

    Now,move(holdinganddragging)allpackageswithincom.exemplotobr.com.stackoverflow.brasilandAndroidStudiowillmoveallreferencesautomatically:

  • Now,updateyourpackageonAndroidManifest.xml
  

package="br.com.stackoverflow.brasil"

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

    
18.08.2015 / 22:37
0

Follow this content from Google, I can help you do this.

link

    
18.08.2015 / 22:31