star-micronics / react-native-star-io10

react-native-star-io10 is a library for supporting application development for Star Micronics devices.
Other
83 stars 54 forks source link

Could not find :stario10:. #114

Open ashleyww93 opened 2 months ago

ashleyww93 commented 2 months ago

Description

I am unable to build an android application, I get the following error:

Configure project :react-native-star-io10 WARNING: Using flatDir should be avoided because it doesn't support any meta-data formats.

FAILURE: Build failed with an exception.

image

Your device where the bug occurs

N/A

Your printer

N/A

Your development environment

ProductName: macOS ProductVersion: 14.4.1 BuildVersion: 23E224

Also, the result of executing the command npx react-native info.

System: OS: macOS 14.4.1 CPU: (10) arm64 Apple M1 Max Memory: 17.43 GB / 64.00 GB Shell: version: 3.2.57 path: /bin/bash Binaries: Node: version: 21.7.3 path: /opt/homebrew/bin/node Yarn: version: 1.22.10 path: /usr/local/bin/yarn npm: version: 10.5.0 path: /opt/homebrew/bin/npm Watchman: Not Found Managers: CocoaPods: version: 1.15.2 path: /opt/homebrew/bin/pod SDKs: iOS SDK: Platforms:

To Reproduce

Steps to reproduce the behavior: Add the library to an android application, and try and build. See Gradle error

Expected behavior

The application should build.

mengheangrat commented 2 months ago

Did you config this yet?

allprojects { repositories { flatDir { dirs "$rootDir/../node_modules/react-native-star-io10/android/src/lib" } } }

ashleyww93 commented 2 months ago

I have this working now. I have a pretty hectic week with in person events, but I’ll be sure to circle back and update this ticket with how it was resolved.

can-miki commented 1 month ago

Hello everyone,

We would like to express our gratitude for your cooperation and support with the issues. We take your feedback very seriously as it plays an important role in improving our products and services.

Could you share the latest status on any issues? Your active feedback and support are indispensable in building a better community. We sincerely appreciate your time and consideration. Best regards.

web-stacked commented 2 weeks ago

what was the solution for this issue? im experiencing the same thing and i believe its because the way my expo project is setup, i noticed it only works when i use a "bare workflow" environment any input will be appreciated

paulnolan7 commented 2 weeks ago

I too have this issue using expo. The eas build fails with the same gradle error.

can-miki commented 2 weeks ago

@web-stacked @paulnolan7

Maybe it will give you a clue to the solution, please check the following issue. https://github.com/star-micronics/react-native-star-io10/issues/117

paulnolan7 commented 2 weeks ago

Ahh, yes thank you @can-miki #117 is the solution to the problem. NOTE: for other EAS users it is now complaining about the minSdk being 23 whereas it needs 28, but that is a EAS configuration issue and not a problem with react-native-star-io10. So we can probably close this issue.

can-miki commented 2 weeks ago

@paulnolan7 Thank you for your confirmation. This library is built with minSdkVersion = 28. I hope this is helpful. https://github.com/star-micronics/react-native-star-io10/blob/master/example/android/build.gradle