DEV Community

Dalitso Kasonde
Dalitso Kasonde

Posted on • Edited on

Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'. - Flutter

  1. In the build.gradle file (app level), Upgrade one signal gradle to the latest level eg
    from classpath 'gradle.plugin.com.onesignal:onesignal-gradle-plugin:[0.12.6, 0.99.99]'
    to classpath 'gradle.plugin.com.onesignal:onesignal-gradle-plugin:0.12.10'

  2. In the build.gradle file (project level), upgrade android build tool aswell from classpath 'com.android.tools.build:gradle:3.5.0' to classpath 'com.android.tools.build:gradle:4.1.3'

  3. In side the gradle folder edit gradle-wrapper.properties and update the gradle e.g from distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip to distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip

  4. Additionally, update the version of one signal to the latest version in pubsec.yaml and rebuild your project

Reference

Top comments (1)

Collapse
 
reactifystudio profile image
Reactify

Hello is it Flutter, Native(kotlin) or react-native. I'm having an issue in RN