我在模拟器中运行时遇到问题,我已经升级了 build.gradle(dependencies) 但仍然面临同样的问题

时间:2021-02-20 11:09:22

标签: flutter android-studio dart build.gradle google-geocoder

 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.

0 个答案:

没有答案
相关问题