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

AWS Q Developer image

Your AI Code Assistant

Ask anything about your entire project, code and get answers and even architecture diagrams. Built to handle large projects, Amazon Q Developer works alongside you from idea to production code.

Start free in your IDE

Top comments (1)

Collapse
 
reactifystudio profile image
Reactify

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

AWS GenAI LIVE image

Real challenges. Real solutions. Real talk.

From technical discussions to philosophical debates, AWS and AWS Partners examine the impact and evolution of gen AI.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay