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

The Flutter module, as a sub project, cannot be compiled by loading the Flutter module source code, Failed to resolve: androidx.activity:activity:1.8.0 #11340

Open
1 task done
jackynew8669 opened this issue Oct 29, 2024 · 0 comments
Labels
from.page-issue Reported in a reader-filed concern

Comments

@jackynew8669
Copy link

Page URL

https://docs.flutter.dev/add-to-app/android/project-setup/

Page source

https://github.com/flutter/website/tree/main/src/content/add-to-app/android/project-setup.md

Describe the problem

The Flutter module, as a sub project, cannot be compiled by loading the Flutter module source code, Failed to resolve: androidx.activity:activity:1.8.0
The error is as follows
Could not find androidx.lifecycle:lifecycle-common:2.7.0.
Searched in the following locations:
- https://storage.flutter-io.cn/download.flutter.io/androidx/lifecycle/lifecycle-common/2.7.0/lifecycle-common-2.7.0.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :app > project :flutter > io.flutter:flutter_embedding_debug:1.0.0-36335019a8eab588c3c2ea783c618d90505be233

Could not find androidx.lifecycle:lifecycle-common-java8:2.7.0.
Searched in the following locations:
- https://storage.flutter-io.cn/download.flutter.io/androidx/lifecycle/lifecycle-common-java8/2.7.0/lifecycle-common-java8-2.7.0.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :app > project :flutter > io.flutter:flutter_embedding_debug:1.0.0-36335019a8eab588c3c2ea783c618d90505be233
Could not find androidx.lifecycle:lifecycle-process:2.7.0.
Searched in the following locations:
- https://storage.flutter-io.cn/download.flutter.io/androidx/lifecycle/lifecycle-process/2.7.0/lifecycle-process-2.7.0.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :app > project :flutter > io.flutter:flutter_embedding_debug:1.0.0-36335019a8eab588c3c2ea783c618d90505be233
Could not find androidx.lifecycle:lifecycle-runtime:2.7.0.
Searched in the following locations:
- https://storage.flutter-io.cn/download.flutter.io/androidx/lifecycle/lifecycle-runtime/2.7.0/lifecycle-runtime-2.7.0.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :app > project :flutter > io.flutter:flutter_embedding_debug:1.0.0-36335019a8eab588c3c2ea783c618d90505be233

Expected fix

No response

Additional context

No response

I would like to fix this problem.

  • I will try and fix this problem on docs.flutter.dev.
@jackynew8669 jackynew8669 added the from.page-issue Reported in a reader-filed concern label Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
from.page-issue Reported in a reader-filed concern
Projects
None yet
Development

No branches or pull requests

1 participant