rahmad iqbal
rahmad iqbal

Reputation: 25

troubleshooting debug problems in flutter

I experienced a problem in this section Could not determine the dependencies of task': app: compileProfileJavaWithJavac I have searched various sources but have not found a solution, and I use the flutter framework.

I have tried various ways such as searching for references related to my problem, but I did not find a solution, either on github, stackoverflow and also flutter.

Could not determine the dependencies of task ':app:compileProfileJavaWithJavac'.

Could not resolve all task dependencies for configuration ':app:profileCompileClasspath'. Could not find androidx.legacy:legacy-support-v4:28.0.3.

Upvotes: 1

Views: 191

Answers (1)

netlemon
netlemon

Reputation: 1053

You have to migrate to AndroidX.

Go to your android/gradle.properties and add this line of code:

android.useAndroidX=true

This will make sure to use the AndroidX library instead of the Support library.

EDIT:

You may also want to add android.enableJetifier=true which enables you the Jetifier, i.e: a set/collection of libraries to make developer's life easier. For more info. look here.

Upvotes: 1

Related Questions