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

I can't build an Android application in debugging #64

Closed VladimirKraswov closed 2 years ago

VladimirKraswov commented 2 years ago

I can't build an Android application in debugging

The build crashes with this error

[Fatal Error] txw2-2.2.11.pom:7:3: The element type "hr" must be terminated by the matching end-tag "". e: /Users/vladimirkrasov/work/Hermes-Operator-App/node_modules/react-native-star-io10/android/src/main/java/com/stario10module/StarIO10ValueConverter.kt: (711, 26): Cannot access 'body': it is package-private in 'Response' e: /Users/vladimirkrasov/work/Hermes-Operator-App/node_modules/react-native-star-io10/android/src/main/java/com/stario10module/StarIO10ValueConverter.kt: (713, 30): Cannot access 'body': it is package-private in 'Response'

FAILURE: Build failed with an exception.

gare-bear commented 2 years ago

@VladimirKraswov the issue ("cannot access body...") has been discussed in issue #37 and is the result of a specification change in the okhttp package. Please take a look at the comment by Bandit.

gare-bear commented 2 years ago

@bandit-ibayashi Since this question has been asked a few times now, I think it would be valuable to add this to the Wiki.

bandit-ibayashi commented 2 years ago

@gare-bear I have uploaded this information on Wiki. https://github.com/star-micronics/react-native-star-io10/wiki/FAQ#android-error-cannot-access-body-it-is-package-private-in-response

smalik02 commented 2 years ago

Hi - I have added implementation "com.squareup.okhttp3:okhttp:4.10.0" to android/app/build.gradle but it still keeps giving the same error. Any advice on how to make the changes?