React-native-onesignal: cannot find symbol import com.onesignal.OneSignal.OutcomeCallback;

Created on 3 Dec 2019  路  2Comments  路  Source: OneSignal/react-native-onesignal

Description:

I have an error after updating react-native-onesignal to 3.5.0 from 3.4.1

RNOneSignal.java:31: error: cannot find symbol
import com.onesignal.OneSignal.OutcomeCallback;

Environment

Steps to Reproduce Issue:

  1. Update react-native-onesignal to 3.5.0 from 3.4.1
  2. react-native run-android

Anything else:

RNOneSignal.java:31: error: cannot find symbol
import com.onesignal.OneSignal.OutcomeCallback;

Most helpful comment

Thanks, it helped. It was 3.12.2 version in onesignal's buld.gradle. After replacing with version 3.12.3 everything works fine

All 2 comments

Hello,
This means that the OneSignal dependency isn't pulling the latest version of the native Android SDK. Please check that the linking step worked correctly and check your gradle to make sure the latest version is being used.

Thanks, it helped. It was 3.12.2 version in onesignal's buld.gradle. After replacing with version 3.12.3 everything works fine

Was this page helpful?
0 / 5 - 0 ratings