januslo / react-native-bluetooth-escpos-printer

React-Native plugin for the bluetooth ESC/POS & TSC printers.
MIT License
367 stars 424 forks source link

A problem occurred configuring project ':react-native-bluetooth-escpos-printer' #204

Closed asd123456789asdad closed 2 years ago

asd123456789asdad commented 2 years ago
image

I just, install using NPM, but after that I try to run an error shown like

Gokulselvan commented 2 years ago

Hii,

This is because of protocol mismatch in node_modules/react-native-bluetooth-escpos-printer/android/build.gradle

Replace http:// link with https:// will solve this issue.

Edit: Also don't forgot to remove this line compile fileTree(dir: 'libs', include: ['*.jar'])

Gokulselvan commented 2 years ago

Hope this also helps

https://github.com/januslo/react-native-bluetooth-escpos-printer/issues/198

asd123456789asdad commented 2 years ago

thanks @Gokulselvan its help me. but i facing the new problem when i try to link it with this command react-native link react-native-bluetooth-escpos-printer

image

hoping u still help me to solve this one also

Gokulselvan commented 2 years ago

From the document, I understand that.

react-native link is for older version (< 0.6)

U don't need to do that for new versions

asd123456789asdad commented 2 years ago

works,, thanks alot