react-native-android

Failed to run jetifier React Native

旧时模样 提交于 2019-12-19 03:18:43
问题 I tried to run react-native run-android and I got this error. info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag. error Failed to run jetifier. Run CLI with --verbose flag for more details. Error: spawnSync C:\Users\JayK\Desktop\React\AwesomeProject\node_modules\jetifier\bin\jetify ENOENT at Object.spawnSync (internal/child_process.js:1002:20) at spawnSync (child_process.js:614:24) at execFileSync (child_process.js:642:13) at Object

React-native Timeout when connecting to remote debugger in windows

此生再无相见时 提交于 2019-12-18 19:40:17
问题 I am new to React-Native and android app development as a whole. While i try to run remote debugger in Android Emulator (Pixel 2 phone), I get the following error in the emulator: Then after, even if I stop remote debugging, the application won't run on the emulator (i.e. nothing is rendered into the emulator screen). I need to run the project again. Following is the auto-generated debugger URL: http://10.0.2.2:8081/debugger-ui How can I Fix this problem? 回答1: http://10.0.2.2:8081/debugger-ui

Getting “verifyReleaseResources” error after upgrading React Native

五迷三道 提交于 2019-12-18 18:50:14
问题 I'm trying to upgrade an application to React Native 0.57.1. I think I've followed all the steps, upgraded all the right files, yet I'm still getting an error that I cannot understand: :react-native-document-picker:compileReleaseSources UP-TO-DATE :react-native-document-picker:mergeReleaseResources UP-TO-DATE :react-native-document-picker:verifyReleaseResourcesC:\Users\USERNAME\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\b3b5480809d523e6f8b8de92faafbcda\res\values-v26\values

Failed to create directory: project\android\app\build\intermediates\res\merged\debug\values :app:mergeDebugResources FAILED

纵然是瞬间 提交于 2019-12-18 12:58:12
问题 I am trying to integrate facebook login in react-native. I used this documentation React Native FDSK, I am getting this error 回答1: When you are inside your project directory try using cd android && gradlew clean && cd .. && react-native run-android 回答2: @user3499413 you are right but you forgot && between clean and cd cd android && gradlew clean && cd .. && react-native run-android 回答3: Try keeping the solution folder locally ( something like D:/MyProject ) ,Since if you keep your solution

Could not find com.android.support:appcompat-v7:25.3.1

江枫思渺然 提交于 2019-12-18 12:19:04
问题 I suddenly started getting this error when trying to build. This was all working a few weeks ago with no changes that I know of. The issue seems to be related to react-native-fbsdk , but looking through its build.gradle it does not list support.appcompat-v7.25.x . Any advice? A problem occurred configuring project ':app'. > A problem occurred configuring project ':react-native-fbsdk'. > Could not resolve all dependencies for configuration ':react-native-fbsdk:_debugCompile'. > Could not find

Does React Native compile JavaScript into Java for Android?

拈花ヽ惹草 提交于 2019-12-18 10:58:35
问题 When I develop hybrid apps with React Native. Does the JavaScript code I write transform into Java-Code or Java-Bytecode for the Dalvik/ART Runtime when I create an Android-App from my React Native code? Or are just the UI components compiled into native UI components? Or does a library like the Fetch API compile the JavaScript code into Java-Code or Java-Bytecode? 回答1: Basically, you write Javascript. The Javascript communicates with native components (Java on Android, Objective C on iOS, C#

React native: Android project not found. Maybe run react-native android first?

拜拜、爱过 提交于 2019-12-18 10:10:28
问题 I had an issue in my React-Native project which was working fine earlier but suddenly it stopped working. Whenever I used the command: react-native run-android I was getting an error : Android project not found. Maybe run react-native android first? I tried running: react-native android But it said: Unrecognized command 'android' Run react-native --help to see list of all available commands After trying: D:\ProjectRoot\ReactNativeProjects\AwesomeProject>react-native eject The error returned

How to add drawer in react native?

本小妞迷上赌 提交于 2019-12-18 09:53:11
问题 Hello I have a simple app and i want to add a drawer to him I use react-navigation 4x and use react-navigation-drawer to implement Drawer in my app I used it before sperate drawer in a single package and it's worked fine but when I use the new package I got this error Invariant Violation: Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from

Error when trying to use Button in react-native

三世轮回 提交于 2019-12-18 04:53:03
问题 When making a simple react-native program I cannot get the <Button> component to work. The error I always get after react-native run-android is java.lang.String cannot be cast to com.facebook.react.uimanager.AccessibilityDelegateUtil$AccessibilityRole When I omit the button, everything works fine, and I can click the Text just fine. code : import React, {Component} from 'react'; import {Platform, StyleSheet, Text, View, Button } from 'react-native'; type Props = {}; export default class App

React Native onPress being called automatically

久未见 提交于 2019-12-17 23:36:34
问题 I am having trouble with react-native onPress Feature. The onPress should only work when it is actually been triggered by a touch event (i suppose) , that is when i press the button on the screen. But it seems the onPress gets triggered itself when the render function is called. When i try to press manually, it doesn't work. import React, { Component } from 'react'; import { PropTypes, Text, View ,Alert } from 'react-native'; import { Button } from 'react-native-material-design'; export