-
Notifications
You must be signed in to change notification settings - Fork 349
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build fails after upgrade to flutter 3.0 #330
Comments
Just in case someone is experiencing the same issue. Seems that the fork here has already a fix for this problem! |
I just updated to 3.0 and this package raises a lot of errors. |
@caiobraga do you think you could fix your branch accordingly to @sterrana's comment ? |
arg. upgraded from dart 2.16.2 flutter 2.10.5 to dart 2.17.0 and flutter 3.0.0 get many error and build failed.. Dart SDK version: 2.17.0 (stable) (Mon May 9 10:36:47 2022 +0200) on "windows_x64" e: C:\Users\chris\Documents\flutter.pub-cache\hosted\pub.dartlang.org\background_locator-1.6.12\android\src\main\kotlin\rekab\app\background_locator\BackgroundLocatorPlugin.kt: (25, 1): Class 'BackgroundLocatorPlugin' is not abstract and does not implement abstract member public abstract fun onNewIntent(p0: Intent): Boolean defined in io.flutter.plugin.common.PluginRegistry.NewIntentListener FAILURE: Build failed with an exception. no knowledge on kotlin.. |
Here is the fix for flutter 3.0 https://github.com/Alfaizkhan/background_locator Check it out and try. |
@Alfaizkhan i can confirm that it is still not working and there is a lot of building error |
Can you please post a build logs here. |
@Alfaizkhan iam going to build now but long story short , it first asked me to upgrade my compile and target SDK versions to 31
|
@Alfaizkhan i have not copied anything , i just ran your example in the git repo |
|
Let me try again. |
Change compileSdkVersion to 31 is working fine for me. |
|
@Alfaizkhan here is the build gradle and it is not working |
@Alfaizkhan i've cloned it another time just to check if i did smth wrong but same thing even when upgrading the compileSDKversion |
@Alfaizkhan if you are not able to produce the problem you are more than welcome to get into my pc with teamviewer or anydesk |
https://github.com/imsamgarg/background_locator try it, fixes all flutter 3 issues |
The @imsamgarg solution did it! Added in
|
Hi @guistrutzki, you can also use the version 2 of the library if you want : https://pub.dev/packages/background_locator_2 |
I'm getting this issue when I run it in the emulator: Running Gradle task 'assembleDebug'... FAILURE: Build failed with an exception.
BUILD FAILED in 17s |
For anyone with this error: background_locator/provider/LocationParserUtil.kt: (21, 20): Type mismatch: inferred type is String? but any was expected just find the LocationParserUtil.kt file in your directory and replace it with the following code snippet:
|
yes, @Glauber26 I am still getting this issue. Can you please give me a solution? |
|
Can anyone have any answer? |
Hello,
just wanted to let you know that there seems an issue with the latest flutter release 3.0 and this plugin.
After upgrading my flutter the build of my app using background_locator 1.6.12 gives following errors:
Best regards
Thomas
The text was updated successfully, but these errors were encountered: