zetavg / react-native-system-notification

Android system notifications for React Native. Supports push notifications with GCM integrated.
https://www.npmjs.com/package/react-native-system-notification
244 stars 102 forks source link

Build error #73

Closed krapspark closed 7 years ago

krapspark commented 7 years ago

Hi,

I'm getting the following error. Anyone have any idea on what could be causing this? Thanks!

  "react": "~15.2.1",
  "react-native": "~0.31.0",
  "react-native-system-notification": "^0.2.1",

:react-native-system-notification:prepareComGoogleAndroidGmsPlayServicesGcm810Library :react-native-system-notification:prepareOrgWebkitAndroidJscR174650Library :react-native-system-notification:prepareReleaseDependencies :react-native-system-notification:compileReleaseAidl :react-native-system-notification:compileReleaseRenderscript

FAILURE: Build failed with an exception.

BUILD FAILED

krapspark commented 7 years ago

I think this was caused by me copying the following line into settings.gradle per README.

project(':react-native-system-notification').projectDir = new File(settingsDir, '../node_modules/react-native-system-notification/android')

I changed it to the following similar to other third party RN npm modules and it seems to build fine.

project(':react-native-system-notification').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-system-notification/android')