• Register
0 votes

Problem :

I want to upload the finished android app to a android market but I am getting below error:

“You need to use a different package name because "com.example" is restricted.”
7 5 2
3,870 points

2 Answers

0 votes

Solution :

The error message is telling you all. You just need to use the package name of your own. A package name is a identitiy of a application.

To rename your package name, In eclipse just right click on a project in project explorer. Then go to Android Tools > rename a Aplication Package name. Then enter a new package name.

Also make sure that you are trying to upload your release build


In the Android Studio after renaming a Package then go to "build.gradle (Module:App)

defaultConfig {
applicationId "com.example.android.abc"
minSdkVersion 9
targetSdkVersion 22
versionCode 1
versionName "1.0"

And change below line

applicationId "com.example.android.abc"

to the following line

applicationId "com.tanxe.android.abc"

Just replace a "tanxe" with a word you want or the Organization name i.e.
the new package name and rebuild your project.


Write something else other than a com.example

For example: com.newname etc will do(make sure that only your name/firm name)

I hope above given solutions will help you in resolving your all the required errors.

9 7 4
38,600 points
0 votes

i fix this problem here  https://youtu.be/qo-iCbPAi5k

0 points

Related questions

0 votes
2 answers 93 views
Problem : I wanted to create a custom dialog by displaying the Activity as the dialog instead of using a Dialog APIs. By creating an activity and seting its theme to the Theme.Holo.Dialog in my <activity> manifest element: <activity android:theme="@android:style/Theme ... was something I wanted to do, because I have already completed my layout. Can somebody tell me how I can resolve this problem?
asked Jan 28 jwilliam 3.9k points
0 votes
1 answer 34 views
Problem: I have recently started working on Android Project. I have managed to gain only basic knowledge related to Android Programming with the help of online tutorials. After trying to import my Eclipse project into the android Studio then I had ... (); public static SetContentView setContentView; public static Activity activity; public static Context context; public static boolean wait = true;
asked Jul 15 Raphael Pacheco 4.9k points
0 votes
1 answer 41 views
Problem : I am trying to dynamically add and remove the tab in my tablayout. I have already used the FragmentPagerAdapter. I have my TabLayout and inside the TabLayout I have the ViewPager.I am able to add my tabs dynamically but while trying to remove my tab the viewpagers ... deleted and tab is also deleted. As a result my tab is unable to show the specific fragment. How can I fix this issue?
asked Feb 13 mphil 2.3k points
1 vote
2 answers 64 views
Problem : I am very new to google play games services and Admob plugin. Currently I am trying to build the APK using google play games services and Admob plugin but it is not working for me. I am facing below error. CommandInvokationFailure: Unable to convert classes into dex format ... zzbyc; 2 errors; aborting ] Please Note: I am using Unity 5.6.1f1 (64-bit) Please help me in fixing above error.
asked Mar 27 morrisBson 3.2k points