Closed willhaslett closed 3 years ago
Приложение работало нормально, после обновления Flutter сегодня утром (стабильный канал) сборка для Android завершилась неудачно с выводом ниже. Я мертв в воде. Есть ли обходной путь?
FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':background_location:verifyReleaseResources'. > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade > 1 exception was raised by workers: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed /Users/wh/.pub-cache/hosted/pub.dartlang.org/background_location-0.6.0/android/src/main/AndroidManifest.xml:10:9-15:37: AAPT: error: attribute android:foregroundServiceType not found.
faced the same problem, has a solution been found?
@jexme, this is not a long-term solution, but for me, my fork of the repo is building and working with Flutter 2.2. Perhaps it will get you going too for now. You can see that I've only made three small changes, and I don't know why those would make a difference, but I'm running with it for now. In pubspec.yaml
:
dependency_overrides:
background_location:
git: git@github.com:willhaslett/background_location_important.git
@jexme , это не долгосрочное решение, но для меня мой форк репо строится и работает с Flutter 2.2. Возможно, сейчас это поможет и вам. Вы можете видеть, что я внес только три небольших изменения, и я не знаю, почему они имеют значение, но пока я работаю над этим. В
pubspec.yaml
:dependency_overrides: background_location: git: git@github.com:willhaslett/background_location_important.git
thanks, this really works for me
Advice to anyone else who tried the fix and has problems with pub get
: use this instead.
dependency_overrides:
background_location:
git: https://github.com/willhaslett/background_location_important.git
I added this dependency_overrides: background_location: git: https://github.com/willhaslett/background_location_important.git
nearly 2 years ago, now I have restarted my project to upgrade but I am not able to find this link so what should I follow to get working ??
App was running fine, after upgrading Flutter this morning (stable channel), building for Android fails with the output below. I'm dead in the water. Is there a workaround?