infoxicator / react-native-star-prnt

React-Native bridge to communicate with Star Micronics Bluetooth/LAN Printers
MIT License
67 stars 65 forks source link

Android build failing #67

Closed stephengladney closed 3 years ago

stephengladney commented 3 years ago

Using this library with Expo. After upgrading to Expo SDK 37, I was getting the error:

error: cannot find symbol class NonNull

So I added the following to gradle.properties:

android.useAndroidX=true
android.enableJetifier=true

Now I get this when trying to build...

.../node_modules/react-native-star-prnt/android/src/main/java/net/infoxication/reactstarprnt/RNStarPrntModule.java:16: error: package android.support.annotation does not exist
import android.support.annotation.Nullable;
stephengladney commented 3 years ago

Clearing node_modules and npm install again seems to have resolved.