Sentry Upload Fails in Android Studio - android

I'm new to sentry. I have a react native mobile application from react native version 0.59. I have set up sentry for the mobile app as per this guide.
https://docs.sentry.io/platforms/react-native/
When I ran the react native bundle command and try to create an android build using android studio following error comes. I searched in google and couldn't find a proper answer for my question. Does anyone know how to fix this issue.

did you execute the sentry-wizard command and did it work? if yes, then please, export the system env. SENTRY_LOG_LEVEL as mentioned in the error message and paste us the full log so we could have a look into it.

Related

react-native-google-mobile-ads with Expo managed workflow will not work

I have followed all of the most up-to-date guides and suggestions for getting react-native-google-mobile-ads to work with an Expo managed workflow, including these:
How to use react-native-google-mobile-ads with Expo?
How do I use react-native-google-mobile-ads with Expo and Expo Go?
But I keep getting the same error:
ERROR TypeError: null is not an object (evaluating 'RNAppModule.eventsNotifyReady')
It would seem that this error originates in this jest.setup.ts file:
https://github.com/invertase/react-native-google-mobile-ads/blob/main/jest.setup.ts
but I have no idea what the error is or how to overcome it.
This error happens when I initiate interstitial.load() as per the official documentation.
Any help would be greatly appreciated.
Ran into this same problem. Turns out the command to use was hidden in their docs at the end of the build steps without any explanation.
https://docs.page/invertase/react-native-google-mobile-ads#setting-up-google-admob
Using react-native-google-mobile-ads, Expo Go will no longer be able to handle linking all the native dependencies. So you'll have to use EAS to build it. Per the docs, you can use npx eas-cli build --profile development to build for development. Alternatively, to install locally rather than on EAS servers, add the --local flag to that command. Just note that if building locally you may need to set the Android SDK path following the instructions to edit your eas.json at Expo build EAS - local - SDK location not found.
After building for Android (I don't have a Mac so I can't speak for development on iOS), it generates an apk which you need to install on your device. I'm sure there's a way to install this on an emulator too.
Once you've opened that app, it will direct you to start a development server using expo start --dev-client. This will run a dev server similar to the usual Expo Go. It pulls up a QR code which you can scan and it will take you into your app. Hot reload works as expected too. Doing this my test banner ad showed up without any errors.
The same solution is discussed here.

Expo Client Not Getting Installed On Mac?

The below command to install expo client in the official react native documentation fails.
npm install -g expo-cli
The error shown is attached as a screenshot below.
Someone please tell me how to solve this the github issue below they are pointing to has no answers for this.
https://github.com/request/request/issues/3142
its like if someone new tries to develop on expo its not possible ??
It's just a warning and there are plenty in the React Native ecosystem.
What do you mean by:
its like if someone new tries to develop on expo its not possible ??
Using expo client to work on your own React Native application
or
Developing features/fix for the expo sdk?
It's working on my machine
❯ expo --version
3.15.4
Sorry,
But looks like if you wait for some time the installation of expo client continues even though at first it looks stuck and points to a github issue.
But why that delay and confusion in a widely used platform it should be avoided.

How to debug NativeScript java code in Android Studio?

I'm quite new to NativeScript. Currently, one of my projects is using NativeScript to develop cross-platform app. It has a 3rd-party lib which is written in java. But the result is not as good as I expected. I was struggling to find the problem since the console didn't log valuable info regarding to native code.
Instead, I import the project to Android Studio which is under the folder of platform/android. But it logs error when I hit the "run" button.
I want to know:
Is it possible to debug native code directly with VS Code. At least print out java native error or cat log.
How can I debug native code in Android Studio? How to solve the problem I ran into?
I'd be very appreciated, if anyone can answer my questions. Thanks!
Let me start off by saying there's no official integration with Android Studio. All I can provide is a workaround that will make it possible.
Note: The steps provided below are tested with NativeScript CLI 3.1.1 and will probably work also with 3.2.0.
The first problem is you don't have "node" set in your global path so first of all, you need to add it to PATH. Node required for NativeScript to run. You can look at how to set it up here
If you want to be able to run the project with Android Studio you can follow these steps:
After you've done that you need to change the <app_name>/platforms/android/build.gradle file as described here
The above change will enable you to open <app_name>/platforms/android in Android Studio
Run <app_name>:clean task from gradle
Run the task default for Android Studio, that will prompt you for emulator or device on which to run:

Why does building my native react android app after implementing facebook sdk gives me these errors?

I did the tutorial on facebook for using the facebook sdk for my react native android app exactly as its documented but I get the following errors when I try to run $react-native run-android:
Please follow this tutorial
https://tylermcginnis.com/installing-the-facebook-sdk-into-a-react-native-android-and-ios-app/
There are some missing pieces with the fbsdk official.
The above link will definitely solve your problem.
I have successfully implemented it.

Unable to debug React Native in Android Studio

I am trying to work on react native for android application development. I am using android studio for that, but I am unable to debug the .js files developed for react native. Whenever there is any problem with code its giving me error, Unexpected Token, I am unable to know that how to debug or get proper error. Is there any framework available to work on React native for Android app development. I have already figured out a lot but unable to get any solution to debug android app based on React Native.
You can debug JavaScript code, console.log etc in Chrome. You have to select "Debug in Chrome" from the developer menu on device first and that will open a new tab on Chrome at localhost:8081/debugger-ui. However, to debug in Chrome, keep in mind you have to install React Developer Tools on Chrome https://chrome.google.com/webstore/detail/react-developer-tools/fmkadmapgofadopljbjfkapdkoienihi
You need to debug in Chrome. There are good docs on the RN site about debugging:
https://facebook.github.io/react-native/docs/debugging.html#content
However, if you have syntax errors the debugger won't help you, but Chrome Dev tools might give you a better idea of where the error is.

Categories

Resources