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

New flutter project fails with error #183

Open
JohnGalt1717 opened this issue May 10, 2024 · 3 comments
Open

New flutter project fails with error #183

JohnGalt1717 opened this issue May 10, 2024 · 3 comments

Comments

@JohnGalt1717
Copy link

JohnGalt1717 commented May 10, 2024

Steps:
flutter doctor - all green
flutter create test
cd test
flutter build app_bundle (successful)
flutter pub add cryptography_flutter
flutter build app_bundle

error:


* What went wrong:
A problem occurred configuring project ':cryptography_flutter'.
> Could not resolve all files for configuration ':cryptography_flutter:classpath'.
   > Could not find com.android.tools.build:gradle:8.7.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/8.7/gradle-8.7.pom
       - https://repo.maven.apache.org/maven2/com/android/tools/build/gradle/8.7/gradle-8.7.pom
     Required by:
         project :cryptography_flutter
> Failed to notify project evaluation listener.
   > Could not get unknown property 'android' for project ':cryptography_flutter' of type org.gradle.api.Project.
   > Could not get unknown property 'android' for project ':cryptography_flutter' of type org.gradle.api.Project.

There's nothing in the documentation that would indicate steps required to make this work with some changes. But I tried updating to gradle 8.7 in gradle-wrapper.properties and it still errors.

Also there is no such thing as android tools 8.7, 8.4 is the latest.

@JohnGalt1717
Copy link
Author

I was able to sort of get around this be going into the package cache for this library and adding this to the build.gradle:

namespace "dev.dint.cryptography_flutter"

That eliminated the error. There are TONS of depreciation warnings though from this library.

@rewired-gh
Copy link

I was able to sort of get around this be going into the package cache for this library and adding this to the build.gradle:

namespace "dev.dint.cryptography_flutter"

That eliminated the error. There are TONS of depreciation warnings though from this library.

Also need to remove package property in AndroidManifest.xml

JohnGalt1717 added a commit to JohnGalt1717/cryptography that referenced this issue Jun 26, 2024
…the android package for cryptography_flutter
@ugran
Copy link

ugran commented Sep 19, 2024

Same warning here +1

petrleocompel added a commit to emz-hanauer/dart-cryptography that referenced this issue Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants