Powersync Issues

Troubleshooting

Hi

I am currently at the Test your app with test mode: step in there turtorial, however I cannot get the app to build. I have tried downgrading packages and everything I and Chatgpt can think of but get the following errors


Resolving dependencies...

Because my_powersync depends on ff_commons from path which depends on powersync from path, powersync from path is required.

So, because my_powersync depends on powersync from hosted, version solving failed.

Failed to update packages.

Could it just be offline?

I also get this error all of a sudden

BUILD FAILED in 33s

Running Gradle task 'assembleDebug'... 34.6s

โ”Œโ”€ Flutter Fix โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”

โ”‚ [!] This is likely due to a known bug in Android Gradle Plugin (AGP) versions less than 8.2.1, โ”‚

โ”‚ when โ”‚

โ”‚ 1. setting a value for SourceCompatibility and โ”‚

โ”‚ 2. using Java 21 or above. โ”‚

โ”‚ To fix this error, please upgrade your AGP version to at least 8.2.1. The version of AGP that โ”‚

โ”‚ your project uses is likely defined in: โ”‚

โ”‚ /Users/bendegroot/Library/Application โ”‚

โ”‚ Support/io.flutterflow.prod.mac/i_flow_messaging_u_i_components_in_flutter_flow/android/settings โ”‚

โ”‚ .gradle, โ”‚

โ”‚ in the 'plugins' closure (by the number following "com.android.application"). โ”‚

โ”‚ Alternatively, if your project was created with an older version of the templates, it is likely โ”‚

โ”‚ in the buildscript.dependencies closure of the top-level build.gradle: โ”‚

โ”‚ /Users/bendegroot/Library/Application โ”‚

โ”‚ Support/io.flutterflow.prod.mac/i_flow_messaging_u_i_components_in_flutter_flow/android/build.gr โ”‚

โ”‚ adle, โ”‚

โ”‚ as the number following "com.android.tools.build:gradle:". โ”‚

โ”‚ โ”‚

โ”‚ For more information, see: โ”‚

โ”‚ https://issuetracker.google.com/issues/294137077 โ”‚

โ”‚ https://github.com/flutter/flutter/issues/156304 โ”‚

โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Error: Gradle task assembleDebug failed with exit code 1

What have you tried so far?

Downgrading Powersync pub versions . Bought a Mac mini, still the same issue. Tried lower SDK 32

Did you check FlutterFlow's Documentation for this topic?
No
3
4 replies