woodemi / quick.flutter

53 stars 62 forks source link

When running with flutter android on new project it gives error Execution failed for task ':quick_usb:compileDebugKotlin'. #55

Closed ExzaSolutions closed 2 years ago

ExzaSolutions commented 2 years ago

e: c:\Briefcase\flutter.pub-cache\hosted\pub.dartlang.org\quick_usb-0.4.0\android\src\main\kotlin\com\example\quick_usb\QuickUsbPlugin.kt: (20, 52): Unresolved reference: S e: c:\Briefcase\flutter.pub-cache\hosted\pub.dartlang.org\quick_usb-0.4.0\android\src\main\kotlin\com\example\quick_usb\QuickUsbPlugin.kt: (21, 19): Unresolved reference: FLAG_MUTABLE

FAILURE: Build failed with an exception.

Sunbreak commented 2 years ago

Try https://github.com/woodemi/quick.flutter/pull/40

ExzaSolutions commented 2 years ago

Try #40

Still the same error shows up Compile version is at 32,but tried with 31 as well

Sunbreak commented 2 years ago

Could you post your flutter build apk -v on quick_usb's example?

ExzaSolutions commented 2 years ago
flutter build apk -v
[  +73 ms] executing: [c:\Briefcase\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +101 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[   +2 ms] f1875d570e39de09040c8f79aa13cc56baab8db1
[        ] executing: [c:\Briefcase\flutter/] git tag --points-at f1875d570e39de09040c8f79aa13cc56baab8db1
[ +177 ms] Exit code 0 from: git tag --points-at f1875d570e39de09040c8f79aa13cc56baab8db1
[        ] 3.0.5
[   +9 ms] executing: [c:\Briefcase\flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[  +57 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/stable
[        ] executing: [c:\Briefcase\flutter/] git ls-remote --get-url origin
[  +50 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[ +141 ms] executing: [c:\Briefcase\flutter/] git rev-parse --abbrev-ref HEAD
[  +69 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] stable
[ +102 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +6 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.       
[        ] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update.    
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.     
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.     
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.    
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.    
[ +114 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[   +6 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[        ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[   +2 ms] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'PubDependencies' is not required, skipping update.
[ +174 ms] Skipping pub get: version match.
[  +37 ms] Found plugin plugin_custom at C:\Briefcase\Projects\Giz\custom_plugin\plugin_custom\
[  +53 ms] Found plugin kiosk_mode at c:\Briefcase\flutter\.pub-cache\hosted\pub.dartlang.org\kiosk_mode-0.2.1\
[  +13 ms] Found plugin open_file at c:\Briefcase\flutter\.pub-cache\hosted\pub.dartlang.org\open_file-3.2.1\
[   +4 ms] Found plugin package_info_plus at c:\Briefcase\flutter\.pub-cache\hosted\pub.dartlang.org\package_info_plus-1.4.2\
[  +13 ms] Found plugin package_info_plus_linux at c:\Briefcase\flutter\.pub-cache\hosted\pub.dartlang.org\package_info_plus_linux-1.0.5\
[   +8 ms] Found plugin package_info_plus_macos at c:\Briefcase\flutter\.pub-cache\hosted\pub.dartlang.org\package_info_plus_macos-1.3.0\
[   +8 ms] Found plugin package_info_plus_web at c:\Briefcase\flutter\.pub-cache\hosted\pub.dartlang.org\package_info_plus_web-1.0.5\
[   +9 ms] Found plugin package_info_plus_windows at c:\Briefcase\flutter\.pub-cache\hosted\pub.dartlang.org\package_info_plus_windows-1.0.
[   +5 ms] Found plugin path_provider at c:\Briefcase\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider-2.0.11\
[   +5 ms] Found plugin path_provider_android at c:\Briefcase\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.16\
[   +2 ms] Found plugin path_provider_ios at c:\Briefcase\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_ios-2.0.10\
[   +2 ms] Found plugin path_provider_linux at c:\Briefcase\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_linux-2.1.7\
[   +4 ms] Found plugin path_provider_macos at c:\Briefcase\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_macos-2.0.6\
[   +5 ms] Found plugin path_provider_windows at c:\Briefcase\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_windows-2.0.7\
[  +13 ms] Found plugin quick_usb at c:\Briefcase\flutter\.pub-cache\hosted\pub.dartlang.org\quick_usb-0.4.0\
[  +22 ms] Found plugin updater at c:\Briefcase\flutter\.pub-cache\hosted\pub.dartlang.org\updater-0.1.3\
[  +65 ms] Found plugin plugin_custom at C:\Briefcase\Projects\Giz\custom_plugin\plugin_custom\
[  +29 ms] Found plugin kiosk_mode at c:\Briefcase\flutter\.pub-cache\hosted\pub.dartlang.org\kiosk_mode-0.2.1\
[   +8 ms] Found plugin open_file at c:\Briefcase\flutter\.pub-cache\hosted\pub.dartlang.org\open_file-3.2.1\
[   +3 ms] Found plugin package_info_plus at c:\Briefcase\flutter\.pub-cache\hosted\pub.dartlang.org\package_info_plus-1.4.2\
[   +2 ms] Found plugin package_info_plus_linux at c:\Briefcase\flutter\.pub-cache\hosted\pub.dartlang.org\package_info_plus_linux-1.0.5\
[   +4 ms] Found plugin package_info_plus_macos at c:\Briefcase\flutter\.pub-cache\hosted\pub.dartlang.org\package_info_plus_macos-1.3.0\
[   +2 ms] Found plugin package_info_plus_web at c:\Briefcase\flutter\.pub-cache\hosted\pub.dartlang.org\package_info_plus_web-1.0.5\
[   +5 ms] Found plugin package_info_plus_windows at c:\Briefcase\flutter\.pub-cache\hosted\pub.dartlang.org\package_info_plus_windows-1.0.
[   +3 ms] Found plugin path_provider at c:\Briefcase\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider-2.0.11\
[   +4 ms] Found plugin path_provider_android at c:\Briefcase\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.16\
[   +1 ms] Found plugin path_provider_ios at c:\Briefcase\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_ios-2.0.10\
[   +4 ms] Found plugin path_provider_linux at c:\Briefcase\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_linux-2.1.7\
[   +2 ms] Found plugin path_provider_macos at c:\Briefcase\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_macos-2.0.6\
[   +5 ms] Found plugin path_provider_windows at c:\Briefcase\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_windows-2.0.7\
[   +6 ms] Found plugin quick_usb at c:\Briefcase\flutter\.pub-cache\hosted\pub.dartlang.org\quick_usb-0.4.0\
[  +14 ms] Found plugin updater at c:\Briefcase\flutter\.pub-cache\hosted\pub.dartlang.org\updater-0.1.3\
[  +32 ms] Generating C:\Briefcase\Projects\Giz\bipa_q-main\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java
[  +85 ms]  Building with sound null safety 
[  +23 ms] Running Gradle task 'assembleRelease'...
[   +8 ms] Using gradle from C:\Briefcase\Projects\Giz\bipa_q-main\android\gradlew.bat.
[  +33 ms] executing: C:\Program Files\Android\Android Studio\jre\bin\java -version
[ +177 ms] Exit code 0 from: C:\Program Files\Android\Android Studio\jre\bin\java -version
[        ] openjdk version "11.0.10" 2021-01-19
           OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
           OpenJDK 64-Bit Server VM (build 11.0.10+0-b96-7249189, mixed mode)
[   +2 ms] executing: [C:\Briefcase\Projects\Giz\bipa_q-main\android/] C:\Briefcase\Projects\Giz\bipa_q-main\android\gradlew.bat -Pverbose=
-Pbase-application-name=android.app.Application -Pdart-obfuscation=false -Ptrack-widget-creation=true -Ptree-shake-icons=true assembleRelea
[ +810 ms] Welcome to Gradle 7.4!
[   +1 ms] Here are the highlights of this release:
[   +1 ms]  - Aggregated test and JaCoCo reports
[   +3 ms]  - Marking additional test source directories as tests in IntelliJ
[   +2 ms]  - Support for Adoptium JDKs in Java toolchains
[   +4 ms] For more details see https://docs.gradle.org/7.4/release-notes.html
[+2682 ms] > Task :open_file:preBuild UP-TO-DATE
[   +2 ms] > Task :open_file:preReleaseBuild UP-TO-DATE
[        ] > Task :open_file:compileReleaseAidl NO-SOURCE
[   +1 ms] > Task :package_info_plus:preBuild UP-TO-DATE
[   +1 ms] > Task :package_info_plus:preReleaseBuild UP-TO-DATE
[   +1 ms] > Task :package_info_plus:compileReleaseAidl NO-SOURCE
[   +1 ms] > Task :updater:preBuild UP-TO-DATE
[   +2 ms] > Task :updater:preReleaseBuild UP-TO-DATE
[   +1 ms] > Task :updater:compileReleaseAidl NO-SOURCE
[        ] > Task :updater:mergeReleaseJniLibFolders
[        ] > Task :updater:mergeReleaseNativeLibs NO-SOURCE
[        ] > Task :updater:stripReleaseDebugSymbols NO-SOURCE
[        ] > Task :open_file:compileReleaseRenderscript NO-SOURCE
[        ] > Task :updater:copyReleaseJniLibsProjectAndLocalJars
[   +1 ms] > Task :open_file:generateReleaseBuildConfig
[   +1 ms] > Task :open_file:generateReleaseResValues
[   +3 ms] > Task :open_file:generateReleaseResources
[ +176 ms] > Task :open_file:packageReleaseResources
[   +1 ms] > Task :package_info_plus:compileReleaseRenderscript NO-SOURCE
[   +1 ms] > Task :open_file:javaPreCompileRelease
[        ] > Task :open_file:parseReleaseLocalResources
[        ] > Task :package_info_plus:generateReleaseBuildConfig
[ +113 ms] > Task :package_info_plus:generateReleaseResValues
[   +2 ms] > Task :package_info_plus:generateReleaseResources
[   +2 ms] > Task :package_info_plus:packageReleaseResources
[   +5 ms] > Task :package_info_plus:parseReleaseLocalResources
[   +5 ms] > Task :open_file:packageReleaseRenderscript NO-SOURCE
[   +1 ms] > Task :package_info_plus:packageReleaseRenderscript NO-SOURCE
[        ] > Task :package_info_plus:javaPreCompileRelease
[   +3 ms] > Task :updater:compileReleaseRenderscript NO-SOURCE
[  +59 ms] > Task :open_file:processReleaseManifest
[   +5 ms] c:\Briefcase\flutter\.pub-cache\hosted\pub.dartlang.org\open_file-3.2.1\android\src\main\AndroidManifest.xml:9:9-19:20 Warning:
[   +3 ms]      provider#com.crazecoder.openfile.FileProvider@android:authorities was tagged at AndroidManifest.xml:9 to replace other decl
[   +1 ms] > Task :updater:generateReleaseBuildConfig
[        ] > Task :updater:generateReleaseResValues
[   +3 ms] > Task :updater:generateReleaseResources
[   +2 ms] > Task :package_info_plus:processReleaseManifest
[  +83 ms] > Task :updater:packageReleaseResources
[   +5 ms] > Task :updater:parseReleaseLocalResources
[   +2 ms] > Task :updater:javaPreCompileRelease
[  +84 ms] > Task :updater:processReleaseManifest
[+3094 ms] > Task :package_info_plus:generateReleaseRFile
[+3607 ms] > Task :open_file:generateReleaseRFile
[+6400 ms] > Task :package_info_plus:compileReleaseKotlin
[ +704 ms] > Task :open_file:compileReleaseJavaWithJavac
[ +121 ms] > Task :open_file:bundleLibCompileToJarRelease
[ +172 ms] > Task :package_info_plus:compileReleaseJavaWithJavac
[  +98 ms] > Task :package_info_plus:bundleLibCompileToJarRelease
[   +1 ms] > Task :updater:mergeReleaseShaders
[   +1 ms] > Task :updater:compileReleaseShaders NO-SOURCE
[   +1 ms] > Task :updater:generateReleaseAssets UP-TO-DATE
[   +1 ms] > Task :updater:generateReleaseRFile
[ +100 ms] > Task :updater:packageReleaseAssets
[  +12 ms] > Task :updater:packageReleaseRenderscript NO-SOURCE
[   +5 ms] > Task :updater:prepareLintJarForPublish UP-TO-DATE
[   +1 ms] > Task :updater:prepareReleaseArtProfile
[   +1 ms] > Task :updater:processReleaseJavaRes NO-SOURCE
[   +3 ms] > Task :updater:writeReleaseAarMetadata
[   +5 ms] > Task :open_file:mergeReleaseJniLibFolders
[   +7 ms] > Task :open_file:mergeReleaseNativeLibs NO-SOURCE
[   +5 ms] > Task :open_file:stripReleaseDebugSymbols NO-SOURCE
[   +1 ms] > Task :open_file:copyReleaseJniLibsProjectAndLocalJars
[ +157 ms] > Task :open_file:extractReleaseAnnotations
[ +700 ms] > Task :updater:compileReleaseKotlin
[   +1 ms] > Task :updater:extractReleaseAnnotations
[ +295 ms] > Task :updater:compileReleaseJavaWithJavac
[   +4 ms] > Task :updater:mergeReleaseGeneratedProguardFiles
[   +3 ms] > Task :updater:mergeReleaseConsumerProguardFiles
[        ] > Task :open_file:mergeReleaseGeneratedProguardFiles
[   +2 ms] > Task :open_file:mergeReleaseConsumerProguardFiles
[   +4 ms] > Task :open_file:mergeReleaseShaders
[   +9 ms] > Task :open_file:compileReleaseShaders NO-SOURCE
[   +9 ms] > Task :open_file:generateReleaseAssets UP-TO-DATE
[   +8 ms] > Task :open_file:packageReleaseAssets
[   +9 ms] > Task :open_file:prepareLintJarForPublish UP-TO-DATE
[   +5 ms] > Task :open_file:prepareReleaseArtProfile
[   +3 ms] > Task :open_file:processReleaseJavaRes NO-SOURCE
[  +27 ms] > Task :open_file:writeReleaseAarMetadata
[   +2 ms] > Task :package_info_plus:mergeReleaseJniLibFolders
[   +1 ms] > Task :package_info_plus:mergeReleaseNativeLibs NO-SOURCE
[   +3 ms] > Task :package_info_plus:stripReleaseDebugSymbols NO-SOURCE
[   +2 ms] > Task :package_info_plus:copyReleaseJniLibsProjectAndLocalJars
[   +4 ms] > Task :open_file:mergeReleaseJavaResource
[   +1 ms] > Task :package_info_plus:extractReleaseAnnotations
[  +93 ms] > Task :updater:mergeReleaseJavaResource
[        ] > Task :open_file:syncReleaseLibJars
[        ] > Task :updater:syncReleaseLibJars
[        ] > Task :updater:bundleReleaseLocalLintAar
[   +1 ms] > Task :package_info_plus:mergeReleaseGeneratedProguardFiles
[   +1 ms] > Task :package_info_plus:mergeReleaseConsumerProguardFiles
[        ] > Task :package_info_plus:mergeReleaseShaders
[  +88 ms] > Task :package_info_plus:compileReleaseShaders NO-SOURCE
[   +2 ms] > Task :package_info_plus:generateReleaseAssets UP-TO-DATE
[   +1 ms] > Task :package_info_plus:packageReleaseAssets
[   +2 ms] > Task :package_info_plus:prepareLintJarForPublish UP-TO-DATE
[        ] > Task :package_info_plus:prepareReleaseArtProfile
[        ] > Task :package_info_plus:processReleaseJavaRes NO-SOURCE
[        ] > Task :path_provider_android:preBuild UP-TO-DATE
[        ] > Task :path_provider_android:preReleaseBuild UP-TO-DATE
[        ] > Task :package_info_plus:writeReleaseAarMetadata
[   +4 ms] > Task :path_provider_android:compileReleaseAidl NO-SOURCE
[   +2 ms] > Task :package_info_plus:mergeReleaseJavaResource
[   +1 ms] > Task :path_provider_android:mergeReleaseJniLibFolders
[   +1 ms] > Task :package_info_plus:syncReleaseLibJars
[   +4 ms] > Task :path_provider_android:mergeReleaseNativeLibs NO-SOURCE
[   +1 ms] > Task :path_provider_android:stripReleaseDebugSymbols NO-SOURCE
[   +4 ms] > Task :path_provider_android:compileReleaseRenderscript NO-SOURCE
[  +10 ms] > Task :path_provider_android:copyReleaseJniLibsProjectAndLocalJars
[  +23 ms] > Task :path_provider_android:generateReleaseBuildConfig
[   +1 ms] > Task :path_provider_android:generateReleaseResValues
[   +2 ms] > Task :path_provider_android:generateReleaseResources
[  +42 ms] > Task :path_provider_android:packageReleaseResources
[   +6 ms] > Task :path_provider_android:parseReleaseLocalResources
[   +2 ms] > Task :path_provider_android:javaPreCompileRelease
[   +2 ms] > Task :path_provider_android:mergeReleaseShaders
[        ] > Task :path_provider_android:compileReleaseShaders NO-SOURCE
[   +1 ms] > Task :path_provider_android:generateReleaseAssets UP-TO-DATE
[   +2 ms] > Task :path_provider_android:packageReleaseAssets
[   +6 ms] > Task :path_provider_android:processReleaseManifest
[  +10 ms] > Task :path_provider_android:packageReleaseRenderscript NO-SOURCE
[   +7 ms] > Task :path_provider_android:prepareLintJarForPublish UP-TO-DATE
[  +57 ms] > Task :path_provider_android:prepareReleaseArtProfile
[   +5 ms] > Task :path_provider_android:processReleaseJavaRes NO-SOURCE
[   +2 ms] > Task :path_provider_android:mergeReleaseJavaResource
[   +2 ms] > Task :plugin_custom:preBuild UP-TO-DATE
[   +4 ms] > Task :plugin_custom:preReleaseBuild UP-TO-DATE
[   +5 ms] > Task :path_provider_android:writeReleaseAarMetadata
[   +1 ms] > Task :plugin_custom:compileReleaseAidl NO-SOURCE
[  +73 ms] > Task :path_provider_android:generateReleaseRFile
[   +7 ms] > Task :plugin_custom:mergeReleaseJniLibFolders
[   +6 ms] > Task :plugin_custom:mergeReleaseNativeLibs NO-SOURCE
[   +1 ms] > Task :plugin_custom:stripReleaseDebugSymbols NO-SOURCE
[   +1 ms] > Task :plugin_custom:compileReleaseRenderscript NO-SOURCE
[        ] > Task :plugin_custom:generateReleaseBuildConfig
[   +2 ms] > Task :plugin_custom:generateReleaseResValues
[   +1 ms] > Task :plugin_custom:generateReleaseResources
[        ] > Task :plugin_custom:copyReleaseJniLibsProjectAndLocalJars
[   +2 ms] > Task :plugin_custom:packageReleaseResources
[  +79 ms] > Task :plugin_custom:parseReleaseLocalResources
[   +1 ms] > Task :plugin_custom:javaPreCompileRelease
[   +4 ms] > Task :plugin_custom:processReleaseManifest
[   +3 ms] > Task :plugin_custom:mergeReleaseShaders
[        ] > Task :plugin_custom:compileReleaseShaders NO-SOURCE
[        ] > Task :plugin_custom:generateReleaseAssets UP-TO-DATE
[   +4 ms] > Task :plugin_custom:packageReleaseAssets
[   +2 ms] > Task :plugin_custom:packageReleaseRenderscript NO-SOURCE
[   +1 ms] > Task :plugin_custom:prepareLintJarForPublish UP-TO-DATE
[  +32 ms] > Task :plugin_custom:prepareReleaseArtProfile
[  +39 ms] > Task :plugin_custom:processReleaseJavaRes NO-SOURCE
[  +20 ms] > Task :package_info_plus:bundleReleaseLocalLintAar
[  +17 ms] > Task :plugin_custom:writeReleaseAarMetadata
[  +86 ms] > Task :open_file:bundleReleaseLocalLintAar
[   +6 ms] > Task :plugin_custom:generateReleaseRFile
[   +5 ms] > Task :plugin_custom:mergeReleaseJavaResource
[  +64 ms] > Task :path_provider_android:extractReleaseAnnotations
[ +408 ms] > Task :path_provider_android:compileReleaseJavaWithJavac
[   +4 ms] > Task :path_provider_android:mergeReleaseGeneratedProguardFiles
[   +1 ms] > Task :path_provider_android:mergeReleaseConsumerProguardFiles
[ +124 ms] > Task :path_provider_android:syncReleaseLibJars
[   +4 ms] > Task :path_provider_android:bundleReleaseLocalLintAar
[  +65 ms] > Task :plugin_custom:extractReleaseAnnotations
[ +390 ms] > Task :plugin_custom:compileReleaseJavaWithJavac
[   +1 ms] > Task :plugin_custom:mergeReleaseGeneratedProguardFiles
[   +2 ms] > Task :plugin_custom:mergeReleaseConsumerProguardFiles
[   +3 ms] > Task :plugin_custom:syncReleaseLibJars
[   +2 ms] > Task :plugin_custom:bundleReleaseLocalLintAar
[   +2 ms] > Task :kiosk_mode:preBuild UP-TO-DATE
[   +1 ms] > Task :kiosk_mode:preReleaseBuild UP-TO-DATE
[   +2 ms] Note: Some input files use or override a deprecated API.
[   +4 ms] Note: Recompile with -Xlint:deprecation for details.
[   +4 ms] > Task :kiosk_mode:compileReleaseAidl NO-SOURCE
[   +2 ms] > Task :kiosk_mode:mergeReleaseJniLibFolders
[   +1 ms] > Task :kiosk_mode:mergeReleaseNativeLibs NO-SOURCE
[        ] > Task :kiosk_mode:stripReleaseDebugSymbols NO-SOURCE
[   +2 ms] > Task :kiosk_mode:copyReleaseJniLibsProjectAndLocalJars
[   +4 ms] > Task :kiosk_mode:compileReleaseRenderscript NO-SOURCE
[   +3 ms] > Task :kiosk_mode:generateReleaseBuildConfig
[   +5 ms] > Task :kiosk_mode:generateReleaseResValues
[   +2 ms] > Task :kiosk_mode:generateReleaseResources
[  +57 ms] > Task :kiosk_mode:packageReleaseResources
[   +1 ms] > Task :kiosk_mode:parseReleaseLocalResources
[   +2 ms] > Task :kiosk_mode:javaPreCompileRelease
[   +3 ms] > Task :kiosk_mode:mergeReleaseShaders
[        ] > Task :kiosk_mode:compileReleaseShaders NO-SOURCE
[   +1 ms] > Task :kiosk_mode:generateReleaseAssets UP-TO-DATE
[   +3 ms] > Task :kiosk_mode:packageReleaseAssets
[   +5 ms] > Task :kiosk_mode:packageReleaseRenderscript NO-SOURCE
[        ] > Task :kiosk_mode:processReleaseManifest
[   +1 ms] > Task :kiosk_mode:prepareLintJarForPublish UP-TO-DATE
[   +2 ms] > Task :kiosk_mode:prepareReleaseArtProfile
[   +4 ms] > Task :kiosk_mode:processReleaseJavaRes NO-SOURCE
[   +6 ms] > Task :quick_usb:preBuild UP-TO-DATE
[        ] > Task :quick_usb:preReleaseBuild UP-TO-DATE
[   +3 ms] > Task :kiosk_mode:writeReleaseAarMetadata
[        ] > Task :quick_usb:compileReleaseAidl NO-SOURCE
[   +1 ms] > Task :quick_usb:mergeReleaseJniLibFolders
[  +56 ms] > Task :quick_usb:mergeReleaseNativeLibs NO-SOURCE
[   +6 ms] > Task :quick_usb:stripReleaseDebugSymbols NO-SOURCE
[   +1 ms] > Task :quick_usb:copyReleaseJniLibsProjectAndLocalJars
[   +1 ms] > Task :quick_usb:compileReleaseRenderscript NO-SOURCE
[        ] > Task :quick_usb:generateReleaseBuildConfig
[   +2 ms] > Task :quick_usb:generateReleaseResValues
[   +1 ms] > Task :quick_usb:generateReleaseResources
[   +2 ms] > Task :quick_usb:packageReleaseResources
[        ] > Task :quick_usb:parseReleaseLocalResources
[        ] > Task :quick_usb:javaPreCompileRelease
[        ] > Task :quick_usb:mergeReleaseShaders
[   +1 ms] > Task :quick_usb:compileReleaseShaders NO-SOURCE
[   +4 ms] > Task :quick_usb:generateReleaseAssets UP-TO-DATE
[  +89 ms] > Task :quick_usb:packageReleaseAssets
[   +2 ms] > Task :quick_usb:processReleaseManifest
[   +3 ms] > Task :quick_usb:packageReleaseRenderscript NO-SOURCE
[   +6 ms] > Task :quick_usb:prepareLintJarForPublish
[+1265 ms] > Task :quick_usb:generateReleaseRFile
[   +1 ms] > Task :quick_usb:prepareReleaseArtProfile
[        ] > Task :quick_usb:processReleaseJavaRes NO-SOURCE
[        ] > Task :quick_usb:writeReleaseAarMetadata
[        ] > Task :kiosk_mode:generateReleaseRFile
[+12805 ms] > Task :app:compileFlutterBuildRelease
[   +1 ms] lib/models/q_routes.dart:114:11: Warning: Operand of null-aware operation '??' has type 'int' which excludes null.
[        ]       id: id ?? this.id,
[        ]           ^
[        ] lib/models/q_routes.dart:115:15: Warning: Operand of null-aware operation '??' has type 'int' which excludes null.
[   +1 ms]       cat_id: cat_id ?? this.cat_id,
[   +1 ms]               ^
[        ] lib/models/q_routes.dart:116:13: Warning: Operand of null-aware operation '??' has type 'String' which excludes null.
[   +1 ms]       desc: desc ?? this.desc,
[   +2 ms]             ^
[        ] lib/models/q_routes.dart:117:15: Warning: Operand of null-aware operation '??' has type 'String' which excludes null.
[        ]       status: status ?? this.status,
[        ]               ^
[        ] lib/models/q_routes.dart:118:19: Warning: Operand of null-aware operation '??' has type 'String' which excludes null.
[   +3 ms]       dt_created: dt_created ?? this.dt_created,
[        ]                   ^
[        ] lib/models/q_routes.dart:119:16: Warning: Operand of null-aware operation '??' has type 'String' which excludes null.
[        ]       menu_yn: menu_yn ?? this.menu_yn,
[        ]                ^
[        ] lib/models/q_routes.dart:120:17: Warning: Operand of null-aware operation '??' has type 'String' which excludes null.
[        ]       pre_text: pre_text ?? this.pre_text,
[        ]                 ^
[        ] lib/models/q_routes.dart:121:18: Warning: Operand of null-aware operation '??' has type 'int' which excludes null.
[        ]       parent_id: parent_id ?? this.parent_id,
[        ]                  ^
[  +69 ms] ../../../flutter/.pub-cache/hosted/pub.dartlang.org/flare_flutter-3.0.2/lib/flare_render_box.dart:167:26: Warning: Operand of nu
[   +1 ms]  - 'SchedulerBinding' is from 'package:flutter/src/scheduler/binding.dart' ('../../../flutter/packages/flutter/lib/src/scheduler
[   +1 ms]         SchedulerBinding.instance?.cancelFrameCallbackWithId(_frameCallbackID);
[   +2 ms]                          ^
[        ] ../../../flutter/.pub-cache/hosted/pub.dartlang.org/flare_flutter-3.0.2/lib/flare_render_box.dart:170:28: Warning: Operand of nu
[        ]  - 'SchedulerBinding' is from 'package:flutter/src/scheduler/binding.dart' ('../../../flutter/packages/flutter/lib/src/scheduler
[        ]           SchedulerBinding.instance?.scheduleFrameCallback(_beginFrame) ?? -1;
[   +2 ms]                            ^
[        ] ../../../flutter/.pub-cache/hosted/pub.dartlang.org/flare_flutter-3.0.2/lib/flare_render_box.dart:272:26: Warning: Operand of nu
[        ]  - 'SchedulerBinding' is from 'package:flutter/src/scheduler/binding.dart' ('../../../flutter/packages/flutter/lib/src/scheduler
[        ]         SchedulerBinding.instance?.cancelFrameCallbackWithId(_frameCallbackID);
[        ]                          ^
[+24788 ms] > Task :app:packLibsflutterBuildRelease
[   +1 ms] > Task :app:preBuild UP-TO-DATE
[        ] > Task :app:preReleaseBuild UP-TO-DATE
[        ] > Task :app:compileReleaseAidl NO-SOURCE
[        ] > Task :app:compileReleaseRenderscript NO-SOURCE
[        ] > Task :app:generateReleaseBuildConfig
[ +103 ms] > Task :app:javaPreCompileRelease
[+1095 ms] > Task :kiosk_mode:compileReleaseKotlin
[ +109 ms] > Task :kiosk_mode:extractReleaseAnnotations
[ +396 ms] > Task :kiosk_mode:compileReleaseJavaWithJavac
[   +1 ms] > Task :kiosk_mode:mergeReleaseGeneratedProguardFiles
[        ] > Task :kiosk_mode:mergeReleaseConsumerProguardFiles
[        ] > Task :kiosk_mode:mergeReleaseJavaResource
[+1192 ms] > Task :quick_usb:compileReleaseKotlin FAILED
[   +1 ms] Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
[   +1 ms] You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or
[   +1 ms] See https://docs.gradle.org/7.4/userguide/command_line_interface.html#sec:command_line_warnings
[   +4 ms] 148 actionable tasks: 142 executed, 6 up-to-date
[   +2 ms] e: c:\Briefcase\flutter\.pub-cache\hosted\pub.dartlang.org\quick_usb-0.4.0\android\src\main\kotlin\com\example\quick_usb\QuickUs
[   +3 ms] e: c:\Briefcase\flutter\.pub-cache\hosted\pub.dartlang.org\quick_usb-0.4.0\android\src\main\kotlin\com\example\quick_usb\QuickUs
[        ] FAILURE: Build failed with an exception.
[        ] * What went wrong:
[        ] Execution failed for task ':quick_usb:compileReleaseKotlin'.
[        ] > Compilation error. See log for more details
[   +2 ms] * Try:
[        ] > Run with --stacktrace option to get the stack trace.
[   +1 ms] > 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 1m 3s
[ +575 ms] Running Gradle task 'assembleRelease'... (completed in 64.6s)
[   +3 ms] "flutter apk" took 65,503ms.
[   +4 ms] Gradle task assembleRelease failed with exit code 1
[   +2 ms] 
           #5      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #6      CommandRunner.runCommand (package:args/command_runner.dart:209:13)
           <asynchronous suspension>
           #7      FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:281:9)

           <asynchronous suspension>
           #8      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #9      FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:229:5)
           <asynchronous suspension>
           #10     run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:62:9)
           <asynchronous suspension>
           #11     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #12     main (package:flutter_tools/executable.dart:94:3)
           <asynchronous suspension>

[ +266 ms] ensureAnalyticsSent: 261ms
[   +2 ms] Running shutdown hooks
[        ] Shutdown hooks complete
[        ] exiting with code 1
Sunbreak commented 2 years ago

[ +37 ms] Found plugin plugin_custom at C:\Briefcase\Projects\Giz\custom_plugin\plugin_custom\ [ +53 ms] Found plugin kiosk_mode at c:\Briefcase\flutter.pub-cache\hosted\pub.dartlang.org\kiosk_mode-0.2.1\ [ +13 ms] Found plugin open_file at c:\Briefcase\flutter.pub-cache\hosted\pub.dartlang.org\open_file-3.2.1\ [ +4 ms] Found plugin package_info_plus at c:\Briefcase\flutter.pub-cache\hosted\pub.dartlang.org\package_info_plus-1.4.2\ [ +13 ms] Found plugin package_info_plus_linux at c:\Briefcase\flutter.pub-cache\hosted\pub.dartlang.org\package_info_plus_linux-1.0.5\ [ +8 ms] Found plugin package_info_plus_macos at c:\Briefcase\flutter.pub-cache\hosted\pub.dartlang.org\package_info_plus_macos-1.3.0\ [ +8 ms] Found plugin package_info_plus_web at c:\Briefcase\flutter.pub-cache\hosted\pub.dartlang.org\package_info_plus_web-1.0.5\ [ +9 ms] Found plugin package_info_plus_windows at c:\Briefcase\flutter.pub-cache\hosted\pub.dartlang.org\package_info_plus_windows-1.0. [ +5 ms] Found plugin path_provider at c:\Briefcase\flutter.pub-cache\hosted\pub.dartlang.org\path_provider-2.0.11\ [ +5 ms] Found plugin path_provider_android at c:\Briefcase\flutter.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.16\ [ +2 ms] Found plugin path_provider_ios at c:\Briefcase\flutter.pub-cache\hosted\pub.dartlang.org\path_provider_ios-2.0.10\ [ +2 ms] Found plugin path_provider_linux at c:\Briefcase\flutter.pub-cache\hosted\pub.dartlang.org\path_provider_linux-2.1.7\ [ +4 ms] Found plugin path_provider_macos at c:\Briefcase\flutter.pub-cache\hosted\pub.dartlang.org\path_provider_macos-2.0.6\ [ +5 ms] Found plugin path_provider_windows at c:\Briefcase\flutter.pub-cache\hosted\pub.dartlang.org\path_provider_windows-2.0.7\ [ +13 ms] Found plugin quick_usb at c:\Briefcase\flutter.pub-cache\hosted\pub.dartlang.org\quick_usb-0.4.0\ [ +22 ms] Found plugin updater at c:\Briefcase\flutter.pub-cache\hosted\pub.dartlang.org\updater-0.1.3\ [ +65 ms] Found plugin plugin_custom at C:\Briefcase\Projects\Giz\custom_plugin\plugin_custom\ [ +29 ms] Found plugin kiosk_mode at c:\Briefcase\flutter.pub-cache\hosted\pub.dartlang.org\kiosk_mode-0.2.1\ [ +8 ms] Found plugin open_file at c:\Briefcase\flutter.pub-cache\hosted\pub.dartlang.org\open_file-3.2.1\ [ +3 ms] Found plugin package_info_plus at c:\Briefcase\flutter.pub-cache\hosted\pub.dartlang.org\package_info_plus-1.4.2\ [ +2 ms] Found plugin package_info_plus_linux at c:\Briefcase\flutter.pub-cache\hosted\pub.dartlang.org\package_info_plus_linux-1.0.5\ [ +4 ms] Found plugin package_info_plus_macos at c:\Briefcase\flutter.pub-cache\hosted\pub.dartlang.org\package_info_plus_macos-1.3.0\ [ +2 ms] Found plugin package_info_plus_web at c:\Briefcase\flutter.pub-cache\hosted\pub.dartlang.org\package_info_plus_web-1.0.5\ [ +5 ms] Found plugin package_info_plus_windows at c:\Briefcase\flutter.pub-cache\hosted\pub.dartlang.org\package_info_plus_windows-1.0. [ +3 ms] Found plugin path_provider at c:\Briefcase\flutter.pub-cache\hosted\pub.dartlang.org\path_provider-2.0.11\ [ +4 ms] Found plugin path_provider_android at c:\Briefcase\flutter.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.16\ [ +1 ms] Found plugin path_provider_ios at c:\Briefcase\flutter.pub-cache\hosted\pub.dartlang.org\path_provider_ios-2.0.10\ [ +4 ms] Found plugin path_provider_linux at c:\Briefcase\flutter.pub-cache\hosted\pub.dartlang.org\path_provider_linux-2.1.7\ [ +2 ms] Found plugin path_provider_macos at c:\Briefcase\flutter.pub-cache\hosted\pub.dartlang.org\path_provider_macos-2.0.6\ [ +5 ms] Found plugin path_provider_windows at c:\Briefcase\flutter.pub-cache\hosted\pub.dartlang.org\path_provider_windows-2.0.7\ [ +6 ms] Found plugin quick_usb at c:\Briefcase\flutter.pub-cache\hosted\pub.dartlang.org\quick_usb-0.4.0\ [ +14 ms] Found plugin updater at c:\Briefcase\flutter.pub-cache\hosted\pub.dartlang.org\updater-0.1.3\

Apparently it is your project. Could you try quick_usb's example?

ExzaSolutions commented 2 years ago

I created a new flutter project, populated pubspec.yaml with libraries used. When I comment out quick_usb it works.When I return it it fails. It used to work in my older project,but had to upgrade since flutter upgraded. D oyou still want me to test?

Sunbreak commented 2 years ago

If you could upload or open source your project's source code, I maybe help

Or I could only guarantee the example is working

KimLyu commented 2 years ago

Hi, I try build example , and i also have same error.

error message as below:

e: C:\Users\setzeryeh\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\quick_usb-0.4.0\android\src\main\kotlin\com\example\quick_usb\QuickUsbPlugin.kt: (20, 52): Unresolved reference: S e: C:\Users\setzeryeh\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\quick_usb-0.4.0\android\src\main\kotlin\com\example\quick_usb\QuickUsbPlugin.kt: (21, 19): Unresolved reference: FLAG_MUTABLE

FAILURE: Build failed with an exception.

\repo\flutterProjs\quick_usb_example\build\quick_usb\kotlin\compileReleaseKotlin\local-state]) [ ] :quick_usb:compileReleaseKotlin (Thread[Execution worker Thread 3,5,main]) completed. Took 0.524 secs. [ ] e: C:\Users\setzeryeh\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\quick_usb-0.4.0\android\src\main\kotlin\com\example\quick_usb\QuickUsbPlugin.kt: (20, 52): Unresolved reference: S [ +1 ms] e: C:\Users\setzeryeh\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\quick_usb-0.4.0\android\src\main\kotlin\com\example\quick_usb\QuickUsbPlugin.kt: (21, 19): Unresolved reference: FLAG_MUTABLE [ +20 ms] > Task :app:packLibsflutterBuildRelease [ ] Caching disabled for task ':app:packLibsflutterBuildRelease' because: [ ] Build cache is disabled [ ] Task ':app:packLibsflutterBuildRelease' is not up-to-date because: [ ] No history is available. [ ] :app:packLibsflutterBuildRelease (Thread[Execution worker Thread 4,5,main]) completed. Took 0.533 secs. [ ] FAILURE: Build failed with an exception. [ ] * What went wrong: [ ] Execution failed for task ':quick_usb:compileReleaseKotlin'. [ ] > A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction [ ] > Compilation error. See log for more details

Sunbreak commented 2 years ago

Try https://github.com/woodemi/quick.flutter/issues/39#issuecomment-1212157128