我正在构建Flutter应用程序,并且刚刚添加了mime和http_parser软件包。之后,在构建时出现以下错误:
<appname>\build\app\intermediates\merged_manifests\debug\AndroidManifest.xml:35: AAPT: error: resource integer/google_play_services_version (aka com.att.fluttercount:integer/google_play_services_version) not found.
到目前为止,该应用程序的构建过程还不错。我撤消了所做的更改,包括从pubspec.yaml中删除软件包,但该错误不会消失。
这是我的pubspec.yaml的相关部分:
environment:
sdk: ">=2.1.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^0.1.2
flutter_map: ^0.5.0+1
scoped_model: ^1.0.1
rxdart: ^0.21.0
flutter_masked_text: ^0.8.0
image_picker: ^0.5.0+9
webview_flutter: ^0.3.6
sqflite: ^1.1.5
http: ^0.12.0+2
#mime: ^0.9.6+2
#http_parser: ^3.1.3
# Must use 'any' as the version of path_provider, because other packages depend on
# earlier versions of path_provider.
path_provider: any
# Note: Must use 'any' as the version of uuid, because some dependencies of flutter_map
# depend on earlier versions of uuid.
uuid: any
dev_dependencies:
flutter_test:
sdk: flutter
有人对如何解决此错误有任何建议吗?
答案 0 :(得分:0)
我忽略了提及我还删除了对google_maps_flutter的依赖,而不再使用它。我重新添加了此依赖项,错误消失了。