Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flutter-Execution failed for task ':app:preDebugBuild'

I'm starting developing apps with flutter, and I encounter with this error when I clone a project from GitHub:

What went wrong?

Execution failed for task ':app:preDebugBuild'.
Android dependency 'androidx.appcompat:appcompat' has different version for the compile (1.0.0) and runtime (1.0.2) classpath. You should manually set the same version via DependencyResolution

I'm running Android Studio 3.2.2 and Flutter SDK 1.2.1

like image 490
Victor Ortiz Avatar asked Jul 30 '26 13:07

Victor Ortiz


1 Answers

You need to migrate the project to Android X. You can only do this through Android studio 3.3.

Follow the procedures here to Migrate your Project to Android X

like image 137
Tayo.dev Avatar answered Aug 02 '26 04:08

Tayo.dev



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!