leancodepl / patrol

Flutter-first UI testing framework. Ready for action!
https://patrol.leancode.co
Apache License 2.0
911 stars 142 forks source link

Unable to build in Android #1990

Closed lravihs closed 11 months ago

lravihs commented 12 months ago

Steps to reproduce

Do the setup which is mentioned in the patrol website. Then run with the patrol test command My project uses kotlin_version 1.7.10 , gradle distribution 7.2.0. , Jdk 11

Actual results

Building apk with entrypoint test_bundle.dart... warning: [options] source value 8 is obsolete and will be removed in a future release warning: [options] target value 8 is obsolete and will be removed in a future release warning: [options] To suppress warnings about obsolete options, use -Xlint:-options. 3 warnings warning: [options] source value 8 is obsolete and will be removed in a future release warning: [options] target value 8 is obsolete and will be removed in a future release warning: [options] To suppress warnings about obsolete options, use -Xlint:-options. 3 warnings warning: [options] source value 8 is obsolete and will be removed in a future release warning: [options] target value 8 is obsolete and will be removed in a future release warning: [options] To suppress warnings about obsolete options, use -Xlint:-options. 3 warnings warning: [options] source value 8 is obsolete and will be removed in a future release warning: [options] target value 8 is obsolete and will be removed in a future release warning: [options] To suppress warnings about obsolete options, use -Xlint:-options. 3 warnings warning: [options] source value 8 is obsolete and will be removed in a future release warning: [options] target value 8 is obsolete and will be removed in a future release warning: [options] To suppress warnings about obsolete options, use -Xlint:-options. 3 warnings warning: [options] source value 8 is obsolete and will be removed in a future release warning: [options] target value 8 is obsolete and will be removed in a future release warning: [options] To suppress warnings about obsolete options, use -Xlint:-options. 3 warnings warning: [options] source value 8 is obsolete and will be removed in a future release warning: [options] target value 8 is obsolete and will be removed in a future release warning: [options] To suppress warnings about obsolete options, use -Xlint:-options. 3 warnings warning: [options] source value 8 is obsolete and will be removed in a future release warning: [options] target value 8 is obsolete and will be removed in a future release warning: [options] To suppress warnings about obsolete options, use -Xlint:-options. Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: /Users/lallu/.pub-cache/hosted/pub.dev/firebase_messaging-14.7.2/android/src/main/java/io/flutter/plugins/firebase/messaging/FlutterFirebaseMessagingPlugin.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 3 warnings warning: [options] source value 8 is obsolete and will be removed in a future release warning: [options] target value 8 is obsolete and will be removed in a future release warning: [options] To suppress warnings about obsolete options, use -Xlint:-options. 3 warnings warning: [options] source value 8 is obsolete and will be removed in a future release warning: [options] target value 8 is obsolete and will be removed in a future release warning: [options] To suppress warnings about obsolete options, use -Xlint:-options. 3 warnings warning: [options] source value 8 is obsolete and will be removed in a future release warning: [options] target value 8 is obsolete and will be removed in a future release warning: [options] To suppress warnings about obsolete options, use -Xlint:-options. 3 warnings warning: [options] source value 8 is obsolete and will be removed in a future release warning: [options] target value 8 is obsolete and will be removed in a future release warning: [options] To suppress warnings about obsolete options, use -Xlint:-options. 3 warnings warning: [options] source value 8 is obsolete and will be removed in a future release warning: [options] target value 8 is obsolete and will be removed in a future release warning: [options] To suppress warnings about obsolete options, use -Xlint:-options. 3 warnings warning: [options] source value 8 is obsolete and will be removed in a future release warning: [options] target value 8 is obsolete and will be removed in a future release warning: [options] To suppress warnings about obsolete options, use -Xlint:-options. 3 warnings warning: [options] source value 8 is obsolete and will be removed in a future release warning: [options] target value 8 is obsolete and will be removed in a future release warning: [options] To suppress warnings about obsolete options, use -Xlint:-options. Note: /Users/lallu/.pub-cache/hosted/pub.dev/geolocator_android-4.1.7/android/src/main/java/com/baseflow/geolocator/location/FusedLocationClient.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. 3 warnings warning: [options] source value 8 is obsolete and will be removed in a future release warning: [options] target value 8 is obsolete and will be removed in a future release warning: [options] To suppress warnings about obsolete options, use -Xlint:-options. 3 warnings warning: [options] source value 8 is obsolete and will be removed in a future release warning: [options] target value 8 is obsolete and will be removed in a future release warning: [options] To suppress warnings about obsolete options, use -Xlint:-options. 3 warnings warning: [options] source value 8 is obsolete and will be removed in a future release warning: [options] target value 8 is obsolete and will be removed in a future release warning: [options] To suppress warnings about obsolete options, use -Xlint:-options. 3 warnings warning: [options] source value 8 is obsolete and will be removed in a future release warning: [options] target value 8 is obsolete and will be removed in a future release warning: [options] To suppress warnings about obsolete options, use -Xlint:-options. 3 warnings warning: [options] source value 8 is obsolete and will be removed in a future release warning: [options] target value 8 is obsolete and will be removed in a future release warning: [options] To suppress warnings about obsolete options, use -Xlint:-options. 3 warnings warning: [options] source value 8 is obsolete and will be removed in a future release warning: [options] target value 8 is obsolete and will be removed in a future release warning: [options] To suppress warnings about obsolete options, use -Xlint:-options. 3 warnings warning: [options] source value 8 is obsolete and will be removed in a future release warning: [options] target value 8 is obsolete and will be removed in a future release warning: [options] To suppress warnings about obsolete options, use -Xlint:-options. 3 warnings warning: [options] source value 8 is obsolete and will be removed in a future release warning: [options] target value 8 is obsolete and will be removed in a future release warning: [options] To suppress warnings about obsolete options, use -Xlint:-options. 3 warnings warning: [options] source value 8 is obsolete and will be removed in a future release warning: [options] target value 8 is obsolete and will be removed in a future release warning: [options] To suppress warnings about obsolete options, use -Xlint:-options. 3 warnings warning: [options] source value 8 is obsolete and will be removed in a future release warning: [options] target value 8 is obsolete and will be removed in a future release warning: [options] To suppress warnings about obsolete options, use -Xlint:-options. 3 warnings warning: [options] source value 8 is obsolete and will be removed in a future release warning: [options] target value 8 is obsolete and will be removed in a future release warning: [options] To suppress warnings about obsolete options, use -Xlint:-options. 3 warnings warning: [options] source value 8 is obsolete and will be removed in a future release warning: [options] target value 8 is obsolete and will be removed in a future release warning: [options] To suppress warnings about obsolete options, use -Xlint:-options. 3 warnings warning: [options] source value 8 is obsolete and will be removed in a future release warning: [options] target value 8 is obsolete and will be removed in a future release warning: [options] To suppress warnings about obsolete options, use -Xlint:-options. 3 warnings warning: [options] source value 8 is obsolete and will be removed in a future release warning: [options] target value 8 is obsolete and will be removed in a future release warning: [options] To suppress warnings about obsolete options, use -Xlint:-options. 3 warnings warning: [options] source value 8 is obsolete and will be removed in a future release warning: [options] target value 8 is obsolete and will be removed in a future release warning: [options] To suppress warnings about obsolete options, use -Xlint:-options. 3 warnings warning: [options] source value 8 is obsolete and will be removed in a future release warning: [options] target value 8 is obsolete and will be removed in a future release warning: [options] To suppress warnings about obsolete options, use -Xlint:-options. Note: /Users/lallu/.pub-cache/hosted/pub.dev/location-4.4.0/android/src/main/java/com/lyokone/location/FlutterLocation.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. 3 warnings warning: [options] source value 8 is obsolete and will be removed in a future release warning: [options] target value 8 is obsolete and will be removed in a future release warning: [options] To suppress warnings about obsolete options, use -Xlint:-options. 3 warnings ERROR:/Users/lallu/Documents/GitHub/Next-Gen-App/build/firebase_messaging/intermediates/runtime_library_classes_dir/debug/io/flutter/plugins/firebase/messaging/FlutterFirebaseMessagingBackgroundExecutor$2.class: D8: java.lang.NullPointerException: Cannot invoke "String.length()" because "" is null ERROR:/Users/lallu/Documents/GitHub/Next-Gen-App/build/firebase_core/intermediates/runtime_library_classes_dir/debug/io/flutter/plugins/firebase/core/GeneratedAndroidFirebaseCore$FirebaseCoreHostApi$3.class: D8: java.lang.NullPointerException: Cannot invoke "String.length()" because "" is null ERROR:/Users/lallu/Documents/GitHub/Next-Gen-App/build/firebase_analytics/intermediates/runtime_library_classes_dir/debug/io/flutter/plugins/firebase/analytics/FlutterFirebaseAnalyticsPlugin$1.class: D8: java.lang.NullPointerException: Cannot invoke "String.length()" because "" is null ERROR:/Users/lallu/Documents/GitHub/Next-Gen-App/build/geolocator_android/intermediates/runtime_library_classes_dir/debug/com/baseflow/geolocator/GeolocatorLocationService$LocalBinder.class: D8: java.lang.NullPointerException: Cannot invoke "String.length()" because "" is null ERROR:/Users/lallu/Documents/GitHub/Next-Gen-App/build/flutter_local_notifications/intermediates/runtime_library_classes_dir/debug/com/dexterous/flutterlocalnotifications/RuntimeTypeAdapterFactory$1.class: D8: java.lang.NullPointerException: Cannot invoke "String.length()" because "" is null ERROR:/Users/lallu/Documents/GitHub/Next-Gen-App/build/image_picker_android/intermediates/runtime_library_classes_dir/debug/io/flutter/plugins/imagepicker/Messages$SourceCamera.class: D8: java.lang.NullPointerException: Cannot invoke "String.length()" because "" is null ERROR:/Users/lallu/Documents/GitHub/Next-Gen-App/build/google_maps_flutter_android/intermediates/runtime_library_classes_dir/debug/io/flutter/plugins/googlemaps/TileProviderController$Worker.class: D8: java.lang.NullPointerException: Cannot invoke "String.length()" because "" is null ERROR:/Users/lallu/Documents/GitHub/Next-Gen-App/build/local_auth_android/intermediates/runtime_library_classes_dir/debug/io/flutter/plugins/localauth/Messages$LocalAuthApi$1.class: D8: java.lang.NullPointerException: Cannot invoke "String.length()" because "" is null ERROR:/Users/lallu/Documents/GitHub/Next-Gen-App/build/camera_android/intermediates/runtime_library_classes_dir/debug/io/flutter/plugins/camera/DartMessenger$3.class: D8: java.lang.NullPointerException: Cannot invoke "String.length()" because "" is null ERROR:/Users/lallu/Documents/GitHub/Next-Gen-App/build/url_launcher_android/intermediates/runtime_library_classes_dir/debug/io/flutter/plugins/urllauncher/WebViewActivity$1.class: D8: java.lang.NullPointerException: Cannot invoke "String.length()" because "" is null ERROR:/Users/lallu/Documents/GitHub/Next-Gen-App/build/connectivity_plus/intermediates/runtime_library_classes_dir/debug/dev/fluttercommunity/plus/connectivity/ConnectivityBroadcastReceiver$1.class: D8: java.lang.NullPointerException: Cannot invoke "String.length()" because "" is null ERROR:/Users/lallu/Documents/GitHub/Next-Gen-App/build/webview_flutter_android/intermediates/runtime_library_classes_dir/debug/io/flutter/plugins/webviewflutter/GeneratedAndroidWebView$CookieManagerHostApi$1.class: D8: java.lang.NullPointerException: Cannot invoke "String.length()" because "" is null ERROR:/Users/lallu/Documents/GitHub/Next-Gen-App/build/location/intermediates/runtime_library_classes_dir/debug/com/lyokone/location/LocationPlugin$1.class: D8: java.lang.NullPointerException: Cannot invoke "String.length()" because "" is null warning: [options] source value 8 is obsolete and will be removed in a future release warning: [options] target value 8 is obsolete and will be removed in a future release warning: [options] To suppress warnings about obsolete options, use -Xlint:-options. 3 warnings

    FAILURE: Build failed with an exception.

    * What went wrong:
    Execution failed for task ':app:mergeLibDexJkDebug'.
    > Could not resolve all files for configuration ':app:jkDebugRuntimeClasspath'.
       > Failed to transform debug (project :firebase_messaging) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, com.android.build.api.attributes.AgpVersionAttr=7.2.0, com.android.build.api.attributes.BuildTypeAttr=debug, com.android.build.gradle.internal.attributes.VariantAttr=debug, dexing-enable-desugaring=true, dexing-is-debuggable=true, dexing-min-sdk=26, org.gradle.libraryelements=classes, org.gradle.usage=java-runtime}.
          > Execution failed for DexingNoClasspathTransform: /Users/lallu/Documents/GitHub/Next-Gen-App/build/firebase_messaging/intermediates/runtime_library_classes_dir/debug.
             > Error while dexing.
       > Failed to transform debug (project :firebase_analytics) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, com.android.build.api.attributes.AgpVersionAttr=7.2.0, com.android.build.api.attributes.BuildTypeAttr=debug, com.android.build.gradle.internal.attributes.VariantAttr=debug, dexing-enable-desugaring=true, dexing-is-debuggable=true, dexing-min-sdk=26, org.gradle.libraryelements=classes, org.gradle.usage=java-runtime}.
          > Execution failed for DexingNoClasspathTransform: /Users/lallu/Documents/GitHub/Next-Gen-App/build/firebase_analytics/intermediates/runtime_library_classes_dir/debug.
             > Error while dexing.
       > Failed to transform debug (project :firebase_core) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, com.android.build.api.attributes.AgpVersionAttr=7.2.0, com.android.build.api.attributes.BuildTypeAttr=debug, com.android.build.gradle.internal.attributes.VariantAttr=debug, dexing-enable-desugaring=true, dexing-is-debuggable=true, dexing-min-sdk=26, org.gradle.libraryelements=classes, org.gradle.usage=java-runtime}.
          > Execution failed for DexingNoClasspathTransform: /Users/lallu/Documents/GitHub/Next-Gen-App/build/firebase_core/intermediates/runtime_library_classes_dir/debug.
             > Error while dexing.
       > Failed to transform debug (project :geolocator_android) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, com.android.build.api.attributes.AgpVersionAttr=7.2.0, com.android.build.api.attributes.BuildTypeAttr=debug, com.android.build.gradle.internal.attributes.VariantAttr=debug, dexing-enable-desugaring=true, dexing-is-debuggable=true, dexing-min-sdk=26, org.gradle.libraryelements=classes, org.gradle.usage=java-runtime}.
          > Execution failed for DexingNoClasspathTransform: /Users/lallu/Documents/GitHub/Next-Gen-App/build/geolocator_android/intermediates/runtime_library_classes_dir/debug.
             > Error while dexing.
       > Failed to transform debug (project :flutter_local_notifications) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, com.android.build.api.attributes.AgpVersionAttr=7.2.0, com.android.build.api.attributes.BuildTypeAttr=debug, com.android.build.gradle.internal.attributes.VariantAttr=debug, dexing-enable-desugaring=true, dexing-is-debuggable=true, dexing-min-sdk=26, org.gradle.libraryelements=classes, org.gradle.usage=java-runtime}.
          > Execution failed for DexingNoClasspathTransform: /Users/lallu/Documents/GitHub/Next-Gen-App/build/flutter_local_notifications/intermediates/runtime_library_classes_dir/debug.
             > Error while dexing.
       > Failed to transform debug (project :image_picker_android) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, com.android.build.api.attributes.AgpVersionAttr=7.2.0, com.android.build.api.attributes.BuildTypeAttr=debug, com.android.build.gradle.internal.attributes.VariantAttr=debug, dexing-enable-desugaring=true, dexing-is-debuggable=true, dexing-min-sdk=26, org.gradle.libraryelements=classes, org.gradle.usage=java-runtime}.
          > Execution failed for DexingNoClasspathTransform: /Users/lallu/Documents/GitHub/Next-Gen-App/build/image_picker_android/intermediates/runtime_library_classes_dir/debug.
             > Error while dexing.
       > Failed to transform debug (project :google_maps_flutter_android) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, com.android.build.api.attributes.AgpVersionAttr=7.2.0, com.android.build.api.attributes.BuildTypeAttr=debug, com.android.build.gradle.internal.attributes.VariantAttr=debug, dexing-enable-desugaring=true, dexing-is-debuggable=true, dexing-min-sdk=26, org.gradle.libraryelements=classes, org.gradle.usage=java-runtime}.
          > Execution failed for DexingNoClasspathTransform: /Users/lallu/Documents/GitHub/Next-Gen-App/build/google_maps_flutter_android/intermediates/runtime_library_classes_dir/debug.
             > Error while dexing.
       > Failed to transform debug (project :camera_android) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, com.android.build.api.attributes.AgpVersionAttr=7.2.0, com.android.build.api.attributes.BuildTypeAttr=debug, com.android.build.gradle.internal.attributes.VariantAttr=debug, dexing-enable-desugaring=true, dexing-is-debuggable=true, dexing-min-sdk=26, org.gradle.libraryelements=classes, org.gradle.usage=java-runtime}.
          > Execution failed for DexingNoClasspathTransform: /Users/lallu/Documents/GitHub/Next-Gen-App/build/camera_android/intermediates/runtime_library_classes_dir/debug.
             > Error while dexing.
       > Failed to transform debug (project :local_auth_android) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, com.android.build.api.attributes.AgpVersionAttr=7.2.0, com.android.build.api.attributes.BuildTypeAttr=debug, com.android.build.gradle.internal.attributes.VariantAttr=debug, dexing-enable-desugaring=true, dexing-is-debuggable=true, dexing-min-sdk=26, org.gradle.libraryelements=classes, org.gradle.usage=java-runtime}.
          > Execution failed for DexingNoClasspathTransform: /Users/lallu/Documents/GitHub/Next-Gen-App/build/local_auth_android/intermediates/runtime_library_classes_dir/debug.
             > Error while dexing.
       > Failed to transform debug (project :url_launcher_android) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, com.android.build.api.attributes.AgpVersionAttr=7.2.0, com.android.build.api.attributes.BuildTypeAttr=debug, com.android.build.gradle.internal.attributes.VariantAttr=debug, dexing-enable-desugaring=true, dexing-is-debuggable=true, dexing-min-sdk=26, org.gradle.libraryelements=classes, org.gradle.usage=java-runtime}.
          > Execution failed for DexingNoClasspathTransform: /Users/lallu/Documents/GitHub/Next-Gen-App/build/url_launcher_android/intermediates/runtime_library_classes_dir/debug.
             > Error while dexing.
       > Failed to transform debug (project :connectivity_plus) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, com.android.build.api.attributes.AgpVersionAttr=7.2.0, com.android.build.api.attributes.BuildTypeAttr=debug, com.android.build.gradle.internal.attributes.VariantAttr=debug, dexing-enable-desugaring=true, dexing-is-debuggable=true, dexing-min-sdk=26, org.gradle.libraryelements=classes, org.gradle.usage=java-runtime}.
          > Execution failed for DexingNoClasspathTransform: /Users/lallu/Documents/GitHub/Next-Gen-App/build/connectivity_plus/intermediates/runtime_library_classes_dir/debug.
             > Error while dexing.
       > Failed to transform debug (project :webview_flutter_android) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, com.android.build.api.attributes.AgpVersionAttr=7.2.0, com.android.build.api.attributes.BuildTypeAttr=debug, com.android.build.gradle.internal.attributes.VariantAttr=debug, dexing-enable-desugaring=true, dexing-is-debuggable=true, dexing-min-sdk=26, org.gradle.libraryelements=classes, org.gradle.usage=java-runtime}.
          > Execution failed for DexingNoClasspathTransform: /Users/lallu/Documents/GitHub/Next-Gen-App/build/webview_flutter_android/intermediates/runtime_library_classes_dir/debug.
             > Error while dexing.
       > Failed to transform debug (project :location) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, com.android.build.api.attributes.AgpVersionAttr=7.2.0, com.android.build.api.attributes.BuildTypeAttr=debug, com.android.build.gradle.internal.attributes.VariantAttr=debug, dexing-enable-desugaring=true, dexing-is-debuggable=true, dexing-min-sdk=26, org.gradle.category=library, org.gradle.jvm.environment=android, org.gradle.libraryelements=classes, org.gradle.usage=java-runtime, org.jetbrains.kotlin.platform.type=androidJvm}.
          > Execution failed for DexingNoClasspathTransform: /Users/lallu/Documents/GitHub/Next-Gen-App/build/location/intermediates/runtime_library_classes_dir/debug.
             > Error while dexing.

    * 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 41s

✗ Failed to build apk with entrypoint test_bundle.dart (Gradle build failed with code 1) (42.3s) Exception: Gradle build failed with code 1 See the logs above to learn what happened. Also consider running with --verbose. If the logs still aren't useful, then it's a bug - please report it. Exception: Gradle build failed with code 1

0 AndroidTestBackend.build. (package:patrol_cli/src/android/android_test_backend.dart:67:9)

#1 DisposeScope.run (package:dispose_scope/src/dispose_scope.dart:46:7) #2 AndroidTestBackend.build (package:patrol_cli/src/android/android_test_backend.dart:42:5) #3 TestCommand._build (package:patrol_cli/src/commands/test.dart:234:7) #4 TestCommand.run (package:patrol_cli/src/commands/test.dart:167:5) #5 CommandRunner.runCommand (package:args/command_runner.dart:212:13) #6 PatrolCommandRunner.runCommand (package:patrol_cli/src/runner/patrol_command_runner.dart:321:18) #7 PatrolCommandRunner.run (package:patrol_cli/src/runner/patrol_command_runner.dart:265:18) #8 patrolCommandRunner (package:patrol_cli/src/runner/patrol_command_runner.dart:77:20) #9 main (file:///Users/lallu/.pub-cache/hosted/pub.dev/patrol_cli-2.2.2/bin/main.dart:6:20) ### Logs Received 1 test target(s) Received test target: /Users/lallu/Documents/GitHub/Next-Gen-App/integration_test/example_test.dart Generated entrypoint /Users/lallu/Documents/GitHub/Next-Gen-App/integration_test/test_bundle.dart with 1 bundled test(s) Received Android flavor: jk Received iOS flavor: jk $ flutter --no-version-check devices --machine No device specified, using the first one (emulator-5554) Received 1 device(s) to run on Received device: emulator-5554 Received 7 --dart-define(s) (0 custom, 7 internal) Received internal --dart-define: PATROL_WAIT=0 Received internal --dart-define: PATROL_APP_PACKAGE_NAME=com.paytronix.nexgenfl Received internal --dart-define: PATROL_APP_BUNDLE_ID=com.paytronix.nexgenfl Received internal --dart-define: PATROL_ANDROID_APP_NAME=NGA JK Cafe Received internal --dart-define: PATROL_IOS_APP_NAME=NGA JK Cafe Received internal --dart-define: INTEGRATION_TEST_SHOULD_REPORT_RESULTS_TO_NATIVE=false Received internal --dart-define: PATROL_TEST_LABEL_ENABLED=true • Building apk with entrypoint test_bundle.dart... $ ./gradlew :app:assembleJkDebug -Ptarget=/Users/lallu/Documents/GitHub/Next-Gen-App/integration_test/test_bundle.dart -Pdart-defines=UEFUUk9MX1dBSVQ9MA==,UEFUUk9MX0FQUF9QQUNLQUdFX05BTUU9Y29tLnBheXRyb25peC5uZXhnZW5mbA==,UEFUUk9MX0FQUF9CVU5ETEVfSUQ9Y29tLnBheXRyb25peC5uZXhnZW5mbA==,UEFUUk9MX0FORFJPSURfQVBQX05BTUU9TkdBIEpLIENhZmU=,UEFUUk9MX0lPU19BUFBfTkFNRT1OR0EgSksgQ2FmZQ==,SU5URUdSQVRJT05fVEVTVF9TSE9VTERfUkVQT1JUX1JFU1VMVFNfVE9fTkFUSVZFPWZhbHNl,UEFUUk9MX1RFU1RfTEFCRUxfRU5BQkxFRD10cnVl : : > Configure project :app : Warning: The 'kotlin-android-extensions' Gradle plugin is deprecated. Please use this migration guide (https://goo.gle/kotlin-android-extensions-deprecation) to start working with View Binding (https://developer.android.com/topic/libraries/view-binding) and the 'kotlin-parcelize' plugin. : WARNING:We recommend using a newer Android Gradle plugin to use compileSdk = 33 : : This Android Gradle plugin (7.2.0) was tested up to compileSdk = 32 : : This warning can be suppressed by adding : android.suppressUnsupportedCompileSdk=33 : to this project's gradle.properties : : The build will continue, but you are strongly encouraged to update your project to : use a newer Android Gradle Plugin that has been tested with compileSdk = 33 : ERROR:/Users/lallu/Documents/GitHub/Next-Gen-App/build/firebase_analytics/intermediates/runtime_library_classes_dir/debug/io/flutter/plugins/firebase/analytics/FlutterFirebaseAnalyticsPlugin$1.class: D8: java.lang.NullPointerException ERROR:/Users/lallu/Documents/GitHub/Next-Gen-App/build/firebase_core/intermediates/runtime_library_classes_dir/debug/io/flutter/plugins/firebase/core/GeneratedAndroidFirebaseCore$FirebaseCoreHostApi$3.class: D8: java.lang.NullPointerException ERROR:/Users/lallu/Documents/GitHub/Next-Gen-App/build/firebase_messaging/intermediates/runtime_library_classes_dir/debug/io/flutter/plugins/firebase/messaging/FlutterFirebaseMessagingBackgroundExecutor$2.class: D8: java.lang.NullPointerException ERROR:/Users/lallu/Documents/GitHub/Next-Gen-App/build/geolocator_android/intermediates/runtime_library_classes_dir/debug/com/baseflow/geolocator/GeolocatorLocationService$LocalBinder.class: D8: java.lang.NullPointerException ERROR:/Users/lallu/Documents/GitHub/Next-Gen-App/build/flutter_local_notifications/intermediates/runtime_library_classes_dir/debug/com/dexterous/flutterlocalnotifications/RuntimeTypeAdapterFactory$1.class: D8: java.lang.NullPointerException ERROR:/Users/lallu/Documents/GitHub/Next-Gen-App/build/image_picker_android/intermediates/runtime_library_classes_dir/debug/io/flutter/plugins/imagepicker/Messages$SourceCamera.class: D8: java.lang.NullPointerException ERROR:/Users/lallu/Documents/GitHub/Next-Gen-App/build/google_maps_flutter_android/intermediates/runtime_library_classes_dir/debug/io/flutter/plugins/googlemaps/TileProviderController$Worker.class: D8: java.lang.NullPointerException ERROR:/Users/lallu/Documents/GitHub/Next-Gen-App/build/local_auth_android/intermediates/runtime_library_classes_dir/debug/io/flutter/plugins/localauth/Messages$LocalAuthApi$1.class: D8: java.lang.NullPointerException ERROR:/Users/lallu/Documents/GitHub/Next-Gen-App/build/connectivity_plus/intermediates/runtime_library_classes_dir/debug/dev/fluttercommunity/plus/connectivity/ConnectivityBroadcastReceiver$1.class: D8: java.lang.NullPointerException ERROR:/Users/lallu/Documents/GitHub/Next-Gen-App/build/url_launcher_android/intermediates/runtime_library_classes_dir/debug/io/flutter/plugins/urllauncher/WebViewActivity$1.class: D8: java.lang.NullPointerException ERROR:/Users/lallu/Documents/GitHub/Next-Gen-App/build/location/intermediates/runtime_library_classes_dir/debug/com/lyokone/location/LocationPlugin$1.class: D8: java.lang.NullPointerException ERROR:/Users/lallu/Documents/GitHub/Next-Gen-App/build/camera_android/intermediates/runtime_library_classes_dir/debug/io/flutter/plugins/camera/DartMessenger$3.class: D8: java.lang.NullPointerException : : > Transform debug (project :webview_flutter_android) with DexingNoClasspathTransform ERROR:/Users/lallu/Documents/GitHub/Next-Gen-App/build/webview_flutter_android/intermediates/runtime_library_classes_dir/debug/io/flutter/plugins/webviewflutter/GeneratedAndroidWebView$CookieManagerHostApi$1.class: D8: java.lang.NullPointerException : : > Task :app:dexBuilderJkDebug : > Task :app:mergeLibDexJkDebug FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:mergeLibDexJkDebug'. > Could not resolve all files for configuration ':app:jkDebugRuntimeClasspath'. > Failed to transform debug (project :firebase_messaging) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, com.android.build.api.attributes.AgpVersionAttr=7.2.0, com.android.build.api.attributes.BuildTypeAttr=debug, com.android.build.gradle.internal.attributes.VariantAttr=debug, dexing-enable-desugaring=true, dexing-is-debuggable=true, dexing-min-sdk=26, org.gradle.libraryelements=classes, org.gradle.usage=java-runtime}. > Execution failed for DexingNoClasspathTransform: /Users/lallu/Documents/GitHub/Next-Gen-App/build/firebase_messaging/intermediates/runtime_library_classes_dir/debug. > Error while dexing. > Failed to transform debug (project :firebase_analytics) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, com.android.build.api.attributes.AgpVersionAttr=7.2.0, com.android.build.api.attributes.BuildTypeAttr=debug, com.android.build.gradle.internal.attributes.VariantAttr=debug, dexing-enable-desugaring=true, dexing-is-debuggable=true, dexing-min-sdk=26, org.gradle.libraryelements=classes, org.gradle.usage=java-runtime}. > Execution failed for DexingNoClasspathTransform: /Users/lallu/Documents/GitHub/Next-Gen-App/build/firebase_analytics/intermediates/runtime_library_classes_dir/debug. > Error while dexing. > Failed to transform debug (project :firebase_core) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, com.android.build.api.attributes.AgpVersionAttr=7.2.0, com.android.build.api.attributes.BuildTypeAttr=debug, com.android.build.gradle.internal.attributes.VariantAttr=debug, dexing-enable-desugaring=true, dexing-is-debuggable=true, dexing-min-sdk=26, org.gradle.libraryelements=classes, org.gradle.usage=java-runtime}. > Execution failed for DexingNoClasspathTransform: /Users/lallu/Documents/GitHub/Next-Gen-App/build/firebase_core/intermediates/runtime_library_classes_dir/debug. > Error while dexing. > Failed to transform debug (project :geolocator_android) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, com.android.build.api.attributes.AgpVersionAttr=7.2.0, com.android.build.api.attributes.BuildTypeAttr=debug, com.android.build.gradle.internal.attributes.VariantAttr=debug, dexing-enable-desugaring=true, dexing-is-debuggable=true, dexing-min-sdk=26, org.gradle.libraryelements=classes, org.gradle.usage=java-runtime}. > Execution failed for DexingNoClasspathTransform: /Users/lallu/Documents/GitHub/Next-Gen-App/build/geolocator_android/intermediates/runtime_library_classes_dir/debug. > Error while dexing. > Failed to transform debug (project :flutter_local_notifications) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, com.android.build.api.attributes.AgpVersionAttr=7.2.0, com.android.build.api.attributes.BuildTypeAttr=debug, com.android.build.gradle.internal.attributes.VariantAttr=debug, dexing-enable-desugaring=true, dexing-is-debuggable=true, dexing-min-sdk=26, org.gradle.libraryelements=classes, org.gradle.usage=java-runtime}. > Execution failed for DexingNoClasspathTransform: /Users/lallu/Documents/GitHub/Next-Gen-App/build/flutter_local_notifications/intermediates/runtime_library_classes_dir/debug. > Error while dexing. > Failed to transform debug (project :image_picker_android) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, com.android.build.api.attributes.AgpVersionAttr=7.2.0, com.android.build.api.attributes.BuildTypeAttr=debug, com.android.build.gradle.internal.attributes.VariantAttr=debug, dexing-enable-desugaring=true, dexing-is-debuggable=true, dexing-min-sdk=26, org.gradle.libraryelements=classes, org.gradle.usage=java-runtime}. > Execution failed for DexingNoClasspathTransform: /Users/lallu/Documents/GitHub/Next-Gen-App/build/image_picker_android/intermediates/runtime_library_classes_dir/debug. > Error while dexing. > Failed to transform debug (project :google_maps_flutter_android) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, com.android.build.api.attributes.AgpVersionAttr=7.2.0, com.android.build.api.attributes.BuildTypeAttr=debug, com.android.build.gradle.internal.attributes.VariantAttr=debug, dexing-enable-desugaring=true, dexing-is-debuggable=true, dexing-min-sdk=26, org.gradle.libraryelements=classes, org.gradle.usage=java-runtime}. > Execution failed for DexingNoClasspathTransform: /Users/lallu/Documents/GitHub/Next-Gen-App/build/google_maps_flutter_android/intermediates/runtime_library_classes_dir/debug. > Error while dexing. > Failed to transform debug (project :camera_android) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, com.android.build.api.attributes.AgpVersionAttr=7.2.0, com.android.build.api.attributes.BuildTypeAttr=debug, com.android.build.gradle.internal.attributes.VariantAttr=debug, dexing-enable-desugaring=true, dexing-is-debuggable=true, dexing-min-sdk=26, org.gradle.libraryelements=classes, org.gradle.usage=java-runtime}. > Execution failed for DexingNoClasspathTransform: /Users/lallu/Documents/GitHub/Next-Gen-App/build/camera_android/intermediates/runtime_library_classes_dir/debug. > Error while dexing. > Failed to transform debug (project :local_auth_android) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, com.android.build.api.attributes.AgpVersionAttr=7.2.0, com.android.build.api.attributes.BuildTypeAttr=debug, com.android.build.gradle.internal.attributes.VariantAttr=debug, dexing-enable-desugaring=true, dexing-is-debuggable=true, dexing-min-sdk=26, org.gradle.libraryelements=classes, org.gradle.usage=java-runtime}. > Execution failed for DexingNoClasspathTransform: /Users/lallu/Documents/GitHub/Next-Gen-App/build/local_auth_android/intermediates/runtime_library_classes_dir/debug. > Error while dexing. > Failed to transform debug (project :url_launcher_android) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, com.android.build.api.attributes.AgpVersionAttr=7.2.0, com.android.build.api.attributes.BuildTypeAttr=debug, com.android.build.gradle.internal.attributes.VariantAttr=debug, dexing-enable-desugaring=true, dexing-is-debuggable=true, dexing-min-sdk=26, org.gradle.libraryelements=classes, org.gradle.usage=java-runtime}. > Execution failed for DexingNoClasspathTransform: /Users/lallu/Documents/GitHub/Next-Gen-App/build/url_launcher_android/intermediates/runtime_library_classes_dir/debug. > Error while dexing. > Failed to transform debug (project :connectivity_plus) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, com.android.build.api.attributes.AgpVersionAttr=7.2.0, com.android.build.api.attributes.BuildTypeAttr=debug, com.android.build.gradle.internal.attributes.VariantAttr=debug, dexing-enable-desugaring=true, dexing-is-debuggable=true, dexing-min-sdk=26, org.gradle.libraryelements=classes, org.gradle.usage=java-runtime}. > Execution failed for DexingNoClasspathTransform: /Users/lallu/Documents/GitHub/Next-Gen-App/build/connectivity_plus/intermediates/runtime_library_classes_dir/debug. > Error while dexing. > Failed to transform debug (project :webview_flutter_android) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, com.android.build.api.attributes.AgpVersionAttr=7.2.0, com.android.build.api.attributes.BuildTypeAttr=debug, com.android.build.gradle.internal.attributes.VariantAttr=debug, dexing-enable-desugaring=true, dexing-is-debuggable=true, dexing-min-sdk=26, org.gradle.libraryelements=classes, org.gradle.usage=java-runtime}. > Execution failed for DexingNoClasspathTransform: /Users/lallu/Documents/GitHub/Next-Gen-App/build/webview_flutter_android/intermediates/runtime_library_classes_dir/debug. > Error while dexing. > Failed to transform debug (project :location) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, com.android.build.api.attributes.AgpVersionAttr=7.2.0, com.android.build.api.attributes.BuildTypeAttr=debug, com.android.build.gradle.internal.attributes.VariantAttr=debug, dexing-enable-desugaring=true, dexing-is-debuggable=true, dexing-min-sdk=26, org.gradle.category=library, org.gradle.jvm.environment=android, org.gradle.libraryelements=classes, org.gradle.usage=java-runtime, org.jetbrains.kotlin.platform.type=androidJvm}. > Execution failed for DexingNoClasspathTransform: /Users/lallu/Documents/GitHub/Next-Gen-App/build/location/intermediates/runtime_library_classes_dir/debug. > Error while dexing. ### Patrol version patrol : ^2.3.2 ### Patrol Doctor output Program adb found in /Users/lallu/Documents/platform-tools/adb Env var $ANDROID_HOME set to /Users/lallu/Library/Android/sdk Program xcodebuild found in /usr/bin/xcodebuild Program ideviceinstaller found in /opt/homebrew/bin/ideviceinstaller ### Flutter Doctor output Doctor summary (to see all details, run flutter doctor -v): [!] Flutter (Channel [user-branch], 3.13.9, on macOS 13.3 22E252 darwin-arm64, locale en-IN) ! Flutter version 3.13.9 on channel [user-branch] at /Users/lallu/Documents/flutter Currently on an unknown channel. Run `flutter channel` to switch to an official channel. If that doesn't fix the issue, reinstall Flutter by following instructions at https://flutter.dev/docs/get-started/install. ! Upstream repository unknown source is not a standard remote. Set environment variable "FLUTTER_GIT_URL" to unknown source to dismiss this error. [✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1) [✓] Xcode - develop for iOS and macOS (Xcode 14.2) [✓] Chrome - develop for the web [✓] Android Studio (version 2022.3) [✓] VS Code (version 1.84.2) [✓] Connected device (3 available) [✓] Network resources
rishabnayak commented 11 months ago

@jBorkowska I'm seeing this as well - happy to help debug

lravihs commented 11 months ago

@rishabnayak can you please help me with it

Origogi commented 11 months ago

me too

lravihs commented 11 months ago

@Origogi Hi I have resolved this issue by changing the JAVA version java version "11.0.18" 2023-01-17 LTS Java(TM) SE Runtime Environment 18.9 (build 11.0.18+9-LTS-195) Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.18+9-LTS-195, mixed mode).

It's worked for me

Origogi commented 11 months ago

@lravihs

wow ~

it work!!!

thx~~~

github-actions[bot] commented 11 months ago

This issue has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar problem, please file a new issue. Make sure to follow the template and provide all the information necessary to reproduce the issue.