• Register
0 votes
1.2k 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
1 answer 2 views
2 views
Problem: I am trying to add a rating feature in my app https://github.com/codechimp-org/AppRater but, every time I click on rate now it says The item you requested could not be found. How do I get out of this trouble?
asked 4 days ago ummesalma 25.2k points
0 votes
1 answer 2 views
2 views
Problem: I used Google to endeavor to find a solution on the web of the above question, But I got no utilizable hints. Can I get Pointer information about my quandary with this?
asked Mar 30 rakib1 51.5k points
0 votes
1 answer 3 views
3 views
Problem: How do I fix this problem? the online content is unavailable please, check your internet connection and try again
asked Apr 1 rakib1 51.5k points
0 votes
1 answer 2 views
2 views
Problem: please help me to solve it... your app is not enrolled in the designed for families program
asked Apr 1 Ifra 24.4k points
0 votes
1 answer 2 views
2 views
Problem: As you know when you install app with apk it requests permission before you install it. Can I get the same functionality for my app? Meaning, request permission before user download the app and don't ask for permission before they install the app?
asked 3 days ago anika11 4.1k points
0 votes
0 answers 2 views
2 views
Problem: anyone solve this problem. i cant understand? you don t have permission to use google play store
asked Mar 18 Rohit kr 16.2k points
0 votes
2 answers 574 views
574 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 2 views
2 views
Problem: Is there any API or tool that enables me to automatically upload an APK to Google Play?
asked 1 day ago Humaira ahmed 15.1k points
0 votes
1 answer 2 views
2 views
Problem I have a successful paid-for application on Google Play Store and want to update this app to be a free application with in-app purchasing.
asked 2 days ago neeraj 10.5k points
0 votes
1 answer 3 views
3 views
Problem: I need to download apk from google play to PC and install apk on phone for the test, Is this possible?
asked Apr 1 Jack20 3k points