Closed andydean565 closed 4 years ago
did you try flutter clean
and then flutter run
?
I didn't, but have just tried that and still get this error, not a strong java/android so I am unsure how to resolve or change the dependency versions.
Resolving dependencies... 10.8s
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:preDebugBuild'.
> Android dependency 'com.google.android.gms:play-services-base' has different version for the compile (15.0.1) and runtime (17.0.0) classpath. You should manually set the same version via DependencyResolution
BUILD FAILED in 18s
Running Gradle task 'assembleDebug'...
Running Gradle task 'assembleDebug'... Done 19.0s
Gradle task assembleDebug failed with exit code 1
have been using VScode but have opened it up in android studio to see if it could detect any issues but it did not
Not sure what the issue is exactly but after setting up a new project from scratch everything is working fine and I can get one signal connected.
ill leave this open in case anyone has any better fixes but mine will be to create a new project and move over my code.
Think I tracked down the issue when I moved all my code over to a new project same errors happened again so I started removing other flutter plugins to try and debug the issue.
after removing "flutter_barcode_scanner" the errors went away and I tried to add a different barcode scanner plugin (barcode_scan) which brought the error back
if anyone can replicate this and/or has a workaround, do let me know as I do need both for my project.
Migrating to android X solved this issue and there is documentation on the flutter docs on how to do this.
Description:
After adding the code to my flutter project to link up oneSignal I keep getting similar dependency errors when I try and run the app and not sure how to fix it.
I'm using one signal flutter plugin version 2.1.0 and have been using the code from the one signal docs for flutter projects.
gradle app file