Android Studio Run button or debug doesn’t push changes to emulator
After the Android Studio 2.0 update while the gradle build finishes you will get error like this this.
Session ‘app’: Error Launching activity
when you press run button or debug button, your app will install to the emulator and changes are not aper.
Follow the steps to fix this problem. I think google will fix this issue.
Click on the build configuration window by clicking run/debug configuration select box near the run and debug buttons.
after clicking on Edit Configuration item,you will see window like this.
Select app on the tree view in left side. In general tab you can see section call “Before launch: Gradle task, Instance app provision”.
Click on the plus button and select “Run Gradle Task”
Now you can see windows call “Select gradle task”. First Select gradle project as a “app” after that type “assembleDebug” as a task.
Now press OK and apply the configurations. Problem is fixed. Is there any other problems are occurred please feel free comment below.