Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in android Build #970

Closed
alib1989 opened this issue Apr 2, 2020 · 5 comments
Closed

Error in android Build #970

alib1989 opened this issue Apr 2, 2020 · 5 comments

Comments

@alib1989
Copy link

alib1989 commented Apr 2, 2020

hello
i got error when i try
react-native run-android
the error is

node_modules/react-native-onesignal/android/src/main/java/com/geektime/rnonesignalandroid/RNOneSignal.java:379: error: cannot find symbol
public void setExternalUserId(@nonnull final String externalId, @nullable final Callback callback) {

My Package JSON is

{
"name": "app",
"version": "0.0.1",
"private": true,
"scripts": {
"android": "react-native run-android",
"ios": "react-native run-ios",
"start": "react-native start",
"test": "jest",
"lint": "eslint ."
},
"dependencies": {
"@react-native-community/async-storage": "^1.8.1",
"@react-native-community/masked-view": "^0.1.7",
"@react-navigation/bottom-tabs": "^5.1.0",
"@react-navigation/drawer": "^5.1.0",
"@react-navigation/native": "^5.0.8",
"@react-navigation/stack": "^5.1.0",
"axios": "^0.19.2",
"native-base": "^2.13.8",
"react": "16.9.0",
"react-native": "0.61.5",
"react-native-elements": "^1.2.7",
"react-native-fast-image": "^8.1.5",
"react-native-form-validator": "^0.3.2",
"react-native-gesture-handler": "^1.6.0",
"react-native-i18n": "^2.0.15",
"react-native-image-picker": "^2.3.1",
"react-native-image-slider-box": "^1.0.12",
"react-native-onesignal": "^3.7.0",
"react-native-reanimated": "^1.7.0",
"react-native-restart": "^0.0.14",
"react-native-safe-area-context": "^0.7.3",
"react-native-screens": "^2.2.0",
"react-native-splash-screen": "^3.2.0",
"react-native-vector-icons": "^6.6.0",
"react-redux": "^7.2.0",
"redux": "^4.0.5",
"redux-axios-middleware": "^4.0.1"
},
"devDependencies": {
"@babel/core": "^7.8.6",
"@babel/runtime": "^7.8.4",
"@bam.tech/react-native-make": "^2.0.0",
"@react-native-community/eslint-config": "^0.0.7",
"babel-jest": "^25.1.0",
"eslint": "^6.8.0",
"jest": "^25.1.0",
"metro-react-native-babel-preset": "^0.58.0",
"react-test-renderer": "16.9.0"
},
"jest": {
"preset": "react-native"
}
}

how can i fix this problem ?

@fritzfr
Copy link

fritzfr commented Apr 2, 2020

Same issue.

@eli0te
Copy link

eli0te commented Apr 2, 2020

Same here

@fritzfr
Copy link

fritzfr commented Apr 2, 2020

Try pinning the versions like I described here: #969 (comment)

@ssrG12
Copy link

ssrG12 commented Apr 2, 2020

Try pinning the versions like I described here: #969 (comment)

I try this but didn't work.

@jkasten2
Copy link
Member

jkasten2 commented Apr 3, 2020

This is now fixed in the 3.7.1 release
https://github.com/OneSignal/react-native-onesignal/releases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants