Quantcast
Channel: Active questions tagged react-native+android - Stack Overflow
Viewing all 28482 articles
Browse latest View live

Choose different colors for the thumb for a React Native Switch on Android

$
0
0

I have the following component:

<Switch trackColor={{true: COLORS.accent, false: COLORS.grey}} style={styles.switch} value={this.state.notifyOnEntry} onValueChange={(value) => {this.onToggle('notifyOnEntry', value)}} />

I want to change the thumbColor and set it two different colours for when it is enabled or disabled as I did it for the trackColor. I was expecting this to be the same as for trackColor but thumbColor is a single colour and not an object.

Is it possible to change it?


Native Base Toast - TypeError: TypeError: TypeError: null is not an object (evaluating 'this.toastInstance._root.getModalState')

$
0
0

I am using react native to build a mobile app. I am facing a Nativ Base Toast issue. When I first load application and then navigate to ticket status, if I go back to a home page with an android back button, following error popup.

Below are my code and error screenshot.

NOTE - This error does not come every time.

Any help would be appreciated.

Thanks in advance

enter image description here

Home.js code (render at application load)

    import React, { Component } from 'react';    import { createDrawerNavigator , tabBarOptions, StackNavigator} from 'react-navigation';    import Header from './Header';    import Request from './Request';    import Navigation from './Navigation';    import TicketStatus from './TicketStatus/TicketStatus';    const RootStack = StackNavigator(        {            Home: {     screen: Request },            Navigation: { screen: Navigation },            TicketStatus: { screen: TicketStatus },        },        {            headerMode: 'none',            navigationOptions: {                headerVisible: false,            }        }    );    RootStack.navigationOptions = {        header: null    }    export default RootStack;

TicketStatus.js code

export default  class TicketStatus extends Component {    constructor(props){        super(props)        this.state = {            allTickets : [{ name:'Jones Residence', number: '12343534325', classs:'active'},{name:'Rex Bell Elementary', number: '12343534325', classs:'pending' },{name:'CitiBank Offic', number: '123435', classs:'expired' }]        };    }    _fetchTickets(token)    {        if(this.mounted) {            this.setState({                isloading: true                                 });        }        fetch(config.BASE_URL+'alltickets?api_token='+token,{            method: 'GET',            headers: {'Authorization': 'Bearer '+ token,            }                       })        .then((response) => response.json())        .then((res) => {            if(this.mounted) {                if(res.status == 1)                {                    this.setState({                        allTickets: res.data,                    });                                 }                else if(res.status == 0)                {                    Toast.show({                        text: res.message,                        buttonText: "Okay",                        duration: 5000,                        type: "danger"                    })                }                this.setState({                    isloading: false,                });            }        }).catch(err => {            if(this.mounted) {                Toast.show({                    text: err,                    buttonText: "Okay",                    duration: 5000,                    type: "danger"                })            }        }).done();    }    componentDidMount(){        this.mounted = true;        this._fetchTickets(config.token);       }    componentWillUnmount(){        this.mounted = false;        Toast.hide();        Toast.toastInstance = null;    }    renderTickets = () => {        return (<Content style={{height:300, backgroundColor:"#FFBC42", borderRadius:10}}><ScrollView>                {                    this.state.allTickets.map((option, i) => {                        return (<TouchableOpacity key={i} ><View><Text>{option.number} / {option.name}</Text></View></TouchableOpacity>                        )                    })                }                   </ScrollView></Content>        )    }    render() {        return (<Root><Container><Header {...this.props}/><ScrollView><Content padder><H1 style={styless.ticket_req}>Check the Status of a Ticket</H1>                                                                {this.renderTickets()}  </Content></ScrollView>                {this.state.isloading && (<Loader />                    )}</Container>    </Root>        );    }}

`componentDidMount()` function is not called after navigation

$
0
0

I am using stackNavigator for navigating between screens. I am calling two API's in componentDidMount() function in my second activity. When i load it first time, it gets loaded successfully. Then i press back button to go back to first activity. Then, if i am again going to second activity, the APIs are not called and I get render error. I am not able to find any solution for this. Any suggestions would be appreciated.

Invariant violation and other errors in React Native projects

$
0
0

I'm trying to run React Native projects in the iOS and Android simulators from VS Code. I keep getting the error message in the attached screenshot. I've tried reinstalling and updating dependancies and nothing is working. Any ideas?

Thanks!

Screenshot of error

Enable landscape mode for iPad/tablet using react-native

$
0
0

I am working on a requirement where the mobile device would support only portrait mode while the tablet/iPad supports both portrait and landscape mode, I am not sure how to achieve the requirement using react-native

How to wrap offline notifcation though appcontainer that contains SwitchNavigator?

$
0
0

I have try to apply several script on my react native project to perform offline notification but I'm unable to make it work as my device shows;

  1. Offline render not appear when I turn off wifi toggle but console.log and setState already pass though.
  2. Error out of nowhere about "Cannot find variable json"
  3. Totally problem in react-navigation 3,4

index.js

import React from 'react';import { AppRegistry } from 'react-native';import App from './App';import { name as appName } from './app.json';import * as ApiFunction from './src/services/ApiFunction';import { YellowBox } from 'react-native';YellowBox.ignoreWarnings(['Require cycle:']);console.disableYellowBox = true;import { Root } from 'native-base';const RootApp = () => (<Root><App /></Root>);export {    ApiFunction};export default RootApp;AppRegistry.registerComponent(appName, () => RootApp);

App.js

import 'react-native-gesture-handler';import { createSwitchNavigator, createAppContainer } from 'react-navigation';import { createStackNavigator } from 'react-navigation-stack';import InitSplash from './src/screens/init/InitSplash';import InitAuthentication from './src/screens/init/InitAuthentication';import InitRegisterAcc from './src/screens/init/InitRegisterAcc';import InitChangePassword from './src/screens/init/InitChangePassword';import AlreadyLogin from './src/screens/handler/AlreadyLogin';import MainTabs from './src/components/AppTabs';import QuickAction1 from './src/screens/quick/QuickAction1';import QuickAction2 from './src/screens/quick/QuickAction2';const AuthStack = createStackNavigator(  {    InitAuthentication: { screen: InitAuthentication },    InitRegisterAcc: { screen: InitRegisterAcc, },    InitChangePassword: { screen: InitChangePassword, },  },  {    initialRouteName: 'InitAuthentication',  });const DashboardStack = createStackNavigator(  {    MainTabs: { screen: MainTabs, navigationOptions: { headerShown: false } },    QuickAction1: { screen: QuickAction1, navigationOptions: { headerShown: false } },    QuickAction2: { screen: QuickAction2, navigationOptions: { headerShown: false } },  },  {    initialRouteName: 'MainTabs',  });const AppSwitchNavigator = createSwitchNavigator(  {    MainSplash: { screen: InitSplash, },    AlreadyLogin: { screen: AlreadyLogin },    MainAuth: { screen: AuthStack, },    MainDashboard: { screen: DashboardStack },  });export default createAppContainer(AppSwitchNavigator);

I have try to create another file that contained DashboardStack screen and call it from App.js but error about react-navigation appear. They way it shows on tutorial, forum looks very simple and hassle free to apply in project. But I cannot make it works.

I'm intend to create offline rendering which will appear on any screen on DashboardStack like banner like

  function renderOfflineBanner() {    return (<View style={{        backgroundColor: '#b52424',        height: 50,        justifyContent: 'center',        alignItems: 'center',        flexDirection: 'row',        width,        position: 'absolute',        top: 0      }}><Text style={{ color: '#fff'}}>No Internet Connection</Text></View>    )  }

Since react-native-netinfo has been move separately to another repo, I try to use:

// Subscribeconst unsubscribe = NetInfo.addEventListener(state => {  console.log("Connection type", state.type);  console.log("Is connected?", state.isConnected);});// Unsubscribeunsubscribe();

But I'm stuck on how to apply it globally like; wrap the listener to App.js and render it from it too when network state isConnected is false. I'm very confuse about the navigation part.

On App.js file, do I need to create App component class and call AppSwitchNavigator inside the render so I can create renderOfflineBanner() to each createStackNavigator?

How to pass custom headers in resources requests in react-native-webview?

$
0
0

I am using react-native-webview for loading an .aspx page url in WebView. I have followed this https://github.com/react-native-community/react-native-webview/blob/master/docs/Guide.md#working-with-custom-headers-sessions-and-cookies from the official doc. The cookie is being sent, but it is sent only for the initial request and the further navigation state change urls. But it is not sent in any of the resources requests.
Is there any way to send the custom header with all the requests, rather than just the urls which are called on navigation state change.

Thanks

Appcenter Codepush integration. Cannot add task 'bundleDebugJsAndAssets' as a task with that name already exists

$
0
0

Steps to Reproduce

  1. yarn add react-native-codepush
  2. Add following to android/app/build.gradle
apply from: "../../node_modules/react-native/react.gradle"apply from: "../../node_modules/react-native-code-push/android/codepush.gradle"
  1. Add following to MainApplication.java
...import com.microsoft.codepush.react.CodePush;...        @Override        protected String getJSBundleFile() {            return CodePush.getJSBundleFile();        }
  1. Add the following to strings.xml
<string name="CodePushDeploymentKey" moduleConfig="true">MYKEY</string>

Expected Behavior

Build should be successful

Actual Behavior

What actually happens?

 $ react-native run-androidinfo Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.Jetifier found 998 file(s) to forward-jetify. Using 4 workers...info JS server already running.info Installing the app...> Configure project :appWARNING: BuildType(debug): resValue 'react_native_dev_server_port' value is being replaced: 8081 -> 8081WARNING: BuildType(debug): resValue 'react_native_inspector_proxy_port' value is being replaced: 8081 -> 8081WARNING: BuildType(release): resValue 'react_native_dev_server_port' value is being replaced: 8081 -> 8081WARNING: BuildType(release): resValue 'react_native_inspector_proxy_port' value is being replaced: 8081 -> 8081Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.Use '--warning-mode all' to show the individual deprecation warnings.See https://docs.gradle.org/6.0.1/userguide/command_line_interface.html#sec:command_line_warningsFAILURE: Build failed with an exception.* Where:Script '/Users/user/Desktop/project/app/native/node_modules/react-native/react.gradle' line: 118* What went wrong:A problem occurred configuring project ':app'.> Cannot add task 'bundleDebugJsAndAssets' as a task with that name already exists.* 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.orgBUILD FAILED in 4serror Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Run CLI with --verbose flag for more details.Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081FAILURE: Build failed with an exception.* Where:Script '/Users/user/Desktop/project/app/native/node_modules/react-native/react.gradle' line: 118* What went wrong:A problem occurred configuring project ':app'.> Cannot add task 'bundleDebugJsAndAssets' as a task with that name already exists.* 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.orgBUILD FAILED in 4s    at makeError (/Users/user/Desktop/project/app/native/node_modules/execa/index.js:174:9)    at /Users/user/Desktop/project/app/native/node_modules/execa/index.js:278:16    at processTicksAndRejections (internal/process/task_queues.js:97:5)    at async runOnAllDevices (/Users/user/Desktop/project/app/native/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:94:5)    at async Command.handleAction (/Users/user/Desktop/project/app/native/node_modules/@react-native-community/cli/build/index.js:186:9)error Command failed with exit code 1.info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Environment

  • react-native-code-push version: ^6.2.1
  • react-native version: 0.62.2
  • iOS/Android/Windows version: unknown
  • Does this reproduce on a debug build or release build? only checked on debug
  • Does this reproduce on a simulator, or only on a physical device? build error

External SDKs

I do have an external SDK in build.gradle. I don't know if that is the reason for this error.

buildscript {    repositories {        maven { url 'https://plugins.gradle.org/m2/' } // Gradle Plugin Portal    }    dependencies {        classpath 'gradle.plugin.com.onesignal:onesignal-gradle-plugin:[0.12.6, 0.99.99]'    }}apply plugin: 'com.onesignal.androidsdk.onesignal-gradle-plugin'apply plugin: "com.android.application"apply from: "../../node_modules/react-native/react.gradle"apply from: "../../node_modules/react-native-code-push/android/codepush.gradle"....apply plugin: 'com.google.gms.google-services'

What I tried.

I moved two declarations to the bottom of app/build.gradle. but the error remains same

// puts all compile dependencies into folder libs for BUCK to usetask copyDownloadableDepsToLibs(type: Copy) {    from configurations.compile    into 'libs'}apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)apply from: "../../node_modules/react-native/react.gradle"apply from: "../../node_modules/react-native-code-push/android/codepush.gradle"

Some article state to remove the line apply from: "../../node_modules/react-native/react.gradle". But New error is

yarn run v1.22.4$ react-native run-androidinfo Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.Jetifier found 998 file(s) to forward-jetify. Using 4 workers...info JS server already running.info Installing the app...Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.Use '--warning-mode all' to show the individual deprecation warnings.See https://docs.gradle.org/6.0.1/userguide/command_line_interface.html#sec:command_line_warningsFAILURE: Build failed with an exception.* What went wrong:Could not determine the dependencies of task ':app:mergeDebugAssets'.> Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.> Could not resolve project :react-native-code-push.     Required by:         project :app> Unable to find a matching configuration of project :react-native-code-push:          - None of the consumable configurations have attributes.* 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.orgBUILD FAILED in 3serror Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Run CLI with --verbose flag for more details.Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081FAILURE: Build failed with an exception.* What went wrong:Could not determine the dependencies of task ':app:mergeDebugAssets'.> Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.> Could not resolve project :react-native-code-push.     Required by:         project :app> Unable to find a matching configuration of project :react-native-code-push:          - None of the consumable configurations have attributes.* 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.orgBUILD FAILED in 3s    at makeError (/Users/user/Desktop/project/app/native/node_modules/execa/index.js:174:9)    at /Users/user/Desktop/project/app/native/node_modules/execa/index.js:278:16    at processTicksAndRejections (internal/process/task_queues.js:97:5)    at async runOnAllDevices (/Users/user/Desktop/project/app/native/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:94:5)    at async Command.handleAction (/Users/user/Desktop/project/app/native/node_modules/@react-native-community/cli/build/index.js:186:9)error Command failed with exit code 1.info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

I removed both line (which actually don't make any sense) the error is

yarn run v1.22.4$ react-native run-androidinfo Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.Jetifier found 998 file(s) to forward-jetify. Using 4 workers...info JS server already running.info Installing the app...Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.Use '--warning-mode all' to show the individual deprecation warnings.See https://docs.gradle.org/6.0.1/userguide/command_line_interface.html#sec:command_line_warningsFAILURE: Build failed with an exception.* What went wrong:Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.> Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'.> Could not resolve project :react-native-code-push.     Required by:         project :app> Unable to find a matching configuration of project :react-native-code-push:          - None of the consumable configurations have attributes.* 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.orgBUILD FAILED in 4serror Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Run CLI with --verbose flag for more details.Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081FAILURE: Build failed with an exception.* What went wrong:Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.> Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'.> Could not resolve project :react-native-code-push.     Required by:         project :app> Unable to find a matching configuration of project :react-native-code-push:          - None of the consumable configurations have attributes.* 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.orgBUILD FAILED in 4s    at makeError (/Users/user/Desktop/project/app/native/node_modules/execa/index.js:174:9)    at /Users/user/Desktop/project/app/native/node_modules/execa/index.js:278:16    at processTicksAndRejections (internal/process/task_queues.js:97:5)    at async runOnAllDevices (/Users/user/Desktop/project/app/native/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:94:5)    at async Command.handleAction (/Users/user/Desktop/project/app/native/node_modules/@react-native-community/cli/build/index.js:186:9)error Command failed with exit code 1.info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

How to pass custom headers in all requests in react-native-webview?

$
0
0

I am using react-native-webview for loading an .aspx page URL in WebView. I have followed this https://github.com/react-native-community/react-native-webview/blob/master/docs/Guide.md#working-with-custom-headers-sessions-and-cookies from the official doc. The cookie is being sent, but it is sent only for the initial request and the further navigation state change URLs. But it is not sent in any of the resources requests.
Is there any way to send the custom header with all the requests, rather than just the URLs which are called on navigation state change.

Thanks

How to hide the header from Tab navigation (bottom-tabs) in react navigation 5.x?

$
0
0

i am trying to use createBottomTabNavigator function for create bottom navigation tab, i want to hide the header, bellow the screenshot:

I have a BottomTabNavigator inside a stackNavigator bellow the code:
This is the rooter configuration file rooter.js

import React, { Component } from 'react';import WelcomeScreen from '../component/WelcomeScreen';import Login from '../component/login/Login';import Register from '../component/register/Register';import RegisterTwo from '../component/register/RegisterTwo';import TabsBottom from '../component/tabs/TabsNavigation'import { NavigationContainer } from '@react-navigation/native';import { createStackNavigator } from '@react-navigation/stack';  const Stack = createStackNavigator();  const AppSwitchNavigator = () => {    return (<NavigationContainer><Stack.Navigator  initialRouteName="WelcomeScreen"><Stack.Screen name="TabsBottom" component={TabsBottom} /><Stack.Screen name="WelcomeScreen" component={WelcomeScreen} /><Stack.Screen name="Register" component={Register} /><Stack.Screen name="RegisterTwo" component={RegisterTwo} /><Stack.Screen name="Login" component={Login} /></Stack.Navigator></NavigationContainer>    );  }  export const AppContainer = AppSwitchNavigator;

This is my nested navigator TabsNavigation.js

import React, { Component } from 'react';import Explore from '../Explore';import Settings from '../Settings';import Profile from '../Profile';import Search from '../Search';import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';import Icon from 'react-native-vector-icons/FontAwesome5';import colors from '../../../styles/colors/index';const Tab = createBottomTabNavigator();function MyTabs() {  return (<Tab.Navigator    screenOptions={({ route }) => ({      tabBarIcon: ({ focused, color, size }) => {        let iconName;        if (route.name === 'Explore') {          iconName = focused ? 'home': 'home';          color = focused ? colors.mainColor : colors.gray03;        } else if (route.name === 'Settings') {          iconName = focused ? 'cog' : 'cog';          color = focused ? colors.mainColor : colors.gray03;        }        else if (route.name === 'Search') {          iconName = focused ? 'search' : 'search';          color = focused ? colors.mainColor : colors.gray03;        }        else if (route.name === 'Profile') {          iconName = focused ? 'user-alt' : 'user-alt';          color = focused ? colors.mainColor : colors.gray03;        }        return <Icon name={iconName} size={30} color={color} />;      }        })}    tabBarOptions={{      activeTintColor: colors.mainColor,      inactiveTintColor: colors.gray03    }}><Tab.Screen name="Explore" component={Explore} /><Tab.Screen name="Search" component={Search} /><Tab.Screen name="Profile" component={Profile} /><Tab.Screen name="Settings" component={Settings} /></Tab.Navigator>  );}export default function TabsBottom() {  return (<MyTabs />    );}

I want delete the screen's headres
Thanks for your help

Keyboard changes all components placement in react native

$
0
0

I created an AuthForm component that I use for a sign up and sign in screen after styling the screen I noticed every time I click on the keyboard to type some input everything changes its original placement and some components overlay others and it turns into a mess, how can I fix this?

Here is the code i used

import React, { useState } from "react";import {  StyleSheet,  ImageBackground,  View,  TouchableOpacity,} from "react-native";import { Text, Button, Input } from "react-native-elements";import Icon from "react-native-vector-icons/MaterialIcons";import Spacer from "./Spacer";const AuthForm = ({  headerText,  errorMessage,  onSubmit,  submitButtonText,  subText,}) => {  const [email, setEmail] = useState("");  const [password, setPassword] = useState("");  return (<View style={styles.container}><Spacer><Text style={styles.Text1}>{headerText}</Text><Text style={styles.Text2}>{subText}</Text></Spacer><View style={styles.Input}><Input          style={styles.Input}          placeholder="Your email"          value={email}          onChangeText={setEmail}          autoCapitalize="none"          autoCorrect={false}          leftIcon={<Icon name="email" size={20} color="#B3C1B3" />}        /><Input          secureTextEntry          placeholder="Your password"          value={password}          onChangeText={setPassword}          autoCapitalize="none"          autoCorrect={false}          leftIcon={<Icon name="lock" size={20} color="#B3C1B3" />}        /></View>      {errorMessage ? (<Text style={styles.errorMessage}>{errorMessage}</Text>      ) : null}<Spacer><TouchableOpacity          style={styles.buttonStyle}          onPress={() => onSubmit({ email, password })}><Text style={styles.ButtonText}>{submitButtonText}</Text></TouchableOpacity></Spacer></View>  );};const styles = StyleSheet.create({  container: {    flex: 1,    //justifyContent: "center",  },  errorMessage: {    fontSize: 16,    color: "red",    marginLeft: 15,    marginTop: 15,    top: "35%",  },  buttonStyle: {    color: "#e8c0c8",    width: "45%",    height: "25%",    backgroundColor: "#fdc2e6",    justifyContent: "center",    alignItems: "center",    borderRadius: 15,    top: "150%",    left: "30%",  },  ButtonText: {    color: "#FFFF",  },  Text1: {    top: "420%",    left: "15%",    fontSize: 24,    color: "#ffffff",  },  Text2: {    top: "420%",    left: "15%",    fontSize: 14,    color: "#d9d9d9",  },  Input: {    top: "40%",    width: "70%",    left: "15%",  },});export default AuthForm;

Finding the cause of React Native Android App Crash

$
0
0

After spending many hours of tracing, I am unable to find the issue for the crash of React Native Android App. A white screen appears after react-native run-android and then suddenly the message displays MyApp has stopped! The App was previously working fine! Maybe the Android Studio updates have caused the issue! After doing adb logcat, here is the output! (Sorry for the detailed output).

12-10 09:10:00.586  1413  1413 I boot-pipe: done populating /dev/random12-10 09:10:04.801  2603  2603 I MicroDetectionWorker: #updateMicroDetector [detectionMode: [mDetectionMode: [1]]]12-10 09:10:04.801  2603  2603 I MicroDetectionWorker: #startMicroDetector [speakerMode: 0]12-10 09:10:04.802  2603  2603 I AudioController: Using mInputStreamFactoryBuilder12-10 09:10:04.803  2603  2603 I MicroDetectionWorker: onReady12-10 09:10:04.806  2603  2716 I MicroRecognitionRunner: Starting detection.12-10 09:10:04.806  2603  2680 I MicrophoneInputStream: mic_starting com.google.android.apps.gsa.staticplugins.aa.c@427c2af12-10 09:10:04.806  1499  1594 W ServiceManager: Permission failure: android.permission.RECORD_AUDIO from uid=10032 pid=260312-10 09:10:04.806  1499  1594 E         : Request requires android.permission.RECORD_AUDIO12-10 09:10:04.806  1499  1594 E         : android.permission.CAPTURE_AUDIO_HOTWORD12-10 09:10:04.806  2603  2680 E AudioRecord: Could not get audio input for session 281, record source 1999, sample rate 16000, format 0x1, channel mask 0x10, flags 012-10 09:10:04.807  2603  2680 E AudioRecord-JNI: Error creating AudioRecord instance: initialization check failed with status -22.12-10 09:10:04.807  2603  2680 E android.media.AudioRecord: Error code -20 when initializing native AudioRecord object.12-10 09:10:04.807  2603  2680 I MicrophoneInputStream: mic_started com.google.android.apps.gsa.staticplugins.aa.c@427c2af12-10 09:10:04.812  2603  2680 I MicrophoneInputStream: mic_close com.google.android.apps.gsa.staticplugins.aa.c@427c2af12-10 09:10:04.813  2603  2716 I MicroRecognitionRunner: Detection finished12-10 09:10:04.813  2603  2716 W ErrorReporter: reportError [type: 211, code: 524300]: Error reading from input stream12-10 09:10:04.813  2603  2908 I MicroRecognitionRunner: Stopping hotword detection.12-10 09:10:04.813  2603  2716 W ErrorProcessor: onFatalError, processing error from engine(4)12-10 09:10:04.813  2603  2716 W ErrorProcessor: com.google.android.apps.gsa.shared.speech.b.g: Error reading from input stream12-10 09:10:04.813  2603  2716 W ErrorProcessor:    at com.google.android.apps.gsa.staticplugins.recognizer.j.a.a(SourceFile:28)12-10 09:10:04.813  2603  2716 W ErrorProcessor:    at com.google.android.apps.gsa.staticplugins.recognizer.j.b.run(SourceFile:15)12-10 09:10:04.813  2603  2716 W ErrorProcessor:    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:457)12-10 09:10:04.813  2603  2716 W ErrorProcessor:    at java.util.concurrent.FutureTask.run(FutureTask.java:266)12-10 09:10:04.813  2603  2716 W ErrorProcessor:    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:457)12-10 09:10:04.813  2603  2716 W ErrorProcessor:    at java.util.concurrent.FutureTask.run(FutureTask.java:266)12-10 09:10:04.813  2603  2716 W ErrorProcessor:    at com.google.android.apps.gsa.shared.util.concurrent.a.ag.run(Unknown Source:4)12-10 09:10:04.813  2603  2716 W ErrorProcessor:    at com.google.android.apps.gsa.shared.util.concurrent.a.bo.run(SourceFile:4)12-10 09:10:04.813  2603  2716 W ErrorProcessor:    at com.google.android.apps.gsa.shared.util.concurrent.a.bo.run(SourceFile:4)12-10 09:10:04.813  2603  2716 W ErrorProcessor:    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)12-10 09:10:04.813  2603  2716 W ErrorProcessor:    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)12-10 09:10:04.813  2603  2716 W ErrorProcessor:    at java.lang.Thread.run(Thread.java:764)12-10 09:10:04.813  2603  2716 W ErrorProcessor:    at com.google.android.apps.gsa.shared.util.concurrent.a.ak.run(SourceFile:6)12-10 09:10:04.813  2603  2716 W ErrorProcessor: Caused by: com.google.android.apps.gsa.shared.exception.GsaIOException: Error code: 393238 | Buffer overflow, no available space.12-10 09:10:04.813  2603  2716 W ErrorProcessor:    at com.google.android.apps.gsa.speech.audio.Tee.f(SourceFile:103)12-10 09:10:04.813  2603  2716 W ErrorProcessor:    at com.google.android.apps.gsa.speech.audio.au.read(SourceFile:2)12-10 09:10:04.813  2603  2716 W ErrorProcessor:    at java.io.InputStream.read(InputStream.java:101)12-10 09:10:04.813  2603  2716 W ErrorProcessor:    at com.google.android.apps.gsa.speech.audio.ao.run(SourceFile:18)12-10 09:10:04.813  2603  2716 W ErrorProcessor:    at com.google.android.apps.gsa.speech.audio.an.run(SourceFile:2)12-10 09:10:04.813  2603  2716 W ErrorProcessor:    ... 11 more12-10 09:10:04.813  2603  2716 I AudioController: internalShutdown12-10 09:10:04.814  2603  2603 I MicroDetectionWorker: onReady12-10 09:10:04.838  2603  2603 I MicroDetector: Keeping mic open: false12-10 09:10:04.838  2603  2603 I MicroDetectionWorker: #onError(false)12-10 09:10:04.839  2603  2721 I DeviceStateChecker: DeviceStateChecker cancelled12-10 09:10:04.807  2603  2680 E ActivityThread: Failed to find provider info for com.google.android.apps.gsa.testing.ui.audio.recorded12-10 09:10:08.228  1626  1643 E BatteryExternalStatsWorker: modem info is invalid: ModemActivityInfo{ mTimestamp=0 mSleepTimeMs=0 mIdleTimeMs=0 mTxTimeMs[]=[0, 0, 0, 0, 0] mRxTimeMs=0 mEnergyUsed=0}12-10 09:10:29.990  2603  2716 I AudioController: internalShutdown12-10 09:10:30.005  2603  2603 I MicroDetectionWorker: onReady12-10 09:10:30.005  2603  2603 I MicroDetector: Keeping mic open: false12-10 09:10:30.005  2603  2603 I MicroDetectionWorker: #onError(false)12-10 09:10:30.005  2603  2721 I DeviceStateChecker: DeviceStateChecker cancelled12-10 09:10:30.581  4961  4961 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 2000 <<<<<<12-10 09:10:30.588  4961  4961 W app_process: Could not reserve sentinel fault page12-10 09:10:30.767  4961  4961 W app_process: Unexpected CPU variant for X86 using defaults: x8612-10 09:10:30.769  4961  4961 I app_process: The ClassLoaderContext is a special shared library.12-10 09:10:30.806  4961  4961 D AndroidRuntime: Calling main entry com.android.commands.pm.Pm12-10 09:10:30.812  4973  4973 E asset   : setgid: Operation not permitted12-10 09:10:31.343  1626  1652 W PackageParser: Unknown element under <manifest>: meta-data at /data/app/vmdl1727045792.tmp/base.apk Binary XML file line #1812-10 09:10:31.357  1626  1652 I PackageManager.DexOptimizer: Running dexopt (dexoptNeeded=1) on: /data/app/com.myapp-uNSnIgB5mPdTGWEHkrTdCQ==/base.apk pkg=com.myapp isa=x86 dexoptFlags=boot_complete,debuggable,public target-filter=quicken oatDir=/data/app/com.myapp-uNSnIgB5mPdTGWEHkrTdCQ==/oat sharedLibraries=PCL[]12-10 09:10:31.369  4976  4976 W dex2oat : Unexpected CPU variant for X86 using defaults: x8612-10 09:10:31.369  4976  4976 W dex2oat : Mismatch between dex2oat instruction set features (ISA: X86 Feature string: -ssse3,-sse4.1,-sse4.2,-avx,-avx2,-popcnt) and those of dex2oat executable (ISA: X86 Feature string: ssse3,-sse4.1,-sse4.2,-avx,-avx2,-popcnt) for the command line:12-10 09:10:31.369  4976  4976 W dex2oat : /system/bin/dex2oat --zip-fd=8 --zip-location=base.apk --input-vdex-fd=-1 --output-vdex-fd=10 --oat-fd=9 --oat-location=/data/app/com.myapp-uNSnIgB5mPdTGWEHkrTdCQ==/oat/x86/base.odex --instruction-set=x86 --instruction-set-variant=x86 --instruction-set-features=default --runtime-arg -Xms64m --runtime-arg -Xmx512m --compiler-filter=quicken --swap-fd=11 --debuggable --classpath-dir=/data/app/com.myapp-uNSnIgB5mPdTGWEHkrTdCQ== --class-loader-context=PCL[]12-10 09:10:31.369  4976  4976 I dex2oat : /system/bin/dex2oat --input-vdex-fd=-1 --output-vdex-fd=10 --compiler-filter=quicken --debuggable --classpath-dir=/data/app/com.myapp-uNSnIgB5mPdTGWEHkrTdCQ== --class-loader-context=PCL[]12-10 09:10:31.371  4976  4976 W dex2oat : Could not reserve sentinel fault page12-10 09:10:32.007  4976  4976 I dex2oat : dex2oat took 638.634ms (964.409ms cpu) (threads: 2) arena alloc=62KB (63776B) java alloc=4MB (5018336B) native alloc=5MB (5892024B) free=2MB (3020872B)12-10 09:10:32.011  1626  1640 I ActivityManager: Force stopping com.myapp appid=10080 user=-1: installPackageLI12-10 09:10:32.162  1502  2099 E         : Couldn't opendir /data/app/vmdl1727045792.tmp: No such file or directory12-10 09:10:32.162  1502  2099 E installd: Failed to delete /data/app/vmdl1727045792.tmp: No such file or directory12-10 09:10:32.163  1626  1652 I ActivityManager: Force stopping com.myapp appid=10080 user=0: pkg removed12-10 09:10:32.163  4961  4961 I Pm      : Package com.myapp installed in 1355 ms12-10 09:10:32.179  4961  4961 I app_process: System.exit called, status: 012-10 09:10:32.179  4961  4961 I AndroidRuntime: VM exiting with result code 0.12-10 09:10:32.184  1626  1683 I InputReader: Reconfiguring input devices.  changes=0x0000001012-10 09:10:32.188  1626  1683 I chatty  : uid=1000(system) InputReader identical 1 line12-10 09:10:32.192  1626  1683 I InputReader: Reconfiguring input devices.  changes=0x0000001012-10 09:10:32.206  2691  2691 W Finsky  : [2] com.google.android.finsky.application.FinskyAppImpl.bx(1166): No account configured on this device.12-10 09:10:32.214  2691  2691 I chatty  : uid=10024(com.android.vending) identical 3 lines12-10 09:10:32.215  2691  2691 W Finsky  : [2] com.google.android.finsky.application.FinskyAppImpl.bx(1166): No account configured on this device.12-10 09:10:32.221  2117  4693 E NetworkScheduler.SR: Unrecognised action provided: android.intent.action.PACKAGE_REMOVED12-10 09:10:32.235  1626  2293 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_REMOVED dat=package:com.myapp flg=0x4000010 (has extras) } to com.google.android.googlequicksearchbox/com.google.android.apps.gsa.googlequicksearchbox.GelStubAppWatcher12-10 09:10:32.244  1827  1827 D CarrierSvcBindHelper: No carrier app for: 012-10 09:10:32.247  1626  1626 I Telecom : DefaultDialerCache: Refreshing default dialer for user 0: now com.google.android.dialer: DDC.oR@AKc12-10 09:10:32.256  2691  2691 W Finsky  : [2] com.google.android.finsky.application.FinskyAppImpl.bx(1166): No account configured on this device.12-10 09:10:32.256  2691  2691 W Finsky  : [2] com.google.android.finsky.application.FinskyAppImpl.bx(1166): No account configured on this device.12-10 09:10:32.260  2691  3046 W WearSignatureVerifier: No package com.google.android.wearable.app.cn12-10 09:10:32.261  2691  3046 I chatty  : uid=10024(com.android.vending) GAC_Executor[1] identical 2 lines12-10 09:10:32.261  2691  3046 W WearSignatureVerifier: No package com.google.android.wearable.app.cn12-10 09:10:32.267  2691  2691 I Finsky  : [2] com.google.android.finsky.utils.PermissionPolicies$PermissionPolicyService.onStartCommand(18): post-install permissions check for com.myapp12-10 09:10:32.267  2691  2691 W Finsky  : [2] com.google.android.finsky.application.FinskyAppImpl.bx(1166): No account configured on this device.12-10 09:10:32.267  2691  2691 W Finsky  : [2] com.google.android.finsky.application.FinskyAppImpl.bx(1166): No account configured on this device.12-10 09:10:32.270  1827  1827 D CarrierSvcBindHelper: No carrier app for: 012-10 09:10:32.273  2691  2691 I Finsky  : [2] com.google.android.finsky.externalreferrer.d.run(9): Package state data is missing for com.myapp12-10 09:10:32.274  2117  2117 I WearableService: Wearable Services not starting - Wear is not available on this device.12-10 09:10:32.281  2691  2691 W Finsky  : [2] com.google.android.finsky.application.FinskyAppImpl.bx(1166): No account configured on this device.12-10 09:10:32.294  1827  1827 D ImsResolver: maybeAddedImsService, packageName: com.myapp12-10 09:10:32.294  1827  1827 D CarrierConfigLoader: mHandler: 9 phoneId: 012-10 09:10:32.298  2205  2215 I zygote  : Background concurrent copying GC freed 6722(457KB) AllocSpace objects, 7(520KB) LOS objects, 49% free, 3MB/6MB, paused 68us total 112.528ms12-10 09:10:32.301  2117  2380 D WearableService: onGetService - Wear is not available on this device.12-10 09:10:32.302  2691  2691 W WearSignatureVerifier: No package com.google.android.wearable.app.cn12-10 09:10:32.302  2691  2691 E Finsky  : [2] com.google.android.finsky.wear.bl.a(3): onConnectionFailed: ConnectionResult{statusCode=API_UNAVAILABLE, resolution=null, message=null}12-10 09:10:32.302  2691  2691 W Finsky  : [2] com.google.android.finsky.wear.aj.run(9): Dropping command=auto_install due to Gms not connected12-10 09:10:32.311  1626  1636 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_ADDED dat=package:com.myapp flg=0x4000010 (has extras) } to com.google.android.googlequicksearchbox/com.google.android.apps.gsa.googlequicksearchbox.GelStubAppWatcher12-10 09:10:32.312  1626  1640 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_REPLACED dat=package:com.myapp flg=0x4000010 (has extras) } to com.google.android.apps.photos/.account.full.FetchAccountPropertiesAppUpgradeBroadcastReceiver12-10 09:10:32.312  1626  1640 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_REPLACED dat=package:com.myapp flg=0x4000010 (has extras) } to com.google.android.apps.photos/.backgroundsignin.BackgroundSignInBroadcastReceiver12-10 09:10:32.312  1626  1640 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_REPLACED dat=package:com.myapp flg=0x4000010 (has extras) } to com.google.android.apps.photos/.experiments.phenotype.full.PhenotypeAppUpgradeBroadcastReceiver12-10 09:10:32.312  1626  1640 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_REPLACED dat=package:com.myapp flg=0x4000010 (has extras) } to com.google.android.apps.photos/.notificationchannels.AppUpdateBroadcastReceiver12-10 09:10:32.324  2368  4992 D Wear_Controller: Received broadcast action=android.intent.action.PACKAGE_REMOVED and uri=com.myapp12-10 09:10:32.350  1626  1636 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_REPLACED dat=package:com.myapp flg=0x4000010 (has extras) } to com.google.android.googlequicksearchbox/com.google.android.apps.gsa.googlequicksearchbox.GelStubAppWatcher12-10 09:10:32.396  1743  1762 I zygote  : Background concurrent copying GC freed 13156(654KB) AllocSpace objects, 0(0B) LOS objects, 49% free, 4MB/9MB, paused 64us total 201.135ms12-10 09:10:32.419  2368  4999 D Wear_Controller: Received broadcast action=android.intent.action.PACKAGE_ADDED and uri=com.myapp12-10 09:10:32.715  1626  2163 I ActivityManager: Start proc 5010:com.myapp/u0a80 for activity com.myapp/.MainActivity12-10 09:10:32.732  5010  5010 W zygote  : Unexpected CPU variant for X86 using defaults: x8612-10 09:10:32.735  1405  1444 D gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 829849612-10 09:10:32.758  5010  5017 E zygote  : Failed sending reply to debugger: Broken pipe12-10 09:10:32.758  5010  5017 I zygote  : Debugger is no longer active12-10 09:10:32.848  5010  5010 D FirebaseApp: com.google.firebase.auth.FirebaseAuth is not linked. Skipping initialization.12-10 09:10:32.849  5010  5010 D FirebaseApp: com.google.firebase.crash.FirebaseCrash is not linked. Skipping initialization.12-10 09:10:32.849  5010  5010 I FirebaseInitProvider: FirebaseApp initialization successful12-10 09:10:33.071  5010  5010 V fb-UnpackingSoSource: regenerating DSO store com.facebook.soloader.ApkSoSource12-10 09:10:33.072  5010  5010 V fb-UnpackingSoSource: starting syncer worker12-10 09:10:33.081  5010  5028 I FA      : App measurement is starting up, version: 1278012-10 09:10:33.081  5010  5028 I FA      : To enable debug logging run: adb shell setprop log.tag.FA VERBOSE12-10 09:10:33.081  5010  5028 I FA      : To enable faster debug mode event logging run:12-10 09:10:33.081  5010  5028 I FA      :   adb shell setprop debug.firebase.analytics.app com.myapp12-10 09:10:33.195  5010  5028 W GooglePlayServicesUtil: Google Play services out of date.  Requires 12451000 but found 1158047012-10 09:10:33.224  5010  5010 D ReactNative: ReactInstanceManager.createReactContextInBackground()12-10 09:10:33.224  5010  5010 D ReactNative: ReactInstanceManager.recreateReactContextInBackgroundInner()12-10 09:10:33.241  1418  1431 E SurfaceFlinger: ro.sf.lcd_density must be defined as a build property12-10 09:10:33.496  5010  5010 E unknown:ReactNative: Unable to display loading message because react activity isn't available12-10 09:10:33.513  1626  1647 I ActivityManager: Displayed com.myapp/.MainActivity: +807ms12-10 09:10:33.537  5010  5028 I FA      : This instance being marked as an uploader12-10 09:10:33.581  2368  2860 I Icing   : Indexing 0FC5A07B286EB89ECAB4195EE20B9EE1AB615B80 from com.google.android.gms12-10 09:10:33.608  1418  1418 W SurfaceFlinger: couldn't log to binary event log: overflow.12-10 09:10:33.651  2368  2860 I Icing   : Indexing done 0FC5A07B286EB89ECAB4195EE20B9EE1AB615B8012-10 09:10:33.686  5010  5028 W GooglePlayServicesUtil: Google Play services out of date.  Requires 12451000 but found 1158047012-10 09:10:33.713  2603  2603 W SearchService: Abort, client detached.12-10 09:10:33.839  2117  2117 I GeofencerStateMachine: removeGeofences: removeRequest=RemoveGeofencingRequest[REMOVE_BY_PENDING_INTENT pendingIntent=PendingIntent[creatorPackage=com.google.android.gms], packageName=null]12-10 09:10:33.843  2117  5046 I Places  : ?: Couldn't find platform key file.12-10 09:10:33.866  2117  2117 I GeofencerStateMachine: removeGeofences: removeRequest=RemoveGeofencingRequest[REMOVE_BY_PENDING_INTENT pendingIntent=PendingIntent[creatorPackage=com.google.android.gms], packageName=null]12-10 09:10:33.868  2117  2117 I chatty  : uid=10014 com.google.android.gms.persistent identical 1 line12-10 09:10:33.870  2117  2117 I GeofencerStateMachine: removeGeofences: removeRequest=RemoveGeofencingRequest[REMOVE_BY_PENDING_INTENT pendingIntent=PendingIntent[creatorPackage=com.google.android.gms], packageName=null]12-10 09:10:34.484  5010  5015 I zygote  : Do partial code cache collection, code=60KB, data=37KB12-10 09:10:34.484  5010  5015 I zygote  : After code cache collection, code=59KB, data=36KB12-10 09:10:34.484  5010  5015 I zygote  : Increasing code cache capacity to 256KB12-10 09:10:34.585  5010  5010 D ReactNative: ReactInstanceManager.onJSBundleLoadedFromServer()12-10 09:10:34.585  5010  5010 D ReactNative: ReactInstanceManager.recreateReactContextInBackground()12-10 09:10:34.585  5010  5010 D ReactNative: ReactInstanceManager.runCreateReactContextOnNewThread()12-10 09:10:34.592  5010  5048 I zygote  : Thread[24,tid=5048,Native,Thread*=0x91290c00,peer=0x12d81bd8,"Thread-3"] recursive attempt to load library "/data/app/com.myapp-uNSnIgB5mPdTGWEHkrTdCQ==/lib/x86/libfb.so"12-10 09:10:34.592  5010  5048 D ReactNative: ReactInstanceManager.createReactContext()12-10 09:10:34.596  5010  5048 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTGroupViewManager12-10 09:10:34.597  5010  5048 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTGroupShadowNode12-10 09:10:34.598  5010  5048 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTShapeViewManager12-10 09:10:34.598  5010  5048 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTShapeShadowNode12-10 09:10:34.599  5010  5048 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTTextViewManager12-10 09:10:34.599  5010  5048 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTTextShadowNode12-10 09:10:34.600  5010  5048 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.checkbox.ReactCheckBoxManager12-10 09:10:34.604  5010  5048 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.uimanager.LayoutShadowNode12-10 09:10:35.170  5010  5052 W GooglePlayServicesUtil: Google Play services out of date.  Requires 12451000 but found 1158047012-10 09:10:35.479  1626  1636 I ActivityManager: START u0 {act=android.intent.action.VIEW flg=0x10008000 cmp=com.myapp/com.reactnativenavigation.controllers.NavigationActivity (has extras)} from uid 1008012-10 09:10:35.541  1405  1444 D gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 829849612-10 09:10:35.571  5010  5010 D AndroidRuntime: Shutting down VM12-10 09:10:35.576  5010  5010 E AndroidRuntime: FATAL EXCEPTION: main12-10 09:10:35.576  5010  5010 E AndroidRuntime: Process: com.myapp, PID: 501012-10 09:10:35.576  5010  5010 E AndroidRuntime: java.lang.NoSuchMethodError: No static method getFont(Landroid/content/Context;ILandroid/util/TypedValue;ILandroid/widget/TextView;)Landroid/graphics/Typeface; in class Landroid/support/v4/content/res/ResourcesCompat; or its super classes (declaration of 'android.support.v4.content.res.ResourcesCompat' appears in /data/app/com.myapp-uNSnIgB5mPdTGWEHkrTdCQ==/base.apk)12-10 09:10:35.576  5010  5010 E AndroidRuntime:    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2731)12-10 09:10:35.576  5010  5010 E AndroidRuntime:    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2856)12-10 09:10:35.576  5010  5010 E AndroidRuntime:    at android.app.ActivityThread.-wrap11(Unknown Source:0)12-10 09:10:35.576  5010  5010 E AndroidRuntime:    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1589)12-10 09:10:35.576  5010  5010 E AndroidRuntime:    at android.os.Handler.dispatchMessage(Handler.java:106)12-10 09:10:35.576  5010  5010 E AndroidRuntime:    at android.os.Looper.loop(Looper.java:164)12-10 09:10:35.576  5010  5010 E AndroidRuntime:    at android.app.ActivityThread.main(ActivityThread.java:6494)12-10 09:10:35.576  5010  5010 E AndroidRuntime:    at java.lang.reflect.Method.invoke(Native Method)12-10 09:10:35.576  5010  5010 E AndroidRuntime:    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)12-10 09:10:35.576  5010  5010 E AndroidRuntime:    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)12-10 09:10:35.600  1743  1775 W asset   : Asset path /data/app/com.myapp-Sr-m6BJSCDuUztbtfBYRoA==/base.apk is neither a directory nor file (type=1).12-10 09:10:35.600  1743  1775 E ResourcesManager: failed to add asset path /data/app/com.myapp-Sr-m6BJSCDuUztbtfBYRoA==/base.apk12-10 09:10:35.600  1743  1775 W PackageManager: Failure retrieving resources for com.myapp12-10 09:10:35.600  1743  1775 W asset   : Asset path /data/app/com.myapp-Sr-m6BJSCDuUztbtfBYRoA==/base.apk is neither a directory nor file (type=1).12-10 09:10:35.600  1743  1775 E ResourcesManager: failed to add asset path /data/app/com.myapp-Sr-m6BJSCDuUztbtfBYRoA==/base.apk12-10 09:10:35.600  1743  1775 W PackageManager: Failure retrieving resources for com.myapp12-10 09:10:35.601  1743  1775 W asset   : Asset path /data/app/com.myapp-Sr-m6BJSCDuUztbtfBYRoA==/base.apk is neither a directory nor file (type=1).12-10 09:10:35.601  1743  1775 E ResourcesManager: failed to add asset path /data/app/com.myapp-Sr-m6BJSCDuUztbtfBYRoA==/base.apk12-10 09:10:35.601  1743  1775 W PackageManager: Failure retrieving resources for com.myapp12-10 09:10:35.601  1743  1775 W asset   : Asset path /data/app/com.myapp-Sr-m6BJSCDuUztbtfBYRoA==/base.apk is neither a directory nor file (type=1).12-10 09:10:35.601  1743  1775 E ResourcesManager: failed to add asset path /data/app/com.myapp-Sr-m6BJSCDuUztbtfBYRoA==/base.apk12-10 09:10:35.601  1743  1775 W PackageManager: Failure retrieving resources for com.myapp12-10 09:10:35.601  1743  1775 W asset   : Asset path /data/app/com.myapp-Sr-m6BJSCDuUztbtfBYRoA==/base.apk is neither a directory nor file (type=1).12-10 09:10:35.601  1743  1775 E ResourcesManager: failed to add asset path /data/app/com.myapp-Sr-m6BJSCDuUztbtfBYRoA==/base.apk12-10 09:10:35.601  1743  1775 W PackageManager: Failure retrieving resources for com.myapp12-10 09:10:35.603  1626  2291 W ActivityManager:   Force finishing activity com.myapp/com.reactnativenavigation.controllers.NavigationActivity12-10 09:10:35.607  1626  1641 I ActivityManager: Showing crash dialog for package com.myapp u012-10 09:10:35.653  1405  1444 D gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 310067212-10 09:10:35.658  1405  1444 D gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 310067212-10 09:10:35.660  1405  1405 D gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 310067212-10 09:10:35.671  1626  4828 I zygote  : android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 012-10 09:10:35.671  1626  4828 I OpenGLRenderer: Initialized EGL, version 1.412-10 09:10:35.671  1626  4828 D OpenGLRenderer: Swap behavior 112-10 09:10:35.671  1626  4828 W OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...12-10 09:10:35.671  1626  4828 D OpenGLRenderer: Swap behavior 012-10 09:10:35.673  1626  4828 D EGL_emulation: eglCreateContext: 0x8c1a13e0: maj 3 min 0 rcv 312-10 09:10:35.675  1626  4828 D EGL_emulation: eglMakeCurrent: 0x8c1a13e0: ver 3 0 (tinfo 0x91222030)12-10 09:10:36.106  1626  1640 W ActivityManager: Activity pause timeout for ActivityRecord{1d73abc u0 com.myapp/com.reactnativenavigation.controllers.NavigationActivity t9 f}

The App is not using any microphone, strange there are some errors of Audio and Microphone. Here are the build details:

compileSdkVersion 27    buildToolsVersion "27.0.3"    compileOptions {        sourceCompatibility 1.8        targetCompatibility 1.8    }    defaultConfig {        applicationId "com.myapp"        minSdkVersion 19        targetSdkVersion 26        versionCode 13        versionName "1.0.8"        ndk {            abiFilters "armeabi-v7a", "x86"        }    }

I am using react-native: 0.53.0, with react-native-navigation: 1.1.375

UPDATEI am finally able to run the app by replacing the android folder with one of earlier backups! Didn't exactly found out the issue, but it was something related to React Native Navigation. Here is the code snippet from the updated gradle:

android {compileSdkVersion 27buildToolsVersion "27.0.3"compileOptions {    sourceCompatibility 1.8    targetCompatibility 1.8}defaultConfig {    applicationId "com.myapp"    minSdkVersion 19    targetSdkVersion 28    versionCode 17    versionName "1.0.9"    ndk {        abiFilters "armeabi-v7a", "x86", "arm64-v8a", "x86_64"    }}

how to use react-native-fetch-blob with expo?

$
0
0

i have tried some ways to use React-Native-Fetch-Blob in expo, but for many times, it went erroneous because of that, is there anything I can do to resolve it as? thank you.

Built React Native App with Expo - when I navigate from the menu I get a blank white page?

$
0
0

First time I have built a react native app with expo. When I test the app locally over usb to my android phone, I have the app functioning exactly the way I want it. I build the app by doing:npm startthen on another window: exp build:android

it builds successfully, I download the apk, send it to my phone and install it.

When I open the app, the first page looks normal. Everything on that page functions as it should, however when I click on a button that changes the content, the screen goes completely white. (I navigate within the app by switching content within app.js when changes to a state called 'nav' are made. Eg if nav = 'menu' content=<'MenuScreen />)

This is the first time I've built an app, not sure how I debug something not working in the built app that works on my machine. Only thing i can think of is that when i did exp start > exp build:android it didnt work, I got an error "Cannot read property 'forEach' of undefined" but when i did npm start > exp build:android it worked. Not sure if that makes a difference.

Android SDK not found for react-native

$
0
0

There are multiple similar questions everywhere across the internet and so far no provided solutions work.
I use Android Studio 4.0.0, and maybe this is the problem.

So far I got these settings in my system variables:
Environment variables

Also PATH variable:
PATH variable

Here is what react-native info outputs:

$ react-native infoinfo Fetching system and libraries information...System:    OS: Windows 10 10.0.18363    CPU: (6) x64 Intel(R) Core(TM) i5-8400 CPU @ 2.80GHz    Memory: 23.08 GB / 31.86 GB  Binaries:    Node: 12.17.0 - C:\Program Files\nodejs\node.EXE    Yarn: 1.22.4 - C:\Program Files (x86)\Yarn\bin\yarn.CMD    npm: 6.14.4 - C:\Program Files\nodejs\npm.CMD    Watchman: Not Found  SDKs:    Android SDK: Not Found  IDEs:    Android Studio: Version  4.0.0.0 AI-193.6911.18.40.6514223  Languages:    Java: 11.0.2 - /c/Users/zarifov/AppData/Local/jdk-11.0.2/bin/javac    Python: 2.7.18 - /c/Python27/python  npmPackages:    @react-native-community/cli: Not Found    react: ~16.11.0 => 16.11.0    react-native: ~0.62.2 => 0.62.2  npmGlobalPackages:    *react-native*: Not Found

And also, just in case, react-native doctor output:

$ react-native doctorCommon✓ Node.js✓ yarn✓ PythonAndroid✓ JDK✓ Android Studio - Required for building and installing your app on Android✖ Android SDK - Required for building and installing your app on Android   - Versions found: N/A   - Version supported: 28.0.3✓ ANDROID_HOMEErrors:   1Warnings: 0Usage› Press f to try to fix issues.› Press e to try to fix errors.› Press w to try to fix warnings.› Press Enter to exit.Common✓ Node.js✓ yarn✓ PythonAndroid✓ JDK✓ Android Studio - Required for building and installing your app on Android✖ Android SDK - Required for building and installing your app on Android   - Versions found: N/A   - Version supported: 28.0.3✓ ANDROID_HOMEErrors:   1Warnings: 0Usage› Press f to try to fix issues.› Press e to try to fix errors.› Press w to try to fix warnings.› Press Enter to exit.

Additional important information:The attempt to fix issue with SDK via doctor cannot be successful since it fails with "permission denied" on attempting to install Androd Command Line Tools despite the fact that the PowerShell and IDE are launched with admin privileges.


Deep Link not automatically opening in Android

$
0
0

I've set up a Deep Link within an app. When a notification comes through with a deep link, the User is prompted with a popup asking which app they would like to open the link with.

Both of these apps are identical, I only have one instance of it installed on my device.

image of android popup asking for which app to open link with

Here's a snippet of my AndroidManifest

<activity            android:name=".MainActivity"            android:configChanges="keyboard|keyboardHidden|orientation|screenSize"            android:label="@string/app_name"            android:launchMode="singleTask"            android:screenOrientation="portrait"            android:windowSoftInputMode="adjustResize"            tools:ignore="LockedOrientationActivity"><intent-filter><action android:name="android.intent.action.MAIN" /><category android:name="android.intent.category.LAUNCHER" /></intent-filter><intent-filter android:autoVerify="true"><action android:name="android.intent.action.VIEW" /><category android:name="android.intent.category.DEFAULT" /><category android:name="android.intent.category.BROWSABLE"/><data android:scheme="myscheme"                    android:host="foo" /></intent-filter></activity>

The deep link I am using is myscheme://foo

Task 'assembleRelease' not found in root project 'android'

$
0
0

I'm using Reactnative 0.54.0 and react-native-cli 2.0.1 along side gradle 4.8.1

I have created a react-native project using create-react-native-app myProjectName

When I created the project, it doesn't include android and ios folders, so I added them manually.

I also installed gradle using choco and then created a wrapper for it using gradle wrapper --gradle-version 4.8.1 --distribution-type all

so I am developing react-native using microsoft vsCode and then see my application in action using Genymotion emulator, everything is fine

now, I want to generate the final Signed APK for play store, I'm using this guide provided by react-native

https://facebook.github.io/react-native/docs/signed-apk-android.html

When I want to run gradlew assembleRelease I get this error

C:\myApp\android>gradlew assembleReleaseFAILURE: Build failed with an exception.* What went wrong:Task 'assembleRelease' not found in root project 'android'.* Try:Run gradlew tasks to get a list of available tasks. 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.orgBUILD FAILED in 4s

what's wrong with assembleRelease? what should I do?

to add more info, I have to say that when I want to build this project in VSTS (TFS Online) I get this error

2018-07-17T16:20:14.9268702Z ##[error]Error: Not found wrapperScript: D:\a\1\s\gradlew

Any clue is appriciatedThanks

Update:as @philipp asked, this is the list of tasks that gradlew have listed and assembleRelease is not one one them!!!! what's the reason?

C:\myApp\Android>gradlew tasks> Task :tasks------------------------------------------------------------All tasks runnable from root project------------------------------------------------------------Build Setup tasks-----------------init - Initializes a new Gradle build.wrapper - Generates Gradle wrapper files.Help tasks----------buildEnvironment - Displays all buildscript dependencies declared in root project 'android'.components - Displays the components produced by root project 'android'. [incubating]dependencies - Displays all dependencies declared in root project 'android'.dependencyInsight - Displays the insight into a specific dependency in root project 'android'.dependentComponents - Displays the dependent components of components in root project 'android'. [incubating]help - Displays a help message.model - Displays the configuration model of root project 'android'. [incubating]projects - Displays the sub-projects of root project 'android'.properties - Displays the properties of root project 'android'.tasks - Displays the tasks runnable from root project 'android'.To see all tasks and more detail, run gradlew tasks --allTo see more detail about a task, run gradlew help --task <task>BUILD SUCCESSFUL in 1s1 actionable task: 1 executed

and this is myApp\android**build.gradle**

project.ext.react = [    bundleInStaging: true ]task wrapper(type: Wrapper) {    gradleVersion = '4.8.1'}android {    defaultConfig {        applicationId "com.sunkime.client"    }    signingConfigs {        staging {            keyAlias = "staging"            storeFile = file("my-release-key.keystore")            keyPassword = "qwert%$#@!"            storePassword = "qwert%$#@!"        }        release {            if (project.hasProperty('MYAPP_RELEASE_STORE_FILE')) {                storeFile file(MYAPP_RELEASE_STORE_FILE)                storePassword qwert%$#@!                keyAlias qwert%$#@!                keyPassword qwert%$#@!            }        }    }    buildTypes {        debug {            applicationIdSuffix ".debug"        }        staging {            applicationIdSuffix ".staging"            signingConfig signingConfigs.staging            minifyEnabled true            proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"        }        release {            applicationIdSuffix ".release"            signingConfig signingConfigs.release            minifyEnabled true            proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"        }    }}

I also used gradlew clean and no difference

When I run the project I use the native warning: ViewPager Android has been extracted from react-native?

$
0
0

When I run my project it comes warning: ViewPagerAndroid has been extracted?

I'm looking for Open Issue Github and Stackoverflow

Warning: ViewPagerAndroid has been extracted from react-native

I expect to eliminate this warning.

React Native: Android build failed with exception - To install on emulator

$
0
0

This is my first react native app. I am able to successfully run this on iOS simulator but with Android emulator I am facing a problem.

I ran following command yarn android. It opened my android emulator but build failed with an exception. The app is managed with the expo. Earlier emulator failed to open that got fixed with the path.

Here is the detailed error:

info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.Jetifier found 1181 file(s) to forward-jetify. Using 4 workers...info JS server already running.info Launching emulator...info Successfully launched emulator.info Installing the app...FAILURE: Build failed with an exception.* What went wrong:Could not initialize class org.codehaus.groovy.runtime.InvokerHelper* 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.orgBUILD FAILED in 1serror Failed to install the app. Make sure you have the Android development environment set up: https://facebook.github.io/react-native/docs/getting-started.html#android-development-environment. Run CLI with --verbose flag for more details.Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081FAILURE: Build failed with an exception.* What went wrong:Could not initialize class org.codehaus.groovy.runtime.InvokerHelper* 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.orgBUILD FAILED in 1s    at checkExecSyncError (child_process.js:629:11)    at execFileSync (child_process.js:647:13)    at runOnAllDevices (/Users/pratik/Documents/dev_projects/ReactNativePOC/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:94:39)    at process._tickCallback (internal/process/next_tick.js:68:7)error Command failed with exit code 1.info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Dependencies:

"dependencies": {"@expo/vector-icons": "^10.2.0","@react-native-community/masked-view": "^0.1.10","@react-navigation/drawer": "^5.8.2","@react-navigation/material-bottom-tabs": "^5.2.10","@react-navigation/native": "^5.5.1","@react-navigation/stack": "^5.5.1","@types/react-native-snap-carousel": "^3.8.1","@use-expo/font": "^2.0.0","babel-plugin-module-resolver": "^4.0.0","expo": "~37.0.3","expo-font": "^8.1.1","expo-updates": "~0.2.0","intl": "^1.2.5","react": "~16.9.0","react-dom": "~16.9.0","react-native": "~0.61.5","react-native-gesture-handler": "^1.6.1","react-native-paper": "^3.10.1","react-native-reanimated": "^1.9.0","react-native-safe-area-context": "^3.0.3","react-native-screens": "^2.8.0","react-native-snap-carousel": "^3.9.1","react-native-unimodules": "~0.9.0","react-native-web": "~0.11.7"  },"devDependencies": {"@babel/core": "~7.9.0","@types/react": "~16.9.23","@types/react-native": "~0.61.23","babel-preset-expo": "~8.1.0","jest-expo": "~37.0.0","typescript": "~3.8.3"  },

Task :app:mergeExtDexDebug FAILED in running android app of react native

$
0
0

I am trying to run my react native application on an android emulator. It runs for some time then gives me the error that Expiring Daemon because JVM heap space is exhausted.This is the actual error that I get -

> Task :app:mergeExtDexDebug FAILEDReactNativeFirebase WARNING: NPM package '@react-native-firebase/auth' depends on '@react-native-firebase/app' v7.2.1 but found v7.3.0, this might cause build issues or runtime crashes.792 actionable tasks: 2 executed, 790 up-to-dateExpiring Daemon because JVM heap space is exhaustedFAILURE: Build failed with an exception.* What went wrong:Execution failed for task ':app:mergeExtDexDebug'.> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade> java.lang.OutOfMemoryError (no error message)* 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.orgBUILD FAILED in 1m 20serror Failed to install the app. Make sure you have the Android development environment set up: https://facebook.github.io/react-native/docs/getting-started.html#android-development-environment. Run CLI with --verbose flag for more details.Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081
Viewing all 28482 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>