• Register
0 votes
822 views

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

Please log in or register to answer this question.

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

OR

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.

OR

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 125 views
125 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, 2020 jwilliam 3.9k points
0 votes
1 answer 82 views
82 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, 2020 Raphael Pacheco 4.9k points
0 votes
1 answer 48 views
48 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, 2020 mphil 2.3k points
1 vote
2 answers 90 views
90 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, 2020 morrisBson 3.2k points
0 votes
2 answers 65 views
65 views
Problem : After updating my android studio to android studio 2.3 I facing below error message. I know it is giving me just the hint as my app is running normally but it looks really strange. &ldquo;All com.android.support libraries must use the exact same version ... 1, 24.0.0. Examples include com.android.support:animated-vector-drawable:25.1.1 and com.android.support:mediarouter-v7:24.0.0&rdquo;
asked Jan 9, 2020 alecxe 7.5k points
0 votes
1 answer 3.1K views
3.1K views
Problem : As I am allowing the USB debugging, when I tap on OK button, the Messaging pops up as follows: Because an app is obscuring a permissions request, Settings can't verify your response The above error is coming in allowing USB debugging.
asked Dec 10, 2019 alecxe 7.5k points
0 votes
2 answers 29 views
29 views
Problem: When do you need to use a fully qualified URL in a hyperlink?
asked Jul 21, 2020 sstones 830 points
0 votes
2 answers 60 views
60 views
Problem : Currently I am trying to learning angular 2 and angular CLI also I am using the angular CLI and angular 2 for a very first time to create the sandbox project. I ran the following command "ng serve" and it worked for me. After that I wanted to stop the command so ... port." I am trying to fix this error from past couple of days but unable to fix it. Can somebody help me in fixing it ?
asked Feb 24, 2020 mphil 2.3k points