title: Android Studio gets package name wrong when running .apk
body: <p>I changed my package name from com.mycompany.myapplication to com.mycompany.testapp. </p>
  
  <p>Everything builds fine but when I try to run it on the emulator, I get: </p>
  
  <blockquote>
    <p>The session was restarted
    Target device: NexusS [emulator-5554]
    Uploading file
        local path: /home/antony/AndroidStudioProjects/testappProject/testapp/build/apk/testapp-debug-unaligned.apk
        remote path: /data/local/tmp/com.mycompany.myapplication
    Installing com.mycompany.myapplication
    DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/com.mycompany.myapplication"
    pkg: /data/local/tmp/com.mycompany.myapplication
    Success</p>
    
    <p>Launching application: com.mycompany.myapplication/com.mycompany.testapp.MainActivity.
    DEVICE SHELL COMMAND: am start -D -n "com.mycompany.myapplication/com.mycompany.testapp.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
    Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.mycompany.myapplication/com.mycompany.testapp.MainActivity }
    Error type 3
    Error: Activity class {com.mycompany.myapplication/com.mycompany.testapp.MainActivity} does not exist.</p>
  </blockquote>
  
  <p>Note the remote path ^^^ is wrong.</p>
  
  <p>If I go to the emulator, I can start the app from the menu, it's just that I get this error when i try to run the app from Android Studio.</p>
  
  <p>I also see in logcat, on the top-right, the drop-down offers me "No Filters" or "app:com.mycompany.myapplication".  So I can't even debug properly.</p>
  
  <p>Where are these references to com.mycompany.myapplication coming from, and how can I fix this?</p>