mogol / flutter_secure_storage

A Flutter plugin to store data in secure storage
https://pub.dartlang.org/packages/flutter_secure_storage
BSD 3-Clause "New" or "Revised" License
1.09k stars 340 forks source link

> Failed to transform android.jar to match attributes {artifactType=android-platform-attr, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}. #735

Open regetskcob opened 2 weeks ago

regetskcob commented 2 weeks ago

I added the package to my iOS/Android flutter app and since that I'm unabled to build against android with the following error.

* What went wrong:
Execution failed for task ':flutter_secure_storage:parseDebugLocalResources'.
> Could not resolve all files for configuration ':flutter_secure_storage:androidApis'.
   > Failed to transform android.jar to match attributes {artifactType=android-platform-attr, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}.
      > Execution failed for PlatformAttrTransform: /Users/bs000y6vu/Library/Android/sdk/platforms/android-28/android.jar.
         > /Users/bs000y6vu/Library/Android/sdk/platforms/android-28/android.jar

My Environment:

------------------------------------------------------------
Gradle 7.6.3
------------------------------------------------------------

Build time:   2023-10-04 15:59:47 UTC
Revision:     1694251d59e0d4752d547e1fd5b5020b798a7e71

Kotlin:       1.7.10
Groovy:       3.0.13
Ant:          Apache Ant(TM) version 1.10.11 compiled on July 10 2021
JVM:          22.0.1 (Homebrew 22.0.1)
OS:           Mac OS X 14.5 aarch64
ziyadmansy commented 2 weeks ago

same for me here...