Android Studio gets package name wrong when running .apk

I tried to restart Android Studio but the problem still existed.

Then the solution works with me.

  1. Remove the directory ~/.gradle/caches/. It’s OK to do this while Android Studio is opened.
    (Refer pm installing wrong package name)
  2. Press “Sync project with Gradle files” icon on Android Studio
  3. Run the project and the remote path will be correct.

Leave a Comment