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

Images getting cropped with FlatList

$
0
0

The images are getting croped how can i prevent that from happening? Notice that only appears half of the image. This is a Android device. Idont know if this happens in IOS too. But a fix for android would be great

enter image description here

My FlatList component

import React from 'react';import { Text, View, StyleSheet, FlatList, Image } from 'react-native';const shows_first = [    {        key: 1,        name: 'Suits',        image: 'https://static.tvmaze.com/uploads/images/medium_portrait/0/2432.jpg'    },    {        key: 2,        name: 'Modern Family',        image: 'https://static.tvmaze.com/uploads/images/medium_portrait/0/628.jpg'    },]const renderItem = (item) => {    return (<Image style={{ width: 120, height: 100 }} source={{ uri: item.image }} />    )}const List = () => {    return (<View style={{ flex: 1, marginTop: 110 }}><FlatList                horizontal={true}                ItemSeparatorComponent={() => <View style={{ width: 5 }}></View>}                renderItem={({ item }) => renderItem(item)}                data={shows_first}></FlatList></View>    )}export default List;

react-native-touch-id : custom text on native error

$
0
0

My app have provided language, in react-native-touch-id doc only have few word in android dialog can be custom, I wonder how to also custom native error ? Below is an exampleIMG_20190918_223155

Hide android bottom buttons react native using expo build

$
0
0

I have a problem, that I want to hide bottom buttons on android system in my app. I use expo build for my app. Tried other solutions that I saw on stackoverflow, but it didn't worked. I installed libraries "react-native-immersive" and "react-native-immersive-mode" and got an error.expo error

react native touch id - can't get the error of unmatched finger print

$
0
0

I am using the library React-native-touch-id and I wan't a specific behavior when the error is 'touch Faield'. This is the code:

TouchID.authenticate(---)        .then(success => {            //        })        .catch(error => {                console.log(error.details)            }        )

I actually want to catch this error 'finger print unrecognized' (see the picture)(but my console doesn't show anything unless I click on cancel/close the pop up then I get the 'FINGERPRINT_ERROR_CANCELED'.unrecongnized finger print

I saw in the library that there are multiple errors, like 'authentication_failed'.

I looked up in the issues and found that normally I can get the error when the finger print is wrong :https://github.com/naoufal/react-native-touch-id/issues/144 but it's not the case.

I know the library is not actively currently maintained now, I just want to know is someone faced the same issue.

Thank you.

Activity destroyed when foregrounding app via app icon/launcher

$
0
0

I am currently working on a ReactNative + Android application. Now, I have an issue where foregrounding my application, via the app icon/launcher, closes the previously displayed screen & destroys the previous activity. Ideally, the screen & activity should remain / resume when clicking the launcher (just like it does when foregrounding via recently opened tasks).

I have been looking @ launchModes in my manifest, but removing all launchModes on all activities (except the root activity) does not resolve my issue (as per this similar stack post: Click on app icon destroys activities). I have also changed the launchMode on the root activity from singleTask to singleTop; and this seemed to fix things @ first, but broke the app when launching via deep linking (pushed multiple activities .. etc).

I am currently doing some more research into launch modes & activities, but am not sure how to tackle the issue beyond that.

My AndroidManifest looks like this:

<activity            android:name=".MainActivity"            android:exported="true"            android:launchMode="singleTask"            android:screenOrientation="portrait"            android:configChanges="keyboard|keyboardHidden|orientation|screenSize"            android:windowSoftInputMode="adjustResize"            android:label="@string/app_name"            android:theme="@style/SplashTheme">

Any insight would be greatly appreciated, thanks.

Why am I receiving a cannot read property `UIAppFonts of null` error when running react-native link?

$
0
0

I am trying to implement custom fonts in a react native application. I am using react native web and can see the custom fonts working on web but not in native. I am working on an Android app but the issues seems to be within the IOS folder which I'm not even using. I found this question on SO but none of the solutions have worked for me. I've tried:

  1. Uninstalling and reinstalling react-native
  2. Running react-native upgrade
  3. The assets folder was originally in my src folder so I moved it to the root of the project

My fonts are located in ./assets/fonts in the root of my project and they are otf files, there are no hyphens in the file names. I created a react-native.config.js file in the root of my project and this is what is in it:

module.exports = {    project: {      ios: {},      android: {},    },    assets: ['./assets/fonts/'],  };

When I run react-native link this is the error I'm receiving:

info Linking assets to ios projectwarn Group 'Resources' does not exist in your Xcode project. We have created it automatically for you.error Linking assets failed. Run CLI with --verbose flag for more details.TypeError: Cannot read property 'UIAppFonts' of null    at Object.linkAssetsIOS [as copyAssets] (/Users/daniellemccarthy/linos-poc/voice/case-picking/node_modules/@react-native-community/cli-platform-ios/build/link/copyAssets.js:89:31)    at Object.keys.forEach.platform (/Users/daniellemccarthy/linos-poc/voice/case-picking/node_modules/@react-native-community/cli/build/commands/link/linkAssets.js:42:16)    at Array.forEach (<anonymous>)    at linkAssets (/Users/daniellemccarthy/linos-poc/voice/case-picking/node_modules/@react-native-community/cli/build/commands/link/linkAssets.js:33:32)    at linkAll (/Users/daniellemccarthy/linos-poc/voice/case-picking/node_modules/@react-native-community/cli/build/commands/link/linkAll.js:96:31)    at Object.link [as func] (/Users/daniellemccarthy/linos-poc/voice/case-picking/node_modules/@react-native-community/cli/build/commands/link/link.js:82:33)    at Command.handleAction (/Users/daniellemccarthy/linos-poc/voice/case-picking/node_modules/@react-native-community/cli/build/index.js:186:23)    at Command.listener (/Users/daniellemccarthy/linos-poc/voice/case-picking/node_modules/commander/index.js:315:8)    at Command.emit (events.js:198:13)    at Command.parseArgs (/Users/daniellemccarthy/linos-poc/voice/case-picking/node_modules/commander/index.js:651:12)

When I run react-native info this is what is shows:

System:    OS: macOS 10.15.3    CPU: (8) x64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz    Memory: 1.72 GB / 16.00 GB    Shell: 3.2.57 - /bin/bash  Binaries:    Node: 10.16.0 - /usr/local/bin/node    Yarn: 1.22.4 - /usr/local/bin/yarn    npm: 6.13.7 - /usr/local/bin/npm    Watchman: 4.9.0 - /usr/local/bin/watchman  Managers:    CocoaPods: 1.8.4 - /usr/local/bin/pod  SDKs:    iOS SDK:      Platforms: iOS 13.4, DriverKit 19.0, macOS 10.15, tvOS 13.4, watchOS 6.2    Android SDK: Not Found  IDEs:    Android Studio: 3.6 AI-192.7142.36.36.6392135    Xcode: 11.4.1/11E503a - /usr/bin/xcodebuild  Languages:    Java: 11.0.6 - /Users/daniellemccarthy/.sdkman/candidates/java/current/bin/javac    Python: 3.7.3 - /usr/local/bin/python  npmPackages:    @react-native-community/cli: ^4.8.0 => 4.8.0     react: ^16.9.0 => 16.13.1     react-native: ^0.62.2 => 0.62.2   npmGlobalPackages:

React native: Using a panResponder inside of a scrollview broken on android

$
0
0

I know this issue has been raised many times but I have not found a working fix on any of the other threads (Most of which have very little to no replies).

In my implementation I have a ScrollView which is a parent to a list of items that each have a panResponder for sideways swiping (Like tinder cards).

The issue I am having is that the ScrollView stops the panResponder mid-animation and prioritizes scrolling.

I have tried dynamically toggling scrollEnabled on the scrollView on onPanResponderGrant and onPanResponderRelease but this is not a viable solution since scrolling vertically on a panResponder triggers onPanResponderGrant disabling scrolling.

Here is my implementation of panResponder:

this._panResponder = PanResponder.create({        onStartShouldSetPanResponder: (evt, gestureState) => true,        onStartShouldSetPanResponderCapture: (evt, gestureState) => true,        onMoveShouldSetPanResponder: (evt, gestureState) => false,        onMoveShouldSetPanResponderCapture: (evt, gestureState) => false,        onShouldBlockNativeResponder: (evt, gestureState) => false,        onPanResponderTerminationRequest: () => false,        onPanResponderGrant: (event, gestureState) => {          this.pan.setValue(0);          this.opacity.setValue(0)          this.rotation.setValue(0)        },        onPanResponderMove: (event, gesture) => {            this.pan.setValue(gesture.dx)            this.rotation.setValue(gesture.dx)            this.opacity.setValue(gesture.dx)          },          onPanResponderRelease: (event, gestureState) => {            if(gestureState.dx < -SWIPE_THRESHOLD){                this.removeCard()              } else {                this.resetPosition()              }        }      });

And here is the FlatList that renders each swipable card:

<FlatList            data={this.state.cards}            keyExtractor={item => item.id}            renderItem={({ item }) => (<DataCard              type={item.type}              name={item.name}              />            )}          />

I have since swapped out ScrollView with a FlatList with hopes of magically resolving this but no luck.

This functionality works flawlessly on iOS but the issue is still android.

It seems like this is a pretty common issue that has no concrete solution. Which is what Im hoping for by posting this.

Thanks!

React Native InApp Browser - Selecting a file (File Explorer) for uploading make InApp browser to close only with Google Chrome

$
0
0

I am currently working on a project on Android using the Expo client for react native. When I use expo-web-browser or react-native-inappbrowser-reborn and call for example WebBrowser.openBrowserAsync("https://fr.imgbb.com/"), it will open the website correctly. When I try to upload a file, it opens the file explorer correctly but when I select an image or other files, it closes the InApp Browser and redirect me to the App.

This problem occurs only if the InApp Browser is powered by Google. When I use for example the browser Samsung Internet, the problem doesn't occur.

Am I missing something ?

PS: My app is already detached from expo


Clear Text on single tap

$
0
0

When I click on the cross icon first time, it lowers the keyboard and on the second tap, it clears the text in the search bar. I wanted to clear the text on the first tap I have tried other solutions as well but nothing worked. How can i clear the text on the first click?

    return (<View style={styles.FlatList_header}><View style={styles.header_style}><Input            autoFocus={true}            style={styles.textInputStyle}            onChangeText={text => this.search(text)}            value={this.state.text}          /><Icon            name="close"            style={styles.crossIcon}            onPress={() => {              this.search('');            }}          /></View></View>    );  };  render() {    const {data, onPress} = this.props;    return (<><SafeAreaView          style={{flex: 1, backgroundColor: customColor.defaultGreen}}><View style={styles.MainContainer}><FlatList              data={data}              renderItem={({item}) => (<View                  style={{                    flex: 1,                    borderWidth: 0.5,                    borderColor: customColor.textLightGrey,                  }}><Text                    style={styles.FlatList_Item}                    onPress={() => onPress(item)}>                    {item?.taskName}</Text></View>              )}              enableEmptySections={true}              ListHeaderComponent={this.Render_FlatList_Sticky_header}              keyExtractor={item => item.id}            /></View></SafeAreaView></>    );  }}

error: crypto.getRandomValue() not supported

$
0
0

[![how to fix this problem?

project location in index.js

import {AppRegistry} from 'react-native';import App from './App';import {name as appName} from './app.json';import 'react-native-get-random-values';

AppRegistry.registerComponent(appName, () => App);

I can also npm i react-native-get-random-values

]1]1

Why assembleDebug success but assembleRelease failed in react native?

$
0
0

I have tried to assemble my project as a release. But it always failed. Below are some of the script that I use to build my apk as release:-

BUILD SUCCESSFUL

.\gradlew assembleDebug --no-daemon.\gradlew app:assembleDebug

BUILD FAILED

.\gradlew app:assembleRelease.\gradlew assembleRelease -x bundleReleaseJsAndAssets

The result of the failed mention on every failed build:-

> Execution failed for task ':app:mergeReleaseResources'> Task :app:mergeReleaseResources> FAILED cvc-type.3.1.3: The value '' of element 'id' is not valid.

enter image description here

enter image description here

enter image description here

I also have try to create keystore using keytool and apply it to the signingConfigs in

./android/app/build.gradle

but no success on release. So, I'm reverting and use default debug.keystore value

Referring various answer from forum, SO question, tutorial I have try to apply. I'm totally stuck.

Does anyone face this issue and able to overcome the obstacles?

Edited: Error log when build

Using .\gradlew assembleRelease

D:\Project\Clients\android>.\gradlew assembleRelease> Configure project :react-native-activity-resultWARNING: 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.htmlWARNING: The specified Android SDK Build Tools version (23.0.1) is ignored, as it is below the minimum supported version (28.0.3) for Android Gradle Plugin 3.4.1.Android SDK Build Tools 28.0.3 will be used.To suppress this warning, remove "buildToolsVersion '23.0.1'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.> Task :app:bundleReleaseJsAndAssetswarning: the transform cache was reset.> Task :react-native-activity-result:verifyReleaseResources FAILED> Task :app:bundleReleaseJsAndAssetsLoading dependency graph, done.info Writing bundle output to:, D:\Project\Clients\android\app\build\generated\assets\react\release\index.android.bundleinfo Writing sourcemap output to:, D:\Project\Clients\android\app\build\intermediates\sourcemaps\release\index.android.bundle.packager.mapinfo Done writing bundle outputinfo Done writing sourcemap outputinfo Copying 47 asset filesinfo Done copying assetsFAILURE: Build failed with an exception.* What went wrong:Execution failed for task ':react-native-activity-result:verifyReleaseResources'.> 1 exception was raised by workers:  com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed  error: resource android:style/TextAppearance.Material.Widget.Button.Borderless.Colored not found.  error: resource android:style/TextAppearance.Material.Widget.Button.Colored not found.  D:\Project\Clients\node_modules\react-native-activity-result\android\build\intermediates\res\merged\release\values-v26\values-v26.xml:7: error: resource android:attr/colorError not found.  D:\Project\Clients\node_modules\react-native-activity-result\android\build\intermediates\res\merged\release\values-v26\values-v26.xml:11: error: resource android:attr/colorError not found.  D:\Project\Clients\node_modules\react-native-activity-result\android\build\intermediates\res\merged\release\values-v26\values-v26.xml:15: error: style attribute 'android:attr/keyboardNavigationCluster' not found.  D:\Project\Clients\node_modules\react-native-activity-result\android\build\intermediates\res\merged\release\values-v28\values-v28.xml:7: error: resource android:attr/dialogCornerRadius not found.  D:\Project\Clients\node_modules\react-native-activity-result\android\build\intermediates\res\merged\release\values-v28\values-v28.xml:11: error: resource android:attr/dialogCornerRadius not found.  D:\Project\Clients\node_modules\react-native-activity-result\android\build\intermediates\res\merged\release\values\values.xml:2734: error: resource android:attr/fontStyle not found.  D:\Project\Clients\node_modules\react-native-activity-result\android\build\intermediates\res\merged\release\values\values.xml:2735: error: resource android:attr/font not found.  D:\Project\Clients\node_modules\react-native-activity-result\android\build\intermediates\res\merged\release\values\values.xml:2736: error: resource android:attr/fontWeight not found.  D:\Project\Clients\node_modules\react-native-activity-result\android\build\intermediates\res\merged\release\values\values.xml:2737: error: resource android:attr/fontVariationSettings not found.  D:\Project\Clients\node_modules\react-native-activity-result\android\build\intermediates\res\merged\release\values\values.xml:2738: error: resource android:attr/ttcIndex not found.  D:\Project\Clients\node_modules\react-native-activity-result\android\build\intermediates\res\merged\release\values\values.xml:2902: error: resource android:attr/startX not found.  D:\Project\Clients\node_modules\react-native-activity-result\android\build\intermediates\res\merged\release\values\values.xml:2905: error: resource android:attr/startY not found.  D:\Project\Clients\node_modules\react-native-activity-result\android\build\intermediates\res\merged\release\values\values.xml:2908: error: resource android:attr/endX not found.  D:\Project\Clients\node_modules\react-native-activity-result\android\build\intermediates\res\merged\release\values\values.xml:2911: error: resource android:attr/endY not found.  D:\Project\Clients\node_modules\react-native-activity-result\android\build\intermediates\res\merged\release\values\values.xml:2919: error: resource android:attr/offset not found.  error: failed linking references.* 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.orgDeprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.Use '--warning-mode all' to show the individual deprecation warnings.See https://docs.gradle.org/5.4.1/userguide/command_line_interface.html#sec:command_line_warningsBUILD FAILED in 2m 54s210 actionable tasks: 22 executed, 188 up-to-dateD:\Project\Clients\android> 

How to convert timestamp value to specific time format using react native?

$
0
0

In my scenario, I need to convert timestamp value to specific time format in react native. I tired below code but can't able to achieve exact formate output. How to achieve it?

 var dateTime = new Date(23456789 * 1000);    this.setState({DateTime:('0'+ dateTime.getUTCDate()).slice(-2) +'/'+ ('0'+ dateTime.getUTCMonth()).slice(-2) +'/'+ dateTime.getUTCFullYear() +''+ ('0'+ dateTime.getUTCHours()).slice(-2)        });

Exact output expecting : Wed, 2/01/2000 - 1.10 AM

@firebase/firestore: Firestore (7.14.3) : Could not reach Cloud Firestore backend: React Native, Windows/Android [closed]

Windows Android Studio Gradle Build Error

$
0
0

I have a React Native project that I cloned in my Windows desktop and opened in Android Studio, but when the gradle builds, it generates an error. This occurs everytime I open the project folder android from the React Native project. This only occurs on my Windows desktop, in my MacBook, it runs fine without any gradle errors.

Steps Done:

  1. Cloned project.
  2. npm install in project root directory.
  3. Open android folder in Android Studio.
  4. Gradle build throws the error.

build.gradle:

buildscript {    ext {        buildToolsVersion = "28.0.3"        minSdkVersion = 21        compileSdkVersion = 28        targetSdkVersion = 27        supportLibVersion = "28.0.0"    }    repositories {        google()        jcenter()    }    dependencies {        classpath 'com.android.tools.build:gradle:3.3.0'        classpath('com.google.gms:google-services:4.3.3')        // NOTE: Do not place your application dependencies here; they belong        // in the individual module build.gradle files    }}allprojects {    repositories {        mavenLocal()        google()        jcenter()        maven {            // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm            url "$rootDir/../node_modules/react-native/android"        }        maven {            // Android JSC is installed from npm            url("$rootDir/../node_modules/jsc-android/dist")        }        maven {            // expo-camera bundles a custom com.google.android:cameraview            url "$rootDir/../node_modules/expo-camera/android/maven"        }    }}task wrapper(type: Wrapper) {    gradleVersion = '4.7'    distributionUrl = distributionUrl.replace("bin", "all")}

Error:

* Where:Initialization script 'C:\Users\Vince\AppData\Local\Temp\sync.studio.tooling.gradle' line: 7* What went wrong:Could not get unknown property 'com' for root project 'BirthdayPanaloMobileApp' of type org.gradle.api.Project.* Try:Run with --info or --debug option to get more log output. Run with --scan to get full insights.* Exception is:groovy.lang.MissingPropertyException: Could not get unknown property 'com' for root project 'BirthdayPanaloMobileApp' of type org.gradle.api.Project.    at org.gradle.internal.metaobject.AbstractDynamicObject.getMissingProperty(AbstractDynamicObject.java:83)    at org.gradle.internal.metaobject.ConfigureDelegate.getProperty(ConfigureDelegate.java:130)    at sync_studio_tooling_1eh5t85q86ffa8cqwqkccmygp$_run_closure1.doCall(C:\Users\Vince\AppData\Local\Temp\sync.studio.tooling.gradle:7)    at org.gradle.api.internal.ClosureBackedAction.execute(ClosureBackedAction.java:71)    at org.gradle.util.ConfigureUtil.configureTarget(ConfigureUtil.java:155)    at org.gradle.util.ConfigureUtil.configure(ConfigureUtil.java:106)    at org.gradle.util.ConfigureUtil$WrappedConfigureAction.execute(ConfigureUtil.java:167)    at org.gradle.api.internal.project.BuildOperationCrossProjectConfigurator$4.execute(BuildOperationCrossProjectConfigurator.java:108)    at org.gradle.internal.Actions.with(Actions.java:245)    at org.gradle.api.internal.project.BuildOperationCrossProjectConfigurator$3.run(BuildOperationCrossProjectConfigurator.java:79)    at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:300)    at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:292)    at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:174)    at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)    at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)    at org.gradle.api.internal.project.BuildOperationCrossProjectConfigurator.runProjectConfigureAction(BuildOperationCrossProjectConfigurator.java:76)    at org.gradle.api.internal.project.BuildOperationCrossProjectConfigurator.access$400(BuildOperationCrossProjectConfigurator.java:30)    at org.gradle.api.internal.project.BuildOperationCrossProjectConfigurator$2.doRunProjectConfigure(BuildOperationCrossProjectConfigurator.java:70)    at org.gradle.api.internal.project.BuildOperationCrossProjectConfigurator$BlockConfigureBuildOperation.run(BuildOperationCrossProjectConfigurator.java:161)    at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:300)    at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:292)    at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:174)    at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)    at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)    at org.gradle.api.internal.project.BuildOperationCrossProjectConfigurator.runBlockConfigureAction(BuildOperationCrossProjectConfigurator.java:67)    at org.gradle.api.internal.project.BuildOperationCrossProjectConfigurator.allprojects(BuildOperationCrossProjectConfigurator.java:57)    at org.gradle.api.internal.project.DefaultProject.allprojects(DefaultProject.java:653)    at org.gradle.invocation.DefaultGradle$2.execute(DefaultGradle.java:248)    at org.gradle.invocation.DefaultGradle$2.execute(DefaultGradle.java:246)    at org.gradle.configuration.internal.DefaultListenerBuildOperationDecorator$BuildOperationEmittingAction$1$1.run(DefaultListenerBuildOperationDecorator.java:155)    at org.gradle.configuration.internal.DefaultUserCodeApplicationContext.reapply(DefaultUserCodeApplicationContext.java:58)    at org.gradle.configuration.internal.DefaultListenerBuildOperationDecorator$BuildOperationEmittingAction$1.run(DefaultListenerBuildOperationDecorator.java:152)    at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:300)    at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:292)    at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:174)    at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)    at org.gradle.configuration.internal.DefaultListenerBuildOperationDecorator$BuildOperationEmittingAction.execute(DefaultListenerBuildOperationDecorator.java:149)    at org.gradle.internal.ImmutableActionSet$SetWithFewActions.execute(ImmutableActionSet.java:285)    at org.gradle.internal.MutableActionSet.execute(MutableActionSet.java:37)    at org.gradle.api.internal.project.BuildOperationCrossProjectConfigurator$4.execute(BuildOperationCrossProjectConfigurator.java:108)    at org.gradle.internal.Actions.with(Actions.java:245)    at org.gradle.api.internal.project.BuildOperationCrossProjectConfigurator$3.run(BuildOperationCrossProjectConfigurator.java:79)    at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:300)    at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:292)    at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:174)    at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)    at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)    at org.gradle.api.internal.project.BuildOperationCrossProjectConfigurator.runProjectConfigureAction(BuildOperationCrossProjectConfigurator.java:76)    at org.gradle.api.internal.project.BuildOperationCrossProjectConfigurator.access$400(BuildOperationCrossProjectConfigurator.java:30)    at org.gradle.api.internal.project.BuildOperationCrossProjectConfigurator$2.doRunProjectConfigure(BuildOperationCrossProjectConfigurator.java:70)    at org.gradle.api.internal.project.BuildOperationCrossProjectConfigurator$BlockConfigureBuildOperation.run(BuildOperationCrossProjectConfigurator.java:161)    at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:300)    at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:292)    at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:174)    at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)    at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)    at org.gradle.api.internal.project.BuildOperationCrossProjectConfigurator.runBlockConfigureAction(BuildOperationCrossProjectConfigurator.java:67)    at org.gradle.api.internal.project.BuildOperationCrossProjectConfigurator.rootProject(BuildOperationCrossProjectConfigurator.java:62)    at org.gradle.invocation.DefaultGradle$1.projectsLoaded(DefaultGradle.java:94)    at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)    at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)    at org.gradle.internal.event.AbstractBroadcastDispatch.dispatch(AbstractBroadcastDispatch.java:42)    at org.gradle.internal.event.BroadcastDispatch$SingletonDispatch.dispatch(BroadcastDispatch.java:230)    at org.gradle.internal.event.BroadcastDispatch$SingletonDispatch.dispatch(BroadcastDispatch.java:149)    at org.gradle.internal.event.AbstractBroadcastDispatch.dispatch(AbstractBroadcastDispatch.java:58)    at org.gradle.internal.event.BroadcastDispatch$CompositeDispatch.dispatch(BroadcastDispatch.java:324)    at org.gradle.internal.event.BroadcastDispatch$CompositeDispatch.dispatch(BroadcastDispatch.java:234)    at org.gradle.internal.event.ListenerBroadcast.dispatch(ListenerBroadcast.java:140)    at org.gradle.internal.event.ListenerBroadcast.dispatch(ListenerBroadcast.java:37)    at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93)    at com.sun.proxy.$Proxy16.projectsLoaded(Unknown Source)    at org.gradle.initialization.NotifyingBuildLoader$3.run(NotifyingBuildLoader.java:73)    at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:300)    at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:292)    at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:174)    at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)    at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)    at org.gradle.initialization.NotifyingBuildLoader.load(NotifyingBuildLoader.java:70)    at org.gradle.initialization.DefaultGradleLauncher$ConfigureBuild.run(DefaultGradleLauncher.java:273)    at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:300)    at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:292)    at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:174)    at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)    at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)    at org.gradle.initialization.DefaultGradleLauncher.configureBuild(DefaultGradleLauncher.java:182)    at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:141)    at org.gradle.initialization.DefaultGradleLauncher.getConfiguredBuild(DefaultGradleLauncher.java:119)    at org.gradle.internal.invocation.GradleBuildController$2.call(GradleBuildController.java:86)    at org.gradle.internal.invocation.GradleBuildController$2.call(GradleBuildController.java:83)    at org.gradle.internal.work.DefaultWorkerLeaseService.withLocks(DefaultWorkerLeaseService.java:154)    at org.gradle.internal.work.StopShieldingWorkerLeaseService.withLocks(StopShieldingWorkerLeaseService.java:38)    at org.gradle.internal.invocation.GradleBuildController.doBuild(GradleBuildController.java:96)    at org.gradle.internal.invocation.GradleBuildController.configure(GradleBuildController.java:83)    at org.gradle.tooling.internal.provider.runner.ClientProvidedPhasedActionRunner.run(ClientProvidedPhasedActionRunner.java:63)    at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)    at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)    at org.gradle.tooling.internal.provider.ValidatingBuildActionRunner.run(ValidatingBuildActionRunner.java:32)    at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner$3.run(RunAsBuildOperationBuildActionRunner.java:50)    at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:300)    at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:292)    at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:174)    at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)    at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)    at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner.run(RunAsBuildOperationBuildActionRunner.java:45)    at org.gradle.tooling.internal.provider.SubscribableBuildActionRunner.run(SubscribableBuildActionRunner.java:51)    at org.gradle.launcher.exec.InProcessBuildActionExecuter$1.transform(InProcessBuildActionExecuter.java:47)    at org.gradle.launcher.exec.InProcessBuildActionExecuter$1.transform(InProcessBuildActionExecuter.java:44)    at org.gradle.composite.internal.DefaultRootBuildState.run(DefaultRootBuildState.java:79)    at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:44)    at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:30)    at org.gradle.launcher.exec.BuildTreeScopeBuildActionExecuter.execute(BuildTreeScopeBuildActionExecuter.java:39)    at org.gradle.launcher.exec.BuildTreeScopeBuildActionExecuter.execute(BuildTreeScopeBuildActionExecuter.java:25)    at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:80)    at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:53)    at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:62)    at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:34)    at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.java:36)    at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.java:25)    at org.gradle.tooling.internal.provider.ParallelismConfigurationBuildActionExecuter.execute(ParallelismConfigurationBuildActionExecuter.java:43)    at org.gradle.tooling.internal.provider.ParallelismConfigurationBuildActionExecuter.execute(ParallelismConfigurationBuildActionExecuter.java:29)    at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:59)    at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:31)    at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:59)    at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:44)    at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:46)    at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:30)    at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:67)    at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)    at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)    at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:37)    at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)    at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:26)    at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)    at org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:34)    at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)    at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:74)    at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:72)    at org.gradle.util.Swapper.swap(Swapper.java:38)    at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:72)    at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)    at org.gradle.launcher.daemon.server.exec.LogAndCheckHealth.execute(LogAndCheckHealth.java:55)    at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)    at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:62)    at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)    at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)    at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:81)    at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)    at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)    at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:50)    at org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:295)    at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)    at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)    at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)* Get more help at https://help.gradle.org

React Native XHR Longpoll not working on Android (but on iOS)

$
0
0

I have a piece of hardware, which provides an API for monitoring state changes, eg. "Light x turned on". The API returns a JSON string every time a device state changes. To poll the API I use XMLHttpRequest. It opens the connection (which stays open -> readyState 4 will never be reached) and I added a listener to the readyState. On readyState == 3, I process the incoming JSON packet.

When I run the App on a physical device, it works fine on iOS, but on Android just nothing happens (no error, no readyState, nothing). Calling a static API on the same hardware (same Protocol, IP and Port, just another Endpoint) works in both environments. I have made the necessary adjustments to allow http connections in both iOS and Android.Here's the code Im' using (stripped down to the basic functions):

const xhr = new XMLHttpRequest();const params = 'param=value';xhr.open('GET', 'http://'+ IP +':8080/endpoint', true);xhr.setRequestHeader('Authorization', 'Basic '+ base64.encode(apiUser + apiPassword));xhr.onerror = (err) => {    console.log(err);};xhr.onreadystatechange = () => {    console.log(xhr.readyState);    if(xhr.readyState == 3) {        handlePacket(xhr.responseText);    }};xhr.send(params);

This code works on an iPhone XR running iOS 13.3.It doesn't work on a Samsung Galaxy S8 running Android 9.

Profiling the App in Android Studio shows me (in Network Monitor), that the connection seems to be established, but I can't see any response.

Sorry if tldr; I'm new to React Native and running out of ideas...Does anybody have an idea what the problem might be?

Thanks in advance.Andreas


React-native using native module and passing to app, cannot format into json object

$
0
0

I have implemented Java library to my React-native app with Native Modules, After finally being able to grab data in the app, I cannot convert it into Json object, have no idea why. When I pass it to my app, it looks like this:

{"data":{"pictureGroup":[],"checkDigit":4},"className":"someclassname"}

So I tried to parse it by have failed, all time get's response like:

Possible Unhandled Promise Rejection (id: 0): TypeError: res.parse is not a function _callee$@http://localhost:8081/App.bundle?platform=android&dev=true&minify=false&modulesOnly=true&runModule=false&shallow=true:58:33 tryCatch@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:26922:19 invoke@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:27098:32 defineIteratorMethods/http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:26965:23 tryCatch@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:26922:19 invoke@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:26998:30 invoke/<@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:27008:21 tryCallOne@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:28860:14 handleResolved/<@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:28961:27 setImmediate/id<@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:32510:21 _callTimer@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:32400:9 _callImmediatesPass@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:32436:19 callImmediates@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:32654:14 __callImmediates@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:2719:16 flushedQueue/<@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:2505:18 __guard@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:2702:13 flushedQueue@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:2504:14 invokeCallbackAndReturnFlushedQueue@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:2497:21 parcelRequire<.sYUNhttp://localhost:8081/debugger-ui/debuggerWorker.cff11639.js:4:902

Here is my code:

import React from 'react';import {View, Text, TouchableOpacity} from 'react-native';import DocumentReaderModule from './DocumentReaderExample';// prettier-ignoreclass App extends React.Component {  constructor(props) {    super(props);    this.state = {      image: '',    };  }  test = async () => {      let res = await DocumentReaderModule.CaputeDocument();      console.log(res)      console.log(res.parse())  };  render() {    return (<View><TouchableOpacity onPress={() => this.test()}><Text>Click me</Text></TouchableOpacity></View>    );  }}export default App;

Could not connect to React Native development server on Android

$
0
0

When I run react-native run-android, it gives me the following error:

Could not connect to development server

Error screen

  • Package server is running and I can access it directly from browseron my mobile device.
  • My Android device is connected to computer and has debugging enabled (Ichecked using adb devices command).
  • My Android version is 4.4.4 so I cannot use adb reverse command.
  • I have set the ID address and port in Dev setting.
  • USB debug is on.
  • I use Windows 7.

How to fix this error?

How do I change the string encoding?

$
0
0

The task is to Write an application to run under the Android OS thattranslates text in the same encoding (for example, win-1251) and writescontent in a different encoding (for example, utf-8) and the reverse task.

When entering a message, I don't touch the encoding at all.

Then I just process a simple tap and a long tap to change the encoding.In other words, if you enter just text, everything works correctly.When you normally click, the ConvertItem method is called.

If you click for a long time, the ConvertItem2 method is called

I do this

const convertItem = (text,key) =>{var iconv = require('iconv-lite');const buf = Buffer.from(text, "binary");const str = iconv.decode(buf, "win1251");setValue(old=>old.map((value)=>{  if(value.key==key){    value.text = str  }  return value}))}const convertItem2 = (text,key) =>{var iconv = require('iconv-lite');const buf = Buffer.from(text, "binary");const str = iconv.decode(buf, "utf8");setValue(old=>old.map((value)=>{  if(value.key==key){    value.text = str  }  return value}))}

React Native: wake a locked phone and play a sound

$
0
0

I am building a running app that shows a timer. When the timer reaches 0 seconds a sound is played. I use React Native Sound for playback. I use an interval on componentDidMount for counting the seconds:

componentDidMount() {    this.recalcTotalSeconds();    KeepAwake.activate();    this._interval = setInterval(() => {        this.step();    }, 999);}

It works nicely as long as the phone is unlocked. When the phone is locked the interval is not fired and the sound is not played. As a first measure I uploaded a version with Keep Awake that prevents the screen from locking. I am looking for a battery-friendly solution.

timer screen

How can I set a timeout to wake the phone up or at least play a sound to alert the user to unlock the phone? How can I play sound in the background when the phone is locked?

Exoplayer infinite buffer state

$
0
0

I'm trying to use the exoplayer for my React Native app using the React Native video package.

I have an app with both a HLS stream and a mp4 videos, these videos and are stored on my server (https).

When browsing through videos the player gets stuck in an infinite buffer state and stays that way until I restart the app. This is completely random. The only way to reproduce the problem is just watching videos and switch the source multiple times.

When looking in the Android logcat there are no errors. adb bugreport doesn't work either.

05-22 10:51:07.884 22911-22911/eu.domain.app I/EXO PLAYER: isBuffering - true05-22 10:51:08.180 22911-25217/eu.domain.app I/ACodec:  [] Now uninitialized05-22 10:51:08.181 22911-25221/eu.domain.app I/ACodec: [] onAllocateComponent05-22 10:51:08.184 22911-25221/eu.domain.app I/OMXClient: MuxOMX ctor05-22 10:51:08.210 22911-25221/eu.domain.app I/ACodec: [OMX.Exynos.avc.dec] Now Loaded05-22 10:51:08.214 22911-25220/eu.domain.app I/MediaCodec: [OMX.Exynos.avc.dec] setting surface generation to 2346087005-22 10:51:08.217 22911-25221/eu.domain.app I/ACodec: can't find wfdsink-exynos-enable05-22 10:51:08.226 22911-25221/eu.domain.app I/ACodec: codec does not support config priority (err -1010)05-22 10:51:08.235 22911-25221/eu.domain.app I/ACodec: [OMX.Exynos.avc.dec] Now Loaded->Idle05-22 10:51:08.268 22911-25221/eu.domain.app I/ACodec: [OMX.Exynos.avc.dec] configureOutputBuffersFromNativeWindow setBufferCount : 8, minUndequeuedBuffers : 405-22 10:51:08.285 22911-25217/eu.domain.app I/ACodec:  [] Now uninitialized05-22 10:51:08.286 22911-25224/eu.domain.app I/ACodec: [] onAllocateComponent05-22 10:51:08.299 22911-25221/eu.domain.app I/ACodec: [OMX.Exynos.avc.dec] Now Idle->Executing05-22 10:51:08.303 22911-25224/eu.domain.app I/OMXClient: MuxOMX ctor05-22 10:51:08.304 22911-25221/eu.domain.app I/ACodec: [OMX.Exynos.avc.dec] Now Executing05-22 10:51:08.323 22911-25224/eu.domain.app I/ACodec: [OMX.google.aac.decoder] Now Loaded05-22 10:51:08.329 22911-25221/eu.domain.app I/ACodec: [OMX.Exynos.avc.dec] Now handling output port settings change05-22 10:51:08.335 22911-25224/eu.domain.app I/ACodec: codec does not support config priority (err -2147483648)05-22 10:51:08.337 22911-25221/eu.domain.app I/ACodec: [OMX.Exynos.avc.dec] configureOutputBuffersFromNativeWindow setBufferCount : 15, minUndequeuedBuffers : 405-22 10:51:08.337 22911-25224/eu.domain.app I/ACodec: [OMX.google.aac.decoder] Now Loaded->Idle05-22 10:51:08.347 22911-25221/eu.domain.app I/ACodec: [OMX.Exynos.avc.dec] Now Executing05-22 10:51:08.349 22911-25224/eu.domain.app I/ACodec: [OMX.google.aac.decoder] Now Idle->Executing05-22 10:51:08.350 22911-25224/eu.domain.app I/ACodec: [OMX.google.aac.decoder] Now Executing05-22 10:51:08.361 22911-25224/eu.domain.app I/ACodec: [OMX.google.aac.decoder] Now handling output port settings change05-22 10:51:08.398 22911-25224/eu.domain.app I/ACodec: [OMX.google.aac.decoder] Now Executing05-22 10:51:08.454 22911-25217/eu.domain.app I/AudioTrack: This process already got info. FadeIn[0] FadeOut[0] FadeInRing[0]05-22 10:51:08.485 22911-22911/eu.domain.app I/EXO PLAYER: isBuffering - false05-22 10:51:11.898 22911-22922/eu.domain.app I/art: Background sticky concurrent mark sweep GC freed 41338(3MB) AllocSpace objects, 16(388KB) LOS objects, 5% free, 63MB/67MB, paused 4.005ms total 110.586ms05-22 10:51:13.124 22911-22922/eu.domain.app I/art: Background partial concurrent mark sweep GC freed 15341(1151KB) AllocSpace objects, 2(32KB) LOS objects, 19% free, 65MB/81MB, paused 3.007ms total 105.323ms05-22 10:51:13.670 22911-22915/eu.domain.app I/art: Do partial code cache collection, code=251KB, data=235KB05-22 10:51:13.673 22911-22915/eu.domain.app I/art: After code cache collection, code=248KB, data=233KB    Increasing code cache capacity to 1024KB05-22 10:51:14.023 22911-23396/eu.domain.app W/ReactNativeJS: Setting a timer for a long period of time, i.e. multiple minutes, is a performance and correctness issue on Android as it keeps the timer module awake, and timers can only be called when the app is in the foreground. See https://github.com/facebook/react-native/issues/12981 for more info.    (Saw setTimeout with duration 1800000ms)05-22 10:51:17.806 22911-25220/eu.domain.app I/MediaCodec: [OMX.Exynos.avc.dec] setting surface generation to 2346087105-22 10:51:17.828 22911-22911/eu.domain.app I/ExoPlayerImpl: Release 2282d90 [ExoPlayerLib/2.8.0] [j5y17lte, SM-J530F, samsung, 24] [goog.exo.core, goog.exo.hls, goog.exo.okhttp]05-22 10:51:17.829 22911-25221/eu.domain.app I/ACodec: [OMX.Exynos.avc.dec] Now Executing->Idle05-22 10:51:17.852 22911-25221/eu.domain.app I/ACodec: [OMX.Exynos.avc.dec] Now Idle->Loaded    [OMX.Exynos.avc.dec] Now Loaded     [OMX.Exynos.avc.dec] Now kWhatShutdownCompleted event : 858505-22 10:51:17.853 22911-25220/eu.domain.app I/MediaCodec: Codec shutdown complete05-22 10:51:17.857 22911-25221/eu.domain.app I/ACodec:  [OMX.Exynos.avc.dec] Now uninitialized     [] Now kWhatShutdownCompleted event : 858505-22 10:51:17.858 22911-25220/eu.domain.app I/MediaCodec: Codec shutdown complete05-22 10:51:17.866 22911-25224/eu.domain.app I/ACodec: [OMX.google.aac.decoder] Now Executing->Idle05-22 10:51:17.873 22911-25224/eu.domain.app I/ACodec: [OMX.google.aac.decoder] Now Idle->Loaded    [OMX.google.aac.decoder] Now Loaded     [OMX.google.aac.decoder] Now kWhatShutdownCompleted event : 858505-22 10:51:17.873 22911-25224/eu.domain.app I/MediaCodec: Codec shutdown complete05-22 10:51:17.878 22911-25224/eu.domain.app I/ACodec:  [OMX.google.aac.decoder] Now uninitialized     [] Now kWhatShutdownCompleted event : 858505-22 10:51:17.878 22911-25224/eu.domain.app I/MediaCodec: Codec shutdown complete05-22 10:51:17.959 22911-22922/eu.domain.app I/art: Background partial concurrent mark sweep GC freed 10383(476KB) AllocSpace objects, 0(0B) LOS objects, 16% free, 82MB/98MB, paused 9.123ms total 301.557ms05-22 10:51:19.265 22911-22911/eu.domain.app I/ExoPlayerImpl: Init 3448cf0 [ExoPlayerLib/2.8.0] [j5y17lte, SM-J530F, samsung, 24]05-22 10:51:19.272 22911-22911/eu.domain.app I/EXO PLAYER: isBuffering - true05-22 10:51:19.288 22911-22911/eu.domain.app I/EXO PLAYER: isBuffering - true05-22 10:51:19.410 22911-25298/eu.domain.app I/ACodec:  [] Now uninitialized05-22 10:51:19.420 22911-25301/eu.domain.app I/ACodec: [] onAllocateComponent05-22 10:51:19.423 22911-25301/eu.domain.app I/OMXClient: MuxOMX ctor05-22 10:51:19.449 22911-25301/eu.domain.app I/ACodec: [OMX.Exynos.avc.dec] Now Loaded05-22 10:51:19.458 22911-25300/eu.domain.app I/MediaCodec: [OMX.Exynos.avc.dec] setting surface generation to 2346087205-22 10:51:19.460 22911-25301/eu.domain.app I/ACodec: can't find wfdsink-exynos-enable05-22 10:51:19.464 22911-25301/eu.domain.app I/ACodec: codec does not support config priority (err -1010)05-22 10:51:19.471 22911-25301/eu.domain.app I/ACodec: [OMX.Exynos.avc.dec] Now Loaded->Idle05-22 10:51:19.478 22911-25301/eu.domain.app I/ACodec: [OMX.Exynos.avc.dec] configureOutputBuffersFromNativeWindow setBufferCount : 9, minUndequeuedBuffers : 505-22 10:51:19.496 22911-25298/eu.domain.app I/ACodec:  [] Now uninitialized05-22 10:51:19.499 22911-25305/eu.domain.app I/ACodec: [] onAllocateComponent05-22 10:51:19.501 22911-25305/eu.domain.app I/OMXClient: MuxOMX ctor05-22 10:51:19.508 22911-25301/eu.domain.app I/ACodec: [OMX.Exynos.avc.dec] Now Idle->Executing05-22 10:51:19.510 22911-25305/eu.domain.app I/ACodec: [OMX.google.aac.decoder] Now Loaded05-22 10:51:19.510 22911-25301/eu.domain.app I/ACodec: [OMX.Exynos.avc.dec] Now Executing05-22 10:51:19.534 22911-25301/eu.domain.app I/ACodec: [OMX.Exynos.avc.dec] Now handling output port settings change05-22 10:51:19.540 22911-25301/eu.domain.app I/ACodec: [OMX.Exynos.avc.dec] configureOutputBuffersFromNativeWindow setBufferCount : 16, minUndequeuedBuffers : 505-22 10:51:19.541 22911-25305/eu.domain.app I/ACodec: codec does not support config priority (err -2147483648)05-22 10:51:19.543 22911-25305/eu.domain.app I/ACodec: [OMX.google.aac.decoder] Now Loaded->Idle05-22 10:51:19.550 22911-25305/eu.domain.app I/ACodec: [OMX.google.aac.decoder] Now Idle->Executing05-22 10:51:19.553 22911-25305/eu.domain.app I/ACodec: [OMX.google.aac.decoder] Now Executing05-22 10:51:19.554 22911-25301/eu.domain.app I/ACodec: [OMX.Exynos.avc.dec] Now Executing05-22 10:51:19.561 22911-25305/eu.domain.app I/ACodec: [OMX.google.aac.decoder] Now handling output port settings change05-22 10:51:19.572 22911-25305/eu.domain.app I/ACodec: [OMX.google.aac.decoder] Now Executing05-22 10:51:19.599 22911-25298/eu.domain.app I/AudioTrack: This process already got info. FadeIn[0] FadeOut[0] FadeInRing[0]05-22 10:51:19.606 22911-22911/eu.domain.app I/EXO PLAYER: isBuffering - false05-22 10:51:19.634 22911-25300/eu.domain.app I/MediaCodec: [OMX.Exynos.avc.dec] setting surface generation to 2346087305-22 10:51:24.107 22911-23396/eu.domain.app W/ReactNativeJS: Setting a timer for a long period of time, i.e. multiple minutes, is a performance and correctness issue on Android as it keeps the timer module awake, and timers can only be called when the app is in the foreground. See https://github.com/facebook/react-native/issues/12981 for more info.    (Saw setTimeout with duration 1800000ms)05-22 10:51:26.949 22911-25300/eu.domain.app I/MediaCodec: [OMX.Exynos.avc.dec] setting surface generation to 2346087405-22 10:51:26.967 22911-22911/eu.domain.app I/ExoPlayerImpl: Release 3448cf0 [ExoPlayerLib/2.8.0] [j5y17lte, SM-J530F, samsung, 24] [goog.exo.core, goog.exo.hls, goog.exo.okhttp]05-22 10:51:26.974 22911-25301/eu.domain.app I/ACodec: [OMX.Exynos.avc.dec] Now Executing->Idle05-22 10:51:26.989 22911-25301/eu.domain.app I/ACodec: [OMX.Exynos.avc.dec] Now Idle->Loaded    [OMX.Exynos.avc.dec] Now Loaded     [OMX.Exynos.avc.dec] Now kWhatShutdownCompleted event : 858505-22 10:51:26.991 22911-25300/eu.domain.app I/MediaCodec: Codec shutdown complete05-22 10:51:26.993 22911-25301/eu.domain.app I/ACodec:  [OMX.Exynos.avc.dec] Now uninitialized05-22 10:51:26.994 22911-25301/eu.domain.app I/ACodec:  [] Now kWhatShutdownCompleted event : 858505-22 10:51:26.995 22911-25300/eu.domain.app I/MediaCodec: Codec shutdown complete05-22 10:51:27.000 22911-25305/eu.domain.app I/ACodec: [OMX.google.aac.decoder] Now Executing->Idle05-22 10:51:27.010 22911-25305/eu.domain.app I/ACodec: [OMX.google.aac.decoder] Now Idle->Loaded    [OMX.google.aac.decoder] Now Loaded     [OMX.google.aac.decoder] Now kWhatShutdownCompleted event : 858505-22 10:51:27.010 22911-25305/eu.domain.app I/MediaCodec: Codec shutdown complete05-22 10:51:27.013 22911-25305/eu.domain.app I/ACodec:  [OMX.google.aac.decoder] Now uninitialized     [] Now kWhatShutdownCompleted event : 858505-22 10:51:27.013 22911-25305/eu.domain.app I/MediaCodec: Codec shutdown complete05-22 10:51:27.926 22911-22911/eu.domain.app I/ExoPlayerImpl: Init c209446 [ExoPlayerLib/2.8.0] [j5y17lte, SM-J530F, samsung, 24]05-22 10:51:27.933 22911-22911/eu.domain.app I/EXO PLAYER: isBuffering - true05-22 10:51:27.953 22911-22911/eu.domain.app I/EXO PLAYER: isBuffering - true

Note: I did an update to exoplayer 2.8.0, the package is using 2.4.0. But it isn't working on both versions.

Is someone familiar with this issue?

Viewing all 28468 articles
Browse latest View live


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