Closed zsomborgellerfi closed 6 months ago
@zsomborgellerfi how are you configured bouncycastle in your react native app?
@ndesai-newrelic I have no clue what bouncycastle is, I assumed it's part of the newrelic agent. I am not getting any errors if I remove 'newrelic-react-native-agent' from app.config.js.
@zsomborgellerfi We have a similar case of this. Can you help me with few questions? Thank you.
I am not using the dexguard-gradle-plugin.
@zsomborgellerfi can you share your package.json file?
@zsomborgellerfi I am unable to reproduce with expo 50 on sample app.
@ndesai-newrelic I have updated my post with the package.json file
@zsomborgellerfi is this still issue?
@ndesai-newrelic yes we are still getting the same error. What can I do to give you more insights?
I am also experiencing this issue with react-native 0.73.4
@sheriffyusuf can you provide example app?
Okay
@ndesai-newrelic , sadly I couldn't reproduce this in an example app.
Here is the log I get.
Execution failed for task ':app:dexBuilderDebug'.
> There were multiple failures while executing work items
> A failure occurred while executing com.android.build.gradle.internal.dexing.DexWorkAction
> Failed to process: /Users/sheriff/RN-Projects/rp_mobile/android/app/build/intermediates/classes/debug/ALL/newrelicTransformClassesForDebug/classes.jar
> A failure occurred while executing com.android.build.gradle.internal.dexing.DexWorkAction
> Failed to process: /Users/sheriff/RN-Projects/rp_mobile/android/app/build/intermediates/classes/debug/ALL/newrelicTransformClassesForDebug/classes.jar
> A failure occurred while executing com.android.build.gradle.internal.dexing.DexWorkAction
> Failed to process: /Users/sheriff/RN-Projects/rp_mobile/android/app/build/intermediates/classes/debug/ALL/newrelicTransformClassesForDebug/classes.jar
> A failure occurred while executing com.android.build.gradle.internal.dexing.DexWorkAction
> Failed to process: /Users/sheriff/RN-Projects/rp_mobile/android/app/build/intermediates/classes/debug/ALL/newrelicTransformClassesForDebug/classes.jar
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/8.3/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
BUILD FAILED in 53s
705 actionable tasks: 66 executed, 639 up-to-date
Hello I'm experiencing the same issue after upgrading to expo 50 :
> Task :app:dexBuilderDebug
ERROR: /home/expo/workingdir/build/front/android/app/build/intermediates/classes/debug/ALL/newrelicTransformClassesForDebug/classes.jar: D8: com.android.tools.r8.internal.Ub: Invalid empty classfile
ERROR: /home/expo/workingdir/build/front/android/app/build/intermediates/classes/debug/ALL/newrelicTransformClassesForDebug/classes.jar: D8: com.android.tools.r8.internal.Ub: Invalid empty classfile
Here are my package.json dependencies if this could help
{
"dependencies": {
"@apollo/client": "^3.6.5",
"@expo/webpack-config": "~19.0.1",
"@react-native-async-storage/async-storage": "1.21.0",
"@react-native-community/masked-view": "^0.1.11",
"@react-native-community/netinfo": "11.1.0",
"@react-native-firebase/analytics": "^16.4.3",
"@react-native-firebase/app": "^16.4.3",
"@react-native-firebase/crashlytics": "^16.4.3",
"@react-native-firebase/perf": "^16.4.3",
"@react-native-google-signin/google-signin": "^10.1.1",
"@react-native-picker/picker": "2.6.1",
"@react-navigation/drawer": "^6.1.8",
"@react-navigation/native": "^6.0.6",
"@react-navigation/stack": "^6.0.11",
"aws-sdk": "^2.1057.0",
"expo": "^50.0.8",
"expo-apple-authentication": "~6.3.0",
"expo-blur": "~12.9.2",
"expo-build-properties": "~0.11.1",
"expo-dev-client": "~3.3.9",
"expo-file-system": "~16.0.7",
"expo-image-loader": "~4.6.0",
"expo-image-picker": "~14.7.1",
"expo-linking": "~6.2.2",
"expo-media-library": "~15.9.1",
"expo-splash-screen": "~0.26.4",
"expo-status-bar": "~1.11.1",
"expo-store-review": "~6.8.3",
"expo-updates": "~0.24.11",
"graphql": "^16.0.1",
"imagekit-javascript": "^2.0.0",
"intl": "^1.2.5",
"joi": "^17.6.0",
"lodash": "^4.17.21",
"newrelic-react-native-agent": "^1.3.5",
"react": "18.2.0",
"react-async": "^10.0.1",
"react-dom": "18.2.0",
"react-native": "0.73.4",
"react-native-crisp-chat-sdk": "^0.13.4",
"react-native-dotenv": "^3.3.0",
"react-native-expo-image-cache": "^4.1.0",
"react-native-gesture-handler": "~2.14.0",
"react-native-get-random-values": "~1.8.0",
"react-native-image-zoom-viewer": "^3.0.1",
"react-native-keyboard-aware-scroll-view": "^0.9.5",
"react-native-multi-selectbox": "^1.5.0",
"react-native-paper": "^5.12.3",
"react-native-paper-dates": "^0.22.3",
"react-native-purchases": "^7.4.0",
"react-native-reanimated": "~3.6.2",
"react-native-safe-area-context": "4.8.2",
"react-native-screens": "~3.29.0",
"react-native-svg": "14.1.0",
"react-native-url-polyfill": "^2.0.0",
"react-native-vector-icons": "^9.1.0",
"react-native-web": "~0.19.6",
"react-native-webview": "13.6.4",
"text-encoding-polyfill": "^0.6.7",
"util": "^0.12.4",
"uuid": "^8.3.2"
}
}
@olaurendeau I tried multiple times but I am unable to reproduce this issue, can you provide the sample app where you can reproduce the issue?
Hello I'm experiencing the same issue after upgrading to expo 50 :
> Task :app:dexBuilderDebug ERROR: /home/expo/workingdir/build/front/android/app/build/intermediates/classes/debug/ALL/newrelicTransformClassesForDebug/classes.jar: D8: com.android.tools.r8.internal.Ub: Invalid empty classfile ERROR: /home/expo/workingdir/build/front/android/app/build/intermediates/classes/debug/ALL/newrelicTransformClassesForDebug/classes.jar: D8: com.android.tools.r8.internal.Ub: Invalid empty classfile
Here are my package.json dependencies if this could help
{ "dependencies": { "@apollo/client": "^3.6.5", "@expo/webpack-config": "~19.0.1", "@react-native-async-storage/async-storage": "1.21.0", "@react-native-community/masked-view": "^0.1.11", "@react-native-community/netinfo": "11.1.0", "@react-native-firebase/analytics": "^16.4.3", "@react-native-firebase/app": "^16.4.3", "@react-native-firebase/crashlytics": "^16.4.3", "@react-native-firebase/perf": "^16.4.3", "@react-native-google-signin/google-signin": "^10.1.1", "@react-native-picker/picker": "2.6.1", "@react-navigation/drawer": "^6.1.8", "@react-navigation/native": "^6.0.6", "@react-navigation/stack": "^6.0.11", "aws-sdk": "^2.1057.0", "expo": "^50.0.8", "expo-apple-authentication": "~6.3.0", "expo-blur": "~12.9.2", "expo-build-properties": "~0.11.1", "expo-dev-client": "~3.3.9", "expo-file-system": "~16.0.7", "expo-image-loader": "~4.6.0", "expo-image-picker": "~14.7.1", "expo-linking": "~6.2.2", "expo-media-library": "~15.9.1", "expo-splash-screen": "~0.26.4", "expo-status-bar": "~1.11.1", "expo-store-review": "~6.8.3", "expo-updates": "~0.24.11", "graphql": "^16.0.1", "imagekit-javascript": "^2.0.0", "intl": "^1.2.5", "joi": "^17.6.0", "lodash": "^4.17.21", "newrelic-react-native-agent": "^1.3.5", "react": "18.2.0", "react-async": "^10.0.1", "react-dom": "18.2.0", "react-native": "0.73.4", "react-native-crisp-chat-sdk": "^0.13.4", "react-native-dotenv": "^3.3.0", "react-native-expo-image-cache": "^4.1.0", "react-native-gesture-handler": "~2.14.0", "react-native-get-random-values": "~1.8.0", "react-native-image-zoom-viewer": "^3.0.1", "react-native-keyboard-aware-scroll-view": "^0.9.5", "react-native-multi-selectbox": "^1.5.0", "react-native-paper": "^5.12.3", "react-native-paper-dates": "^0.22.3", "react-native-purchases": "^7.4.0", "react-native-reanimated": "~3.6.2", "react-native-safe-area-context": "4.8.2", "react-native-screens": "~3.29.0", "react-native-svg": "14.1.0", "react-native-url-polyfill": "^2.0.0", "react-native-vector-icons": "^9.1.0", "react-native-web": "~0.19.6", "react-native-webview": "13.6.4", "text-encoding-polyfill": "^0.6.7", "util": "^0.12.4", "uuid": "^8.3.2" } }
Hello,
I'm having the exact same error, it seems to be an issue between newrelic and @react-native-firebase/perf
@AlbertCardi can you share your app level and project level build.gradle files?
Hello @ndesai-newrelic,
Here's a project that reproduces the bug: https://github.com/AlbertCardi/repro-newrelic
I thought that it was only an issue between "newrelic" and "@react-native-firebase/perf", but it actually also involves "@iadvize-oss/iadvize-react-native-sdk"
@AlbertCardi thanks for sample app, we will check it from our side.
@AlbertCardi you're experiencing an issue with the Firebase Performance Monitoring library. It seems there's an incompatibility between our newrelic android agent and firebase performance library. According to our documentation, it's not feasible to run both simultaneously. Could you please review our documentation for further details? https://docs.newrelic.com/docs/mobile-monitoring/new-relic-mobile-android/troubleshoot/firebase-incompatibility-android/
@AlbertCardi I am able to build the app without firebase performance monitoring package
I can confirm that the issue is solved by removing firebase/perf from our bundle, thanks everyone!
Didn't see the part about the incompatibility with firebase/perf :( Thanks for helping out !
Description
After upgrading to Expo SDK 50, we are getting the following error when building the release version for Android.
Steps to Reproduce
Error logs:
My package.json: