star-micronics / react-native-star-io10

react-native-star-io10 is a library for supporting application development for Star Micronics devices.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

I can't build an Android application in debugging

VladimirKraswov opened this issue · comments

I can't build an Android application in debugging

  • OS:
    Android

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.

  • What went wrong:
    Execution failed for task ':react-native-star-io10:compileDebugKotlin'.

Compilation error. See log for more details

@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.

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

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?