Driversnote-Dev / react-native-kontaktio

React Native (iOS and Android) library for Kontakt.io beacons (and all other beacons)
MIT License
112 stars 48 forks source link

error: package android.support.annotation does not exist | cannot find symbol class Nullable #61

Closed rfdc closed 5 years ago

rfdc commented 5 years ago

Hi there, I've started a fresh react-native project and got the following error:

error: package android.support.annotation does not exist
error: cannot find symbol class Nullable

This is a picture of the error: image

These are my dependencies:

"dependencies": {
    "react": "16.8.6",
    "react-native": "0.60.5",
    "react-native-kontaktio": "^2.6.2",
    "react-native-switch-toggle": "^1.1.0"
  },
  "devDependencies": {
    "@babel/core": "^7.5.5",
    "@babel/runtime": "^7.5.5",
    "@react-native-community/eslint-config": "^0.0.5",
    "babel-jest": "^24.8.0",
    "eslint": "^6.1.0",
    "jest": "^24.8.0",
    "metro-react-native-babel-preset": "^0.56.0",
    "react-test-renderer": "16.8.6"
  },

I've tried to use npm & yarn and both gave the same error.

Any idea on how to solve this issue?

Thanks

andrekovac commented 5 years ago

Thanks for posting the issue. The module is currently not yet tested with react-native version 0.60. As soon as it will be new, installation instructions for that version will be posted. In the meantime it's probably safer to stick to React Native 0.59.

If you get it to run on React Native 0.60, please tell us what you did or even better, file a PR. PRs are very much appreciated!

rfdc commented 5 years ago

Hi @Andruschenko, It worked with React Native 0.59 - Thanks