Closed diyarfaraj closed 3 years ago
More info running "flutter run -v":
[ +68 ms] executing: [C:\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +66 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[ ] 445e57216a3a82b5667272bcbdb0fbb043ec3e9e
[ ] executing: [C:\flutter/] git tag --points-at 445e57216a3a82b5667272bcbdb0fbb043ec3e9e
[ +59 ms] Exit code 0 from: git tag --points-at 445e57216a3a82b5667272bcbdb0fbb043ec3e9e
[ +1 ms] executing: [C:\flutter/] git describe --match .. --long --tags 445e57216a3a82b5667272bcbdb0fbb043ec3e9e
[ +72 ms] Exit code 0 from: git describe --match .. --long --tags 445e57216a3a82b5667272bcbdb0fbb043ec3e9e
[ ] 2.1.0-10.0.pre-181-g445e57216a
[ +33 ms] executing: [C:\flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[ +35 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[ ] origin/master
[ ] executing: [C:\flutter/] git ls-remote --get-url origin
[ +31 ms] Exit code 0 from: git ls-remote --get-url origin
[ ] https://github.com/flutter/flutter.git
[ +68 ms] executing: [C:\flutter/] git rev-parse --abbrev-ref HEAD
[ +31 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ ] master
[ +71 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.
[ +2 ms] Artifact Instance of 'WindowsEngineArtifacts' 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.
[ +49 ms] executing: C:\Users\diyar.SP\AppData\Local\Android\sdk\platform-tools\adb.exe devices -l
[ +37 ms] List of devices attached
2a222b95023f7ece device product:crownltexx model:SM_N960F device:crownlte transport_id:1
[ +7 ms] C:\Users\diyar.SP\AppData\Local\Android\sdk\platform-tools\adb.exe -s 2a222b95023f7ece shell getprop
[ +113 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[ +1 ms] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[ +3 ms] Artifact Instance of 'WindowsEngineArtifacts' 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.
[ +74 ms] Skipping pub get: version match.
[ +23 ms] Found plugin device_id at C:\Users\diyar.SP\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\device_id-0.2.0\
[ +4 ms] Found plugin device_info at C:\Users\diyar.SP\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\device_info-0.3.0\
[ +3 ms] Found plugin flutter_appavailability at C:\Users\diyar.SP\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\flutter_appavailability-0.0.21\
[ +2 ms] Found plugin flutter_native_web at C:\Users\diyar.SP\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\flutter_native_web-1.0.3\
[ +2 ms] Found plugin flutter_paycards at C:\Users\diyar.SP\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\flutter_paycards-0.2.4\
[ +4 ms] Found plugin flutter_plugin_android_lifecycle at C:\Users\diyar.SP\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\flutter_plugin_android_lifecycle-1.0.11\
[ +2 ms] Found plugin google_maps_flutter at C:\Users\diyar.SP\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\google_maps_flutter-0.5.33\
[ +7 ms] Found plugin local_auth at C:\Users\diyar.SP\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\local_auth-0.6.1\
[ +2 ms] Found plugin location at C:\Users\diyar.SP\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\location-3.0.2\
[ +4 ms] Found plugin location_web at C:\Users\diyar.SP\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\location_web-1.0.0\
[ +5 ms] Found plugin package_info at C:\Users\diyar.SP\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\package_info-0.4.0+10\
[ +4 ms] Found plugin path_provider at C:\Users\diyar.SP\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\path_provider-1.6.7\
[ +1 ms] Found plugin path_provider_macos at C:\Users\diyar.SP\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\path_provider_macos-0.0.4+1\
[ +10 ms] Found plugin screen at C:\Users\diyar.SP\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\screen-0.0.5\
[ +9 ms] Found plugin url_launcher at C:\Users\diyar.SP\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\url_launcher-5.4.5\
[ +2 ms] Found plugin url_launcher_macos at C:\Users\diyar.SP\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\url_launcher_macos-0.0.1+5\
[ +4 ms] Found plugin url_launcher_web at C:\Users\diyar.SP\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\url_launcher_web-0.1.1+4\
[ +10 ms] Found plugin flutter_barcode_scan at C:\source\payment_app\flutter_barcode_scan\
[ +69 ms] Found plugin device_id at C:\Users\diyar.SP\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\device_id-0.2.0\
[ +1 ms] Found plugin device_info at C:\Users\diyar.SP\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\device_info-0.3.0\
[ +4 ms] Found plugin flutter_appavailability at C:\Users\diyar.SP\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\flutter_appavailability-0.0.21\
[ +1 ms] Found plugin flutter_native_web at C:\Users\diyar.SP\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\flutter_native_web-1.0.3\
[ +1 ms] Found plugin flutter_paycards at C:\Users\diyar.SP\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\flutter_paycards-0.2.4\
[ +1 ms] Found plugin flutter_plugin_android_lifecycle at C:\Users\diyar.SP\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\flutter_plugin_android_lifecycle-1.0.11\
[ +1 ms] Found plugin google_maps_flutter at C:\Users\diyar.SP\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\google_maps_flutter-0.5.33\
[ +5 ms] Found plugin local_auth at C:\Users\diyar.SP\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\local_auth-0.6.1\
[ +2 ms] Found plugin location at C:\Users\diyar.SP\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\location-3.0.2\
[ +2 ms] Found plugin location_web at C:\Users\diyar.SP\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\location_web-1.0.0\
[ +2 ms] Found plugin package_info at C:\Users\diyar.SP\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\package_info-0.4.0+10\
[ +2 ms] Found plugin path_provider at C:\Users\diyar.SP\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\path_provider-1.6.7\
[ +1 ms] Found plugin path_provider_macos at C:\Users\diyar.SP\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\path_provider_macos-0.0.4+1\
[ +6 ms] Found plugin screen at C:\Users\diyar.SP\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\screen-0.0.5\
[ +7 ms] Found plugin url_launcher at C:\Users\diyar.SP\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\url_launcher-5.4.5\
[ +1 ms] Found plugin url_launcher_macos at C:\Users\diyar.SP\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\url_launcher_macos-0.0.1+5\
[ +2 ms] Found plugin url_launcher_web at C:\Users\diyar.SP\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\url_launcher_web-0.1.1+4\
[ +7 ms] Found plugin flutter_barcode_scan at C:\source\payment_app\flutter_barcode_scan\
[ +10 ms] Generating C:\source\payment_app\payment_app_reitan\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java
[ +50 ms] ro.hardware = samsungexynos9810
[ +43 ms] Initializing file store
[ +8 ms] Skipping target: gen_localizations
[ +4 ms] complete
[ +4 ms] Launching lib\main.dart on SM N960F in debug mode...
[ +5 ms] C:\flutter\bin\cache\dart-sdk\bin\dart.exe --disable-dart-dev C:\flutter\bin\cache\artifacts\engine\windows-x64\frontend_server.dart.snapshot --sdk-root
C:\flutter\bin\cache\artifacts\engine\common\flutter_patched_sdk/ --incremental --target=flutter --debugger-module-names --experimental-emit-debug-metadata -DFLUTTER_WEB_AUTO_DETECT=true --output-dill
C:\Users\diyar.SP\AppData\Local\Temp\flutter_tools.fa359b0e\flutter_tool.f14c113e\app.dill --packages C:\source\payment_app\payment_app_reitan.dart_tool\package_config.json -Ddart.vm.profile=false
-Ddart.vm.product=false --enable-asserts --track-widget-creation --filesystem-scheme org-dartlang-root --initialize-from-dill build\f245b0b7cc30f460f818fcec6bcf01fb.cache.dill.track.dill --flutter-widget-cache
--enable-experiment=alternative-invalidation-strategy
[ +16 ms] executing: C:\Users\diyar.SP\AppData\Local\Android\sdk\platform-tools\adb.exe -s 2a222b95023f7ece shell -x logcat -v time -t 1
[ +24 ms] <- compile package:payment_app_reitan/main.dart
[ +147 ms] --------- beginning of main
03-10 13:29:56.664 I/bauth_FPBAuthService( 821): FPBAuthService, 11438
[ +9 ms] executing: C:\Users\diyar.SP\AppData\Local\Android\sdk\platform-tools\adb.exe version
[ +18 ms] Android Debug Bridge version 1.0.41
Version 31.0.0-7110759
Installed as C:\Users\diyar.SP\AppData\Local\Android\sdk\platform-tools\adb.exe
[ +2 ms] executing: C:\Users\diyar.SP\AppData\Local\Android\sdk\platform-tools\adb.exe start-server
[ +19 ms] Building APK
[ +17 ms] Running Gradle task 'assembleDebug'...
[ +4 ms] Using gradle from C:\source\payment_app\payment_app_reitan\android\gradlew.bat.
[ +12 ms] executing: C:\Program Files\Android\Android Studio\jre\bin\java -version
[ +105 ms] Exit code 0 from: C:\Program Files\Android\Android Studio\jre\bin\java -version
[ ] openjdk version "1.8.0_242-release"
OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
OpenJDK 64-Bit Server VM (build 25.242-b01, mixed mode)
[ +1 ms] executing: [C:\source\payment_app\payment_app_reitan\android/] C:\source\payment_app\payment_app_reitan\android\gradlew.bat -Pverbose=true -Ptarget-platform=android-arm64
-Ptarget=C:\source\payment_app\payment_app_reitan\lib\main.dart -Pdart-defines=RkxVVFRFUl9XRUJfQVVUT19ERVRFQ1Q9dHJ1ZQ== -Pdart-obfuscation=false -Ptrack-widget-creation=true -Ptree-shake-icons=false
-Pfilesystem-scheme=org-dartlang-root assembleDebug
[+1040 ms] > Configure project :app
[ +32 ms] WARNING: The option setting 'android.enableR8=true' is experimental and unsupported.
[ +15 ms] The current default is 'false'
[ +10 ms] Consider disabling R8 by removing 'android.enableR8=true' from your gradle.properties before publishing your app.
[ +4 ms] NDK is missing a "platforms" directory.
[ +2 ms] If you are using NDK, verify the ndk.dir is set to a valid NDK directory. It is currently set to C:\Users\diyar.SP\AppData\Local\Android\Sdk\ndk-bundle.
[ +1 ms] If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.
[ +21 ms] > Configure project :device_id
[ +1 ms] WARNING: The option setting 'android.enableR8=true' is experimental and unsupported.
[ ] The current default is 'false'
[ ] Consider disabling R8 by removing 'android.enableR8=true' from your gradle.properties before publishing your app.
[ ] NDK is missing a "platforms" directory.
[ +2 ms] If you are using NDK, verify the ndk.dir is set to a valid NDK directory. It is currently set to C:\Users\diyar.SP\AppData\Local\Android\Sdk\ndk-bundle.
[ +1 ms] If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.
[ +68 ms] > Configure project :device_info
[ ] WARNING: The option setting 'android.enableR8=true' is experimental and unsupported.
[ ] The current default is 'false'
[ ] Consider disabling R8 by removing 'android.enableR8=true' from your gradle.properties before publishing your app.
[ ] NDK is missing a "platforms" directory.
[ ] If you are using NDK, verify the ndk.dir is set to a valid NDK directory. It is currently set to C:\Users\diyar.SP\AppData\Local\Android\Sdk\ndk-bundle.
[ ] If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.
[ +1 ms] > Configure project :flutter_appavailability
[ +2 ms] WARNING: The option setting 'android.enableR8=true' is experimental and unsupported.
[ ] The current default is 'false'
[ ] Consider disabling R8 by removing 'android.enableR8=true' from your gradle.properties before publishing your app.
[ ] NDK is missing a "platforms" directory.
[ ] If you are using NDK, verify the ndk.dir is set to a valid NDK directory. It is currently set to C:\Users\diyar.SP\AppData\Local\Android\Sdk\ndk-bundle.
[ ] If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.
[ +175 ms] > Configure project :flutter_barcode_scan
[ ] WARNING: The option setting 'android.enableR8=true' is experimental and unsupported.
[ ] The current default is 'false'
[ ] Consider disabling R8 by removing 'android.enableR8=true' from your gradle.properties before publishing your app.
[ +2 ms] NDK is missing a "platforms" directory.
[ ] If you are using NDK, verify the ndk.dir is set to a valid NDK directory. It is currently set to C:\Users\diyar.SP\AppData\Local\Android\Sdk\ndk-bundle.
[ ] If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.
[ ] > Configure project :flutter_native_web
[ ] WARNING: The option setting 'android.enableR8=true' is experimental and unsupported.
[ ] The current default is 'false'
[ ] Consider disabling R8 by removing 'android.enableR8=true' from your gradle.properties before publishing your app.
[ ] NDK is missing a "platforms" directory.
[ ] If you are using NDK, verify the ndk.dir is set to a valid NDK directory. It is currently set to C:\Users\diyar.SP\AppData\Local\Android\Sdk\ndk-bundle.
[ ] If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.
[ ] > Configure project :flutter_paycards
[ ] WARNING: The option setting 'android.enableR8=true' is experimental and unsupported.
[ +1 ms] The current default is 'false'
[ ] Consider disabling R8 by removing 'android.enableR8=true' from your gradle.properties before publishing your app.
[ +2 ms] NDK is missing a "platforms" directory.
[ +1 ms] If you are using NDK, verify the ndk.dir is set to a valid NDK directory. It is currently set to C:\Users\diyar.SP\AppData\Local\Android\Sdk\ndk-bundle.
[ +4 ms] If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.
[ +2 ms] FAILURE: Build failed with an exception.
[ +3 ms] What went wrong:
[ +1 ms] A problem occurred configuring project ':flutter_paycards'.
[ ] > java.lang.NullPointerException (no error message)
[ ] 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
[ +496 ms] Running Gradle task 'assembleDebug'... (completed in 2,032ms)
[+5684 ms] Exception: Gradle task assembleDebug failed with exit code 1
[ +1 ms] "flutter run" took 8,676ms.
[ +3 ms]
#1 RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:659:9)
<asynchronous suspension>
#2 FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1037:27)
<asynchronous suspension>
#3 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:152:19)
<asynchronous suspension>
#4 CommandRunner.runCommand (package:args/command_runner.dart:197:13)
<asynchronous suspension>
#5 FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:283:9)
<asynchronous suspension>
#6 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:152:19)
<asynchronous suspension>
#7 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:239:5)
<asynchronous suspension>
#8 run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:62:9)
<asynchronous suspension>
#9 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:152:19)
<asynchronous suspension>
#10 main (package:flutter_tools/executable.dart:92:3)
<asynchronous suspension>
[ +28 ms] ensureAnalyticsSent: 24ms [ +2 ms] Running shutdown hooks [ +1 ms] Shutdown hook priority 4 [ +8 ms] Shutdown hooks complete [ +1 ms] exiting with code 1
I can't reproduce this one. Can you share a repo to reproduce? Stacktrace doesn't look useful to me. Maybe running from native directory would be helpful:
cd android
./gradlew build --stacktrace
Hi thank you. that was a bit helpful, but have not found the solution yet. Sorry but it's not possible to share repo as of company policy.
Here is what I got when I ran you command:
FAILURE: Build failed with an exception.
What went wrong: A problem occurred configuring project ':flutter_paycards'.
java.lang.NullPointerException (no error message)
Try: Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Exception is: org.gradle.api.ProjectConfigurationException: A problem occurred configuring project ':flutter_paycards'. at org.gradle.configuration.project.LifecycleProjectEvaluator.wrapException(LifecycleProjectEvaluator.java:79) at org.gradle.configuration.project.LifecycleProjectEvaluator.addConfigurationFailure(LifecycleProjectEvaluator.java:73) at org.gradle.configuration.project.LifecycleProjectEvaluator.access$400(LifecycleProjectEvaluator.java:54) at org.gradle.configuration.project.LifecycleProjectEvaluator$NotifyAfterEvaluate.run(LifecycleProjectEvaluator.java:200) at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:300) at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:292) at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:174) at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90) at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31) at org.gradle.configuration.project.LifecycleProjectEvaluator$EvaluateProject.run(LifecycleProjectEvaluator.java:110) at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:300) at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:292) at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:174) at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90) at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31) at org.gradle.configuration.project.LifecycleProjectEvaluator.evaluate(LifecycleProjectEvaluator.java:68) at org.gradle.api.internal.project.DefaultProject.evaluate(DefaultProject.java:687) at org.gradle.api.internal.project.DefaultProject.evaluate(DefaultProject.java:140) at org.gradle.execution.TaskPathProjectEvaluator.configure(TaskPathProjectEvaluator.java:35) at org.gradle.execution.TaskPathProjectEvaluator.configureHierarchy(TaskPathProjectEvaluator.java:62) at org.gradle.configuration.DefaultBuildConfigurer.configure(DefaultBuildConfigurer.java:41) at org.gradle.initialization.DefaultGradleLauncher$ConfigureBuild.run(DefaultGradleLauncher.java:274) at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:300) at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:292) at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:174) at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90) at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31) at org.gradle.initialization.DefaultGradleLauncher.configureBuild(DefaultGradleLauncher.java:182) at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:141) at org.gradle.initialization.DefaultGradleLauncher.executeTasks(DefaultGradleLauncher.java:124) at org.gradle.internal.invocation.GradleBuildController$1.call(GradleBuildController.java:77) at org.gradle.internal.invocation.GradleBuildController$1.call(GradleBuildController.java:74) at org.gradle.internal.work.DefaultWorkerLeaseService.withLocks(DefaultWorkerLeaseService.java:154) at org.gradle.internal.work.StopShieldingWorkerLeaseService.withLocks(StopShieldingWorkerLeaseService.java:38) at org.gradle.internal.invocation.GradleBuildController.doBuild(GradleBuildController.java:96) at org.gradle.internal.invocation.GradleBuildController.run(GradleBuildController.java:74) at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:28) at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35) at org.gradle.tooling.internal.provider.ValidatingBuildActionRunner.run(ValidatingBuildActionRunner.java:32) at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner$3.run(RunAsBuildOperationBuildActionRunner.java:50) at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:300) at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:292) at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:174) at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90) at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31) at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner.run(RunAsBuildOperationBuildActionRunner.java:45) at org.gradle.tooling.internal.provider.SubscribableBuildActionRunner.run(SubscribableBuildActionRunner.java:51) at org.gradle.launcher.exec.InProcessBuildActionExecuter$1.transform(InProcessBuildActionExecuter.java:47) at org.gradle.launcher.exec.InProcessBuildActionExecuter$1.transform(InProcessBuildActionExecuter.java:44) at org.gradle.composite.internal.DefaultRootBuildState.run(DefaultRootBuildState.java:79) at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:44) at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:30) at org.gradle.launcher.exec.BuildTreeScopeBuildActionExecuter.execute(BuildTreeScopeBuildActionExecuter.java:39) at org.gradle.launcher.exec.BuildTreeScopeBuildActionExecuter.execute(BuildTreeScopeBuildActionExecuter.java:25) at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:80) at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:53) at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:62) at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:34) at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.java:36) at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.java:25) at org.gradle.tooling.internal.provider.ParallelismConfigurationBuildActionExecuter.execute(ParallelismConfigurationBuildActionExecuter.java:43) at org.gradle.tooling.internal.provider.ParallelismConfigurationBuildActionExecuter.execute(ParallelismConfigurationBuildActionExecuter.java:29) at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:59) at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:31) at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:59) at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:44) at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:46) at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:30) at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:67) at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122) at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:37) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122) at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:26) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122) at org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:34) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122) at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:74) at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:72) at org.gradle.util.Swapper.swap(Swapper.java:38) at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:72) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122) at org.gradle.launcher.daemon.server.exec.LogAndCheckHealth.execute(LogAndCheckHealth.java:55) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122) at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:62) at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122) at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:81) at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122) at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:50) at org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:295) at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63) at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46) at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
**Caused by: java.lang.NullPointerException
at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:787)
at com.android.build.gradle.internal.ndk.NdkHandler.getPlatformVersion(NdkHandler.java:159)**
at com.android.build.gradle.internal.ndk.NdkHandler.supports64Bits(NdkHandler.java:332)
at com.android.build.gradle.internal.ndk.NdkHandler.getSupportedAbis(NdkHandler.java:404)
at com.android.build.gradle.tasks.ExternalNativeJsonGenerator.create(ExternalNativeJsonGenerator.java:583)
at com.android.build.gradle.internal.TaskManager.createExternalNativeBuildJsonGenerators(TaskManager.java:1596)
at com.android.build.gradle.internal.LibraryTaskManager.createTasksForVariantScope(LibraryTaskManager.java:175)
at com.android.build.gradle.internal.VariantManager.createTasksForVariantData(VariantManager.java:633)
at com.android.build.gradle.internal.VariantManager.lambda$createAndroidTasks$1(VariantManager.java:377)
at com.android.builder.profile.ThreadRecorder.record(ThreadRecorder.java:81)
at com.android.build.gradle.internal.VariantManager.createAndroidTasks(VariantManager.java:373)
at com.android.build.gradle.BasePlugin.lambda$createAndroidTasks$6(BasePlugin.java:780)
at com.android.builder.profile.ThreadRecorder.record(ThreadRecorder.java:81)
at com.android.build.gradle.BasePlugin.createAndroidTasks(BasePlugin.java:775)
at com.android.build.gradle.BasePlugin.lambda$null$4(BasePlugin.java:670)
at com.android.builder.profile.ThreadRecorder.record(ThreadRecorder.java:81)
at com.android.build.gradle.BasePlugin.lambda$createTasks$5(BasePlugin.java:666)
at org.gradle.configuration.internal.DefaultListenerBuildOperationDecorator$BuildOperationEmittingAction$1$1.run(DefaultListenerBuildOperationDecorator.java:155)
at org.gradle.configuration.internal.DefaultUserCodeApplicationContext.reapply(DefaultUserCodeApplicationContext.java:58)
at org.gradle.configuration.internal.DefaultListenerBuildOperationDecorator$BuildOperationEmittingAction$1.run(DefaultListenerBuildOperationDecorator.java:152)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:300)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:292)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:174)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)
at org.gradle.configuration.internal.DefaultListenerBuildOperationDecorator$BuildOperationEmittingAction.execute(DefaultListenerBuildOperationDecorator.java:149)
at org.gradle.internal.event.BroadcastDispatch$ActionInvocationHandler.dispatch(BroadcastDispatch.java:91)
at org.gradle.internal.event.BroadcastDispatch$ActionInvocationHandler.dispatch(BroadcastDispatch.java:80)
at org.gradle.internal.event.AbstractBroadcastDispatch.dispatch(AbstractBroadcastDispatch.java:42)
at org.gradle.internal.event.BroadcastDispatch$SingletonDispatch.dispatch(BroadcastDispatch.java:230)
at org.gradle.internal.event.BroadcastDispatch$SingletonDispatch.dispatch(BroadcastDispatch.java:149)
at org.gradle.internal.event.AbstractBroadcastDispatch.dispatch(AbstractBroadcastDispatch.java:58)
at org.gradle.internal.event.BroadcastDispatch$CompositeDispatch.dispatch(BroadcastDispatch.java:324)
at org.gradle.internal.event.BroadcastDispatch$CompositeDispatch.dispatch(BroadcastDispatch.java:234)
at org.gradle.internal.event.ListenerBroadcast.dispatch(ListenerBroadcast.java:140)
at org.gradle.internal.event.ListenerBroadcast.dispatch(ListenerBroadcast.java:37)
at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93)
at com.sun.proxy.$Proxy28.afterEvaluate(Unknown Source)
at org.gradle.configuration.project.LifecycleProjectEvaluator$NotifyAfterEvaluate$1.execute(LifecycleProjectEvaluator.java:187)
at org.gradle.configuration.project.LifecycleProjectEvaluator$NotifyAfterEvaluate$1.execute(LifecycleProjectEvaluator.java:184)
at org.gradle.api.internal.project.DefaultProject.stepEvaluationListener(DefaultProject.java:1418)
at org.gradle.configuration.project.LifecycleProjectEvaluator$NotifyAfterEvaluate.run(LifecycleProjectEvaluator.java:193)
... 91 more
Get more help at https://help.gradle.org
BUILD FAILED in 13s
WARNING: This version of device_id will break your Android build if it or its dependencies aren't compatible with AndroidX. See https://goo.gl/CP92wY for more information on the problem and how to fix it. This warning prints for all Android build failures. The real root cause of the error may be unrelated.
Hi again, solved it!
The problem was that CMake was not installed on my android Studio.
Thank you, I found it with your help!
When I try to build my app with this package I'm getting this error:
I have tried to solve this for weeks, any help would very be appreciated!