Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[path_provider] build error #57923

Closed
raygo0511 opened this issue May 25, 2020 · 23 comments
Closed

[path_provider] build error #57923

raygo0511 opened this issue May 25, 2020 · 23 comments
Labels
in triage Presently being triaged by the triage team

Comments

@raygo0511
Copy link

raygo0511 commented May 25, 2020

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':path_provider:compileDebugAidl'.
> Could not resolve all task dependencies for configuration ':path_provider:debugCompileClasspath'.
   > Could not resolve project :path_provider_macos.
     Required by:
         project :path_provider
      > Unable to find a matching configuration of project :path_provider_macos:
          - None of the consumable configurations have attributes.

* 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 3s
Finished with error: Gradle task assembleDebug_QATDebug failed with exit code 1
@iapicca
Copy link
Contributor

iapicca commented May 25, 2020

Hi @raygo0511
can you please provide your flutter doctor -v ,
your flutter run --verbose,
your pubspec.yaml
Thank you

@iapicca iapicca added in triage Presently being triaged by the triage team waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds labels May 25, 2020
@iapicca iapicca changed the title When I compile Android the error issues not work [path_provider] build error May 25, 2020
@mokhosh
Copy link

mokhosh commented May 25, 2020

I had the same problem with path provider. I created a new project and moved my lib folder over, now I'm getting this:

../../third_party/dart/runtime/vm/compiler/backend/il.h: 999: error: unreachable code
Dart snapshot generator failed with exit code -6
../../third_party/dart/runtime/vm/compiler/backend/il.h: 999: error: unreachable code
Dart snapshot generator failed with exit code -6
Target android_aot_release_android-arm64 failed: Exception: AOT snapshotter exited with code -6
Target android_aot_release_android-x64 failed: Exception: AOT snapshotter exited with code -6
build failed.

FAILURE: Build failed with an exception.

* Where:
Script '/Users/mokhosh/Android/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 882

* What went wrong:
Execution failed for task ':app:compileFlutterBuildRelease'.
> Process 'command '/Users/mokhosh/Android/flutter/bin/flutter'' finished with non-zero exit value 1

@iapicca
Copy link
Contributor

iapicca commented May 26, 2020

Hi @mokhosh
could you please provide the info listed above
Thank you

@shrutikateiosys
Copy link

Same issue ?

@qxmmxi
Copy link

qxmmxi commented May 28, 2020

same issue:

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.12.13+hotfix.9, on Mac OS X 10.15.4 19E266, locale zh-Hans-CN)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 11.4)
[✓] Android Studio (version 3.6)
[!] Connected device
    ! No devices available

! Doctor found issues in 1 category.

@qxmmxi
Copy link

qxmmxi commented May 28, 2020

[  +37 ms] executing: [/Applications/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[  +47 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] f139b11009aeb8ed2a3a3aa8b0066e482709dde3
[        ] executing: [/Applications/flutter/] git describe --match v*.*.* --first-parent --long --tags
[  +32 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags
[        ] v1.12.13+hotfix.9-0-gf139b1100
[   +6 ms] executing: [/Applications/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[  +13 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/stable
[        ] executing: [/Applications/flutter/] git ls-remote --get-url origin
[  +11 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[  +63 ms] executing: [/Applications/flutter/] git rev-parse --abbrev-ref HEAD
[  +15 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] stable
[   +9 ms] executing: sw_vers -productName
[  +31 ms] Exit code 0 from: sw_vers -productName
[        ] Mac OS X
[        ] executing: sw_vers -productVersion
[  +22 ms] Exit code 0 from: sw_vers -productVersion
[        ] 10.15.4
[        ] executing: sw_vers -buildVersion
[  +17 ms] Exit code 0 from: sw_vers -buildVersion
[        ] 19E266
[  +36 ms] executing: /usr/bin/xcode-select --print-path
[  +10 ms] Exit code 0 from: /usr/bin/xcode-select --print-path
[        ] /Applications/Xcode.app/Contents/Developer
[   +1 ms] executing: /usr/bin/xcodebuild -version
[ +607 ms] Exit code 0 from: /usr/bin/xcodebuild -version
[   +3 ms] Xcode 11.4
           Build version 11E146
[  +64 ms] executing: /Users/xixiaona/Library/Android/sdk/platform-tools/adb devices -l
[   +9 ms] Exit code 0 from: /Users/xixiaona/Library/Android/sdk/platform-tools/adb devices -l
[   +1 ms] List of devices attached
[  +15 ms] executing: /Applications/flutter/bin/cache/artifacts/libimobiledevice/idevice_id -h
[  +56 ms] /usr/bin/xcrun simctl list --json devices
[ +106 ms] No supported devices connected.
[  +11 ms] "flutter run" took 1,020ms.

#0      throwToolExit (package:flutter_tools/src/base/common.dart:28:3)
#1      RunCommand.validateCommand (package:flutter_tools/src/commands/run.dart:289:7)
<asynchronous suspension>
#2      FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:590:11)
#3      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:515:33)
<asynchronous suspension>
#4      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:146:29)
#5      _rootRun (dart:async/zone.dart:1126:13)
#6      _CustomZone.run (dart:async/zone.dart:1023:19)
#7      _runZoned (dart:async/zone.dart:1518:10)
#8      runZoned (dart:async/zone.dart:1465:12)
#9      AppContext.run (package:flutter_tools/src/base/context.dart:145:18)
#10     FlutterCommand.run (package:flutter_tools/src/runner/flutter_command.dart:505:20)
#11     CommandRunner.runCommand (package:args/command_runner.dart:197:27)
#12     FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:413:21)
<asynchronous suspension>
#13     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:146:29)
#14     _rootRun (dart:async/zone.dart:1126:13)
#15     _CustomZone.run (dart:async/zone.dart:1023:19)
#16     _runZoned (dart:async/zone.dart:1518:10)
#17     runZoned (dart:async/zone.dart:1465:12)
#18     AppContext.run (package:flutter_tools/src/base/context.dart:145:18)
#19     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:364:19)
#20     CommandRunner.run.<anonymous closure> (package:args/command_runner.dart:112:25)
#21     new Future.sync (dart:async/future.dart:224:31)
#22     CommandRunner.run (package:args/command_runner.dart:112:14)
#23     FlutterCommandRunner.run (package:flutter_tools/src/runner/flutter_command_runner.dart:250:18)
#24     run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:63:22)
#25     _rootRun (dart:async/zone.dart:1126:13)
#26     _CustomZone.run (dart:async/zone.dart:1023:19)
#27     _runZoned (dart:async/zone.dart:1518:10)
#28     runZoned (dart:async/zone.dart:1502:12)
#29     run.<anonymous closure> (package:flutter_tools/runner.dart:61:18)
<asynchronous suspension>
#30     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:146:29)
#31     _rootRun (dart:async/zone.dart:1126:13)
#32     _CustomZone.run (dart:async/zone.dart:1023:19)
#33     _runZoned (dart:async/zone.dart:1518:10)
#34     runZoned (dart:async/zone.dart:1465:12)
#35     AppContext.run (package:flutter_tools/src/base/context.dart:145:18)
#36     runInContext (package:flutter_tools/src/context_runner.dart:64:24)
#37     run (package:flutter_tools/runner.dart:50:10)
#38     main (package:flutter_tools/executable.dart:65:9)
#39     main (file:///Applications/flutter/packages/flutter_tools/bin/flutter_tools.dart:8:3)
#40     _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:305:32)
#41     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:174:12)

@Libin2019
Copy link

Libin2019 commented May 28, 2020

i have same problem , and you had solved it ?

@Libin2019
Copy link

Libin2019 commented May 28, 2020

i have solved this problem , this is my solution : go to your Flutter sdk folder ,then go to .pub-cache\hosted\pub.dartlang.org\ ,if there have a path_provider_macos folder ,delete it ,if no ,you try go .pub-cache\hosted\pub.flutter-io.cn\ , and remove path_provider_macos folder

@nealwon
Copy link

nealwon commented May 29, 2020

Thank U. This's very useful.

@iapicca
Copy link
Contributor

iapicca commented May 29, 2020

Hi @qxmmxi
could you please run flutter upgrade --force
if the issue persist please provide the info listed above
Thank you

@mokhosh
Copy link

mokhosh commented May 30, 2020

In my case it was moor_ffi 0.6.0, and downgrading to 0.5.0 fixed the problem.
What made this so annoying was I didn't get an error for moor, the error message was for dart sdk!

@jessing
Copy link

jessing commented Jun 4, 2020

Try the latest version of path_provider

@harpreetkaurbains
Copy link

harpreetkaurbains commented Jun 7, 2020

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':path_provider:compileDebugAidl'.
> Could not resolve all task dependencies for configuration ':path_provider:debugCompileClasspath'.
   > Could not resolve project :path_provider_macos.
     Required by:
         project :path_provider
      > Unable to find a matching configuration of project :path_provider_macos:
          - None of the consumable configurations have attributes.

* 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 3s
Finished with error: Gradle task assembleDebug_QATDebug failed with exit code 1

Hi @raygo0511
can you please provide your flutter doctor -v ,
your flutter run --verbose,
your pubspec.yaml
Thank you
FAILURE: Build failed with an exception.

  • What went wrong:
    Could not determine the dependencies of task ':path_provider:compileDebugAidl'.

Could not resolve all task dependencies for configuration ':path_provider:debugCompileClasspath'.
Could not resolve project :path_provider_macos.
Required by:
project :path_provider
> Unable to find a matching configuration of project :path_provider_macos:
- None of the consumable configurations have attributes.
Could not resolve project :path_provider_linux.
Required by:
project :path_provider
> Unable to find a matching configuration of project :path_provider_linux:
- None of the consumable configurations have attributes.

  • 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 27s
Finished with error: Gradle task assembleDebug failed with exit code 1

I'm having same issue .can you please help me to resolve.

@fdh19979
Copy link

fdh19979 commented Jun 8, 2020

find flutter.pub-cache\hosted\pub.flutter-io.cn\path_provider_macos-0.0.4+3
delete all files in this file ,

@harpreetkaurbains
Copy link

harpreetkaurbains commented Jun 8, 2020 via email

@abhijitgawai
Copy link

The error I had was like @raygo0511 having both macos and linux errors, I have windows machine
Then i deleted file path_provider_macos-0.0.4+3

Now my error is

<ij_msg_gr>Project resolve errors<ij_msg_gr><ij_nav>D:\sih\appproject\trail0\trail5\trail4\CourtCounter\build.gradle<ij_nav>root project 'CourtCounter': Unable to resolve additional project configuration.Details: org.apache.tools.ant.BuildException: Basedir D:\ABHI_D\flutter.pub-cache\hosted\pub.dartlang.org\path_provider_macos-0.0.4+3\android does not exist`

What should be done now

@codeHarton
Copy link

codeHarton commented Jun 9, 2020

删除 flutter 文件, 重新解压, 再运行 fluter pub get即可.(I delete the flutter flod and reunzip ,then it is run ok)

@iapicca
Copy link
Contributor

iapicca commented Jun 10, 2020

Hi all
I see several workaround proposed,

you could provide
the info listed above
with a flutter version not lower than the latest stable
and the latest plugin version,
without that the issue is not workable

thank you

@alex7egli
Copy link

I had the same issue, followed the steps in this thread: #46807
Deleting the Pub Cache and re-running flutter run afterward worked. For me this was at: $USER_HOME$/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/

@no-response
Copy link

no-response bot commented Jun 30, 2020

Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.

@no-response no-response bot closed this as completed Jun 30, 2020
@iapicca iapicca removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Jul 1, 2020
@rehnius
Copy link

rehnius commented Oct 24, 2020

I have the same issue. I fixed it running: flutter pub cache repair .
It works fine now.

@Princeigwe
Copy link

I tried all the given solutions here, even deleted the path_provider macos. It give a totally new different error. So reinstalled flutter with snap, and made sure I ran the code with internet connection. Worked for me🙂

@github-actions
Copy link

github-actions bot commented Aug 8, 2021

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
in triage Presently being triaged by the triage team
Projects
None yet
Development

No branches or pull requests