Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fix 'Process unexpectedly exit'

After update Android Studio 3.4 and using

classpath 'com.android.tools.build:gradle:3.4.0'

could not run my app. When I try to run the error shows : Process unexpectedly exit.

Downgrade to classpath 'com.android.tools.build:gradle:3.2.1'

work perfectly. Please help how to run with version 3.4.0

like image 806
Alpesh Vaghasiya Avatar asked Apr 18 '19 06:04

Alpesh Vaghasiya


2 Answers

Same happened to me, I don't know what's causing this, probably the Aapt2 3.4.0, so I fixed it adding this in project build.gradle(:app):

android {
...
...
    configurations.matching { it.name == '_internal_aapt2_binary' }.all { config ->
            config.resolutionStrategy.eachDependency { details ->
                details.useVersion("3.3.2-5309881")
            }
        }
...
...
}
like image 116
Eagle Avatar answered Oct 17 '22 08:10

Eagle


Don't worry about it. Gradle version 3.4.2 has some problem. Just change gradle version in your project: build.gradle file. Change version to 3.2.1.

classpath 'com.android.tools.build:gradle:3.2.1'

like image 44
Gaurav GV Avatar answered Oct 17 '22 07:10

Gaurav GV