flutter_qr_mobile_vision插件无法显示链接错误

时间:2019-07-09 07:14:08

标签: android flutter dart

尝试使用flutter_qr_mobile_vision插件创建简单的QR码扫描仪:

1)pubspec.yaml文件中包含flutter_qr_mobile_vision

2)尝试了其仓库中给出的示例

https://github.com/rmtmckenzie/flutter_qr_mobile_vision/tree/master/example

显示的错误:

~/flutter_projects/qr_scanner$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, v1.7.8+hotfix.2, on Linux, locale en_IN)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.0)
[✓] Android Studio (version 3.4)
[✓] VS Code (version 1.35.1)
[✓] Connected device (2 available)


flutter run -d  emulator-5554
Using hardware rendering with device Android SDK built for x86. If you get graphics artifacts, consider enabling software rendering with "--enable-software-rendering".
Launching lib/main.dart on Android SDK built for x86 in debug mode...
Initializing gradle...                                              0.6s
Resolving dependencies...                                           1.3s

FAILURE: Build failed with an exception.                                

* What went wrong:                                                      
Execution failed for task ':app:processDebugResources'.                 
> Android resource linking failed                                       
  Output:  error: resource android:style/TextAppearance.Material.Notification not found.
  error: resource android:style/TextAppearance.Material.Notification.Info not found.
  error: resource android:style/TextAppearance.Material.Notification.Time not found.
  error: resource android:style/TextAppearance.Material.Notification.Title not found.
  error: failed linking references.                                     

  Command: /data/EMBITEL/emb-rajekri/.gradle/caches/transforms-1/files-1.1/aapt2-3.2.1-4818971-linux.jar/3749eb2b0926be7306e5d46cbb5f9afb/aapt2-3.2.1-4818971-linux/aapt2 link -I\
          /data/EMBITEL/emb-rajekri/Android/Sdk/platforms/android-16/android.jar\
          --manifest\                                                   
          /data/EMBITEL/emb-rajekri/flutter_projects/qr_scanner/build/app/intermediates/merged_manifests/debug/processDebugManifest/merged/AndroidManifest.xml\
          -o\                                                           
          /data/EMBITEL/emb-rajekri/flutter_projects/qr_scanner/build/app/intermediates/processed_res/debug/processDebugResources/out/resources-debug.ap_\
          -R\                                                           
          @/data/EMBITEL/emb-rajekri/flutter_projects/qr_scanner/build/app/intermediates/incremental/processDebugResources/resources-list-for-resources-debug.ap_.txt\
          --auto-add-overlay\                                           
          --java\                                                       
          /data/EMBITEL/emb-rajekri/flutter_projects/qr_scanner/build/app/generated/not_namespaced_r_class_sources/debug/processDebugResources/r\
          --custom-package\                                             
          com.example.qr_scanner\                                       
          -0\                                                           
          apk\                                                          
          --output-text-symbols\                                        
          /data/EMBITEL/emb-rajekri/flutter_projects/qr_scanner/build/app/intermediates/symbols/debug/R.txt\
          --no-version-vectors                                          
  Daemon:  AAPT2 aapt2-3.2.1-4818971-linux Daemon #0                    

* 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 7s                                                      
Running Gradle task 'assembleDebug'...                                  
Running Gradle task 'assembleDebug'... Done                         7.7s
*******************************************************************************************
The Gradle failure may have been because of AndroidX incompatibilities in this Flutter app.
See  for more information on the problem and how to fix it.
*******************************************************************************************


0 个答案:

没有答案