Closed gustavopirela closed 4 weeks ago
I haven’t tried Expo Application Services (EAS) yet, but when I built it with npx expo start
, it was successful.
Setup without Expo Application Services (EAS)
Have you tried the steps above and it still fails?
Please also refer to our READ ME.
Hi, the "npx expo start" executes the app but the printer still doesn't work.
I found the solution, I always thought the error was generated when I upgraded the Expo SDK to version 51 but in that process, I also upgraded the react-native-star-io10 package from Version 1.4.0 to 1.6.1 I was checking the react-native-star-io10 1.6.1 documentation and this new version requires some changes in the build.gradle that the old version didn't, you need to add this code in the build.gradle for Android implemetations.
allprojects { repositories { flatDir { dirs "$rootDir/../node_modules/react-native-star-io10/android/src/lib" } } }
so I ran an Android prebuild from EAS creating the Android folder, added these lines to build.gradle file. and finally I ran a EAS build and everything worked out!!!
Thank you for sharing. I'm glad it worked out well. Thank you for your cooperation!
Description
last year we rolled out our app using STAR printers (TSP100III), we developed our app using React Native (and expo dev client) and your NPM component "react-native-star-io10", everything has been working perfectly with the printers (No issues at all). and we have created several versions for both IOS and Android last ones were back in Feb 2024.
This week we updated the Expo SDK to version 51 and the deployment for IOS went through without any problem, but now I am trying to do the same for Android and I am having this issue in the Gradlew process
I realize that based on your documentation your component shouldn't work with expo, however, If you set your Expo app based on "Expo Development Client" your "react-native-star-io10" component was working smoothly until this new EXPO SDK 51.
Your printer
TSP100III
Your development environment
Expo Developer Client SDK 51 (it was working just fine on SDK 46, 47, 48 and 49)
It is still working fine for IOS on SDK 51 the problem occurs only in the gradle process for Android
To Reproduce
set a EXPO project with Development Client add the component and try eas build -platform android