kandi X-RAY | react-native-google-analytics Summary
kandi X-RAY | react-native-google-analytics Summary
Google Analytics for React Native! Compatible with react-native-ab
Top functions reviewed by kandi - BETA
react-native-google-analytics Key Features
react-native-google-analytics Examples and Code Snippets
Trending Discussions on react-native-google-analytics
Here is my dependencies...
ANSWERAnswered 2018-Jun-11 at 10:17
google() to before
jcenter() in your build.gradle e.g.
I'm running a react native project via the
react-native run-android. But during the build it fails stating that
:react-native-device-info:processReleaseResources FAILED. Which doesn't give much info, so I tried running with
react-native run-android --stacktrace as suggested but that isn't a recognized command.
How can you enable stacktrace / verbose logging with
react-native run-android command?
This is the detail of the error which is too short to figure out at build:...
ANSWERAnswered 2017-Nov-20 at 08:12
Try to build
react-native-device-info separately with
./gradlew assembleDebug and make sure
react-native-device-info is all right. I have the same problems because of my network which is blocked and can not reach
By the way,
--stacktrace should be add as
gradle parameters, I doubt
react-native does not pass it to
Our android build started failing all on its own without a single line change for 2 days now.
This is the error message:
/Users/shroukkhan/.gradle/caches/transforms-1/files-1.1/ui-5.11.1.aar/baa8b66e2e52a0a50719f014fc3f1c32/res/values/values.xml:40:5-54: AAPT: error: resource android:attr/fontVariationSettings not found.
/Users/shroukkhan/.gradle/caches/transforms-1/files-1.1/ui-5.11.1.aar/baa8b66e2e52a0a50719f014fc3f1c32/res/values/values.xml:40:5-54: AAPT: error: resource android:attr/ttcIndex not found.
As I understand this is related to android support library version mismatch, so i have forced using same library version . However, the problem has persisted. Here is the root level build.gradle:...
ANSWERAnswered 2019-Jun-19 at 15:57
fontVariationSettings attribute was added in API Level 28.
compileSdkVersion to 28 or higher to be able to use libraries that reference this attribute.
I am trying to run an application, but I keep getting this mysterious error:
I'm getting this error in Android Studio when I use the class Run button to try to build the app on my phone (yes, it is connected and recognized), and I also get this error when I use the terminal to run
When I run / build the app, it installs the apk on my phone, but when it starts up it crashes immediately, every time.
I found this error following error at least 6 times when using
adb logcat *:E in the terminal:
And I find this error multiple times when clicking "Run" in Android Studio.
I've only seen 1 or two similar issues before like here on SO, or
I also tried
react-native bundle --platform android --dev false --entry-file index.android.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/ from this SO question but it didn't work for me either.
Here are my main gradle files:
ANSWERAnswered 2019-Aug-26 at 08:17
It turns out, this was an error in my
index.android.bundle file and it took me a while to figure out that I could trace which package the error was coming from by looking at the bundled code around
Sn[e]. It turns out, this error was coming from
react-navigation and I had to complete the following steps:
- Follow the complete
react-native-reanimated(there's instructions on the site for your specific react-native version & if you're using expo or not)
- Add some imports & new function to my
fbjspackage to resolve some missing dependencies (see this SO answer)
- Re-bundle my code with:
react-native bundle --platform android --dev false --entry-file index.android.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/
I was trying to build an Android project on react-native application. Everything was working correctly until this morning. It is strange since no code was changed but build is failing. It could be something to do with internal dependency update but I was unable to figure it out.
I was trying to update compileSdkVersion to 28 but this produces more problems and I would like to avoid it if it was not completely necessary.
ANSWERAnswered 2019-Jun-20 at 11:11
It seems to be related to Google releasing a new version of their Play Service and as you don't want to update compileSdkVersion.
I got this policy in my
React Native App :
form Google Play
I use this dependencies...
ANSWERAnswered 2018-Sep-28 at 17:57
I think you use these dependencies: react-native-device-info, react-native-google-analytics-bridge, they cause your problem, you must provide url policy on your app for google
ANSWERAnswered 2019-Jan-15 at 08:30
This looks like a dex issue.
As you are targeting a minSDKVersion of 19 you need to add the following to your dependencies
I'm using Jest and Enzyme in my React Native app to test my component and I keep getting this error when testing
babel-plugin-jest-hoist: The second argument of 'jest.mock' must be an inline function. I don't really understand what I'm doing wrong because I am passing an inline function.
Here is my code in my test file (search-screen.tests.js):...
ANSWERAnswered 2019-Jan-04 at 10:21
I'm guessing that the problem is that, for all intents and purposes, you're passing an object as the second parameter to jest.mock. The arrow function is within the object in the withNavigation key.
I believe that you need to pass it an arrow function that returns that same object, like this:
I cannot figure out what is wrong with the build. I tried the common solutions of running ./gradlew clean as well as adding the android.enableAapt2=false to the gradle.properties.
The google-services.json folder is at the /android/app level.
Im at a loss right now as to how to get past this one.
If I forgot to include something useful please lmk and I will update.
Configure project :app WARNING: The specified Android SDK Build Tools version (26.0.1) is ignored, as it is below the minimum supported version (27.0.3) for Android Gradle Plugin 3.1.3. Android SDK Build Tools 27.0.3 will be used. To suppress this warning, remove "buildToolsVersion '26.0.1'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools. Could not find google-services.json while looking in [src/nullnull/debug, src/debug/nullnull, src/nullnull, src/debug, src/nullnullDebug] registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection) Could not find google-services.json while looking in [src/nullnull/release, src/release/nullnull, src/nullnull, src/release, src/nullnullRelease] registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
Configure project :react-native-google-analytics-bridge WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'. It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
Configure project :react-native-radar WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'. It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
Task :app:processDebugGoogleServices Parsing json file: /Users/kyletreman/18F/courier_test_app/android/app/google-services.json
/Users/kyletreman/.gradle/caches/transforms-1/files-1.1/appcompat-v7-23.0.1.aar/64df69838d7c555de168bdcf18f3be5c/res/values/values.xml:113:5-69: AAPT: error: resource android:attr/fontVariationSettings not found.
/Users/kyletreman/.gradle/caches/transforms-1/files-1.1/appcompat-v7-23.0.1.aar/64df69838d7c555de168bdcf18f3be5c/res/values/values.xml:113:5-69: AAPT: error: resource android:attr/ttcIndex not found.
error: failed linking references.
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':app:processDebugResources'. Failed to process resources, see aapt output above for details.
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
BUILD FAILED in 2s 50 actionable tasks: 3 executed, 47 up-to-date Could not install the app on the device, read the error above for details. Make sure you have an Android emulator running or a device connected and have set up your Android development environment: https://facebook.github.io/react-native/docs/getting-started.html
ANSWERAnswered 2018-Jul-12 at 19:39
I was able to get help from someone familiar with the native side and he helped me sort out quite a few errors.
implementation order matters, this was the order that worked for me
My app is stuck on splashscreen after resume:
- Launch app
- Press on back (go to Android dashboard)
- Click on app icon
app is stuck on splascreen
Here are my dependencies :...
ANSWERAnswered 2018-Nov-13 at 16:22
You should call the
SplashScreen.hide() from the
You can add a delay if you wish, for example:
No vulnerabilities reported
Reuse Trending Solutions
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page