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
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")
}
}
...
...
}
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'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With