cryptography icon indicating copy to clipboard operation
cryptography copied to clipboard

New flutter project fails with error

Open JohnGalt1717 opened this issue 2 months ago • 2 comments

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 avatar May 10 '24 17:05 JohnGalt1717