0

enter image description hereI have created a signed app as a bundle (.aab) I now want to publish this in the Playstore via Console. After uploading the app-release.aab file, I get an error saying "The use of "com.example" is restricted. Please use a different package name."

But I have changed the package name to myapp, see pictures.

Can someone help me in a hurry?thanks :,)[enter image description here](https://i.sstatic.net/3rcgy.png)

Watched youtube and the internet :(

1
  • Have you change "namespace" and "applicationId" in build.gradle file inside app folder? Commented Aug 2, 2023 at 7:54

1 Answer 1

1

Try to use Ctrl+Shift+F (or Edit -> Find -> Find in Files...) combination in Android Studio and find "com.example" in your project. Also check build.gradle.kts file, you an find package name there. And another option check your AndroidManifest.xml, there is the top tag which contains "package" field

Sign up to request clarification or add additional context in comments.

5 Comments

Thanks! I added the photo.. I found four times come.example.myapp and one time com.example.myapp.R - what do I have to do? Change all to myapp and myapp.R ?
I have all com.example.myapp edited to myapp But now it says "Manifest merger failed : Package name 'myapp' at position AndroidManifest.xml:2:1-30:12 should contain at least one '.' (dot) character " after compiling :(
Do what it says. Add a dot. Do you have an own URL? Use that. For example 'com.ninozefix.myapp'.
i made them com.ninozefix.myapp but now R is making problems, it says now after compiling: "error: package com.example.myapp does not exist import com.example.myapp.R;"
i changed the the package from com/example/myapp to com/ninozefix/myapp and also with cmd+shift+f the other com.example.myapp manualy to com.ninozefix.myapp. But now it doesnt compile anymore cuz of the import com.example.myapp.R ** Please help, I go crazy with this right now -.- **

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.