-
-
Notifications
You must be signed in to change notification settings - Fork 342
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
Android build failed #409
Comments
Was just about to open this very same issue. I am on UpdateI was completely wrong about the RN version mismatch. I did have to do an extra step tho, in the android/app/build.gradle I added (for my RN version case) |
@RobPando |
Updating to
But I get the same version mismatch issue... The hack works but it is definitely a hack and this will be an issue when upgrading RN versions. |
It seems like it's trying to compile the react-native-sentry projects using a different React-Native version than what is currently installed in the node_modules folder. I am on RN v0.51 as well. I haven't done an npm install of react-native-sentry since December. The build worked fine yesterday and breaks today. Looks like this is an issue with the Maven repository, as discussed here |
So this issue is not really related to Sentry, more like react-native / gradle itself. |
@HazAT why do you say it fixes the issue? |
@m-vdb Check the link in my comment above. The reason your build was breaking was because of a bad react-native dependency that was uploaded to the maven / jcenter repositories. The bad dependency caused the older Sentry versions to attempt to be built using newer libraries that didn't have backwards compatibility support for the older Sentry versions. Now that the bad react-native dependency has been removed from maven / jcenter this error should be resolved. |
thanks! Don't why I didn't see that. I especially read this comment that explains the issue: facebook/react-native#13094 (comment) |
OS:
Platform:
Output of node -v && npm -v && npm ls --prod --depth=0
v8.11.1
6.0.1
[email protected]
[email protected]
[email protected]
I have following issue:
Failed to build android apk
Steps to reproduce:
react-native run-android
Actual result:
node_modules/react-native-sentry/android/src/main/java/io/sentry/RNSentryModule.java:262: error: incompatible types: ReadableArray cannot be converted to ReadableNativeArray
addExceptionInterface(eventBuilder, exception.getString("type"), exception.getString("value"), stacktrace.getArray("frames"));
Expected result:
The text was updated successfully, but these errors were encountered: