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

Failed to transform UsbSerial-6.1.0.aar (com.github.felHR85:UsbSerial:6.1.0) to match attributes .. #118

Open
ahmadms-dev opened this issue Oct 27, 2024 · 5 comments

Comments

@ahmadms-dev
Copy link

Execution failed for task ':app:checkDebugAarMetadata'.

Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
Failed to transform UsbSerial-6.1.0.aar (com.github.felHR85:UsbSerial:6.1.0) to match attributes {artifactType=android-aar-metadata, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.
> Could not find UsbSerial-6.1.0.aar (com.github.felHR85:UsbSerial:6.1.0).
Searched in the following locations:
https://jitpack.io/com/github/felHR85/UsbSerial/6.1.0/UsbSerial-6.1.0.aar
https://jitpack.io/com/github/felHR85/UsbSerial/6.1.0/UsbSerial-6.1.0.jar

@jymden
Copy link

jymden commented Oct 31, 2024

We're having this too. It's a showstopper. We can't build the project for our customer anymore.

@xwork1
Copy link

xwork1 commented Nov 1, 2024

I have the same problem. When will it be solved?

implementation('com.github.felHR85:UsbSerial:7ad6c9f6') { artifact { classifier = 'release' type = 'aar' } } I changed it but the problem persisted because I did not add "-release" help :(( @altera2015

@jymden
Copy link

jymden commented Nov 1, 2024

This is an issue directly on the UsbSerial repo as well felHR85/UsbSerial#375

@xwork1
Copy link

xwork1 commented Nov 1, 2024

This is an issue directly on the UsbSerial repo as well felHR85/UsbSerial#375

Oh, yeah, that worked for me. I'm going to build.gradle in the path “AppData\Local\Pub\Cache\hosted\pub.dev\usb_serial-0.5.2\android”

“dependencies {
implementation('com.github.felHR85:UsbSerial:7ad6c9f6') {
artifact {
classifier = 'release'
type = 'aar'
   }
  }
}”

I added it. it worked.

@jymden
Copy link

jymden commented Nov 2, 2024

I forked and implemented the temp fix mentioned in the felHR85 repo (the one @xwork1 mentioned above). So if you want an easy quick fix you can use my repo while waiting for this to be resolved.

Just change the usb_serial dependency in pubspec.yaml to:

  usb_serial:
    git:
      url: https://github.com/jymden/usbserial.git
      ref: master

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