“com.example is restricted” when uploading APK to Play Store

In Android Studio after renaming Package then go “build.gradle (Module:App)

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

change the line

 applicationId "com.example.android.abc"

to

applicationId "com.tanxe.android.abc"

relpace “tanxe” with the word you want or your Organization name i.e.
your new package name
and rebuild the project

Leave a Comment