Installation failed due to: 'closed' Errors | Anroid Studio 4.0.2

1.6k views Asked by At

When I click the run button in Android studio(4.0.2 for Windows 64-bit), I get the following error.

Installation did not succeed. The application could not be installed.

List of apks: [0] 'C:\Users\XXX\AndroidStudioProjects\IlkProje\app\build\outputs\apk\debug\app-debug.apk' Installation failed due to: 'closed'

enter image description here

1

There are 1 answers

2
Nihthiya Althaf On

Try this way:

1.Open run/debug configuration dialog:- Run> edit configurations.

Navigate to You app > General > Installation Options > Install Flags. add install flags -r -t.

Note: This flags means adb install -r -t apk path