Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error running 'app': Unknown error in Android studio 3.1

I have updated my android studio to new stable version 3.1. After build project not able to run.

Let me know if anyone have face same issue or find any solution.

My event log show this error

like image 907
Devganiya Hitesh Avatar asked Mar 27 '18 12:03

Devganiya Hitesh


People also ask

Why Android Studio is not running the app?

Unplug your device from the USB port on the computer. Restart the device by powering off and back on. Verify that Settings => Developer options => USB Debugging is enabled. Quit and re-launch Android Studio.


1 Answers

Just go to "Run/edit configurations.../" and scroll down to bottom of the window and here you see an option "Before launch..." First, remove whatever already inside the little window and then click on (+) icon and select "Gradle-aware Make" and then type "assembleDebug" and select the first option or that you need. This will solve your problem.

like image 97
Chelo Avatar answered Oct 06 '22 00:10

Chelo