问题描述
Launching lib\main.dart on sdk gphone x86 arm in debug mode...
Running Gradle task 'assembleDebug'...
FAILURE: Build Failed with an exception.
* What went wrong:
Execution Failed for task ':app:processDebugResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> Android resource linking Failed
C:\Users\Mayank\Desktop\kNowlocation\build\location\intermediates\library_manifest\debug\AndroidManifest。 xml:11:9-15:56: AAPT: 错误: 属性 android:foregroundServiceType 未找到。
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more
log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD Failed in 16s
The built Failed likely due to AndroidX incompatibilities in a plugin. The tool is about to try
using Jetfier to solve the incompatibility.
Building plugin geocoder...
Running Gradle task 'assembleAarRelease'...
FAILURE: Build Failed with an exception.
* Where:
Build file 'C:\Flutter\Flutter\.pub-cache\hosted\pub.dartlang.org\geocoder-
0.2.1\android\build.gradle' line: 26
* What went wrong:
A problem occurred evaluating root project 'geocoder'.
> Failed to apply plugin [id 'com.android.library']
> Minimum supported Gradle version is 4.10.1. Current version is 4.6. If using the gradle wrapper,try editing the distributionUrl in C:\Flutter\Flutter\.pub-cache\hosted\pub.dartlang.org\geocoder-
0.2.1\android\gradle\wrapper\gradle-wrapper.properties to gradle-4.10.1-all.zip
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more
log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD Failed in 1s
Exception: The plugin geocoder Could not be built due to the issue above.
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)