jpnurmi / flutter_libserialport

Serial Port for Flutter
https://pub.dev/packages/flutter_libserialport
MIT License
139 stars 80 forks source link

android build failed #81

Closed toplinuxsir closed 2 months ago

toplinuxsir commented 10 months ago

` FAILURE: Build failed with an exception.

`

evanwsu commented 10 months ago

+1

Sounean commented 10 months ago

+1

chasersmith commented 10 months ago

+1 having same problem.

ajeeshklr commented 10 months ago

+1 Facing same issue.

284419347 commented 10 months ago

+1

kao2kao commented 9 months ago

+1

mh- commented 9 months ago

+1

bobaxix commented 9 months ago

+1

cjouannet commented 9 months ago

+1

BigSeanZzz commented 9 months ago

+1

doubletcjs commented 9 months ago

Same issue.

It work for me like this.

Before: 批注 2023-08-18 172955 After: 批注 2023-08-18 172918

Exevil33 commented 8 months ago

I've tried as you have done, but i doesn't work for me, same error..

code

and the error:

FAILURE: Build failed with an exception.

BUILD FAILED in 22s

pro100andrey commented 8 months ago

Hi All, https://github.com/jpnurmi/flutter_libserialport/pull/72 https://github.com/jpnurmi/flutter_libserialport/pull/84

rekire commented 7 months ago

Just FYI don't add "+1" comments here use the thumb up emoji instead. I would guess that just as mentioned by @pro100andrey that the PR #84 will fix that.

Without having that merged you can use that fork by adding this to your pubspec.yaml:

  flutter_libserialport: # ^0.3.1 <- uncomment this after the 0.3.1 release of flutter_libserialport
    git: # remove this and the next two lines after the release above is live
      url: https://github.com/ajeeshklr/flutter_libserialport
      ref: 849b23ac3228ce46a22b24009becf34765494403

With that overwritten dependency it works on my machine.

ivanix9325 commented 7 months ago

the solution provided by @doubletcjs worked for me. After the changes he suggested I performed a Flutter Clean command and Flutter Create .

I succesfully compiled on android. I still have to test on serial hardware to validate it works 100%. I will update this comment on the result test.

yaowei103 commented 6 months ago

@doubletcjs ,works for me, install CMake, Nanja in my PC(add Nanja exe file to CMake bin folder), then add NDK in android studio, it works