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

Expo SDK 50 update adds android.permission.FOREGROUND_SERVICE_LOCATION

$
0
0

I have an Expo managed react native app. Recently i've updated the Expo SDK version from 48 to 50.

Now when i tried to upload the new android version in play store, i got the below message. It was never there before.

enter image description here

Here is my package.json file content :

"name": "myabcapp","version": "1.23.4","main": "node_modules/expo/AppEntry.js","scripts": {"start": "expo start","android": "expo start --android","ios": "expo start --ios","web": "expo start --web"  },"dependencies": {"@expo/vector-icons": "^13.0.0","@openspacelabs/react-native-zoomable-view": "^2.0.4","@react-native-async-storage/async-storage": "1.17.11","@react-native-community/datetimepicker": "6.7.3","@react-native-community/netinfo": "9.3.7","@react-native-community/slider": "4.4.2","@react-native-firebase/app": "^17.4.1","@react-native-firebase/auth": "^17.4.1","@react-native-google-signin/google-signin": "^9.0.2","@react-navigation/bottom-tabs": "^6.4.0","@react-navigation/drawer": "^6.5.0","@react-navigation/native": "^6.0.13","@react-navigation/native-stack": "^6.9.0","@react-navigation/stack": "^6.3.2","@stripe/stripe-react-native": "0.23.3","apisauce": "^2.1.6","expo": "^48.0.0","expo-apple-authentication": "~6.0.1","expo-build-properties": "~0.6.0","expo-constants": "~14.2.1","expo-dev-client": "~2.2.1","expo-document-picker": "~11.2.2","expo-font": "~11.1.1","expo-image-picker": "~14.1.1","expo-linear-gradient": "~12.1.2","expo-linking": "~4.0.1","expo-localization": "~14.1.1","expo-location": "~15.1.1","expo-notifications": "~0.18.1","expo-splash-screen": "~0.18.2","expo-status-bar": "~1.4.2","expo-tracking-transparency": "~3.0.3","formik": "^2.2.9","html-entities": "^2.3.3","lodash": "^4.17.21","lottie-react-native": "5.1.4","mime": "^3.0.0","moment": "^2.29.4","moment-timezone": "^0.5.41","qs": "^6.11.0","react": "18.2.0","react-native": "0.71.14","react-native-draggable-flatlist": "^3.1.2","react-native-fbsdk-next": "^11.2.0","react-native-geocoding": "^0.5.0","react-native-gesture-handler": "~2.9.0","react-native-google-mobile-ads": "^10.0.1","react-native-maps": "1.3.2","react-native-phone-number-input": "^2.1.0","react-native-progress": "^5.0.0","react-native-razorpay": "^2.3.0","react-native-read-more-text": "^1.1.2","react-native-reanimated": "~2.14.4","react-native-safe-area-context": "4.5.0","react-native-screens": "~3.20.0","react-native-svg": "13.4.0","react-native-webview": "11.26.0","react-native-youtube-iframe": "^2.2.2","yup": "^0.32.11"  },"devDependencies": {"@babel/core": "^7.19.3"  },"private": true

Here is my app.json file content :

{"expo": {"name": "My abc App","slug": "myabcapp","version": "1.23.4","orientation": "portrait","icon": "./assets/icon.png","userInterfaceStyle": "light","plugins": [      ["expo-build-properties",        {"ios": {"useFrameworks": "static"          },"android": {"compileSdkVersion": 33,"targetSdkVersion": 33,"buildToolsVersion": "30.0.2","kotlinVersion": "1.7.10"          }        }      ],"@react-native-firebase/app","./react-native-maps-plugin",      ["@stripe/stripe-react-native",        {"merchantIdentifier": "","enableGooglePay": false        }      ],      ["expo-document-picker",        {"appleTeamId": "M34O29V5ZF","iCloudContainerEnvironment": "Production"        }      ],      ["expo-notifications",        {"icon": "./assets/icon96x96.png","color": "#ffffff","mode": "production"        }      ],      ["expo-tracking-transparency",        {"userTrackingPermission": "My Abc App wants to track you to collect IDFA to deliver personalised ads."        }      ],"@react-native-google-signin/google-signin",      ["react-native-fbsdk-next",        {"appID": "471576785566340","clientToken": "7c51e110a70788y5418478cebdcbcf7d","displayName": "My Abc App","advertiserIDCollectionEnabled": false,"autoLogAppEventsEnabled": false,"isAutoInitEnabled": true        }      ],"expo-localization"    ],"splash": {"image": "./assets/splash.png","backgroundColor": "#f85c70","resizeMode": "cover"    },"notification": {"icon": "./assets/icon96x96.png","color": "#ffffff","iosDisplayInForeground": true,"androidMode": "default"    },"updates": {"fallbackToCacheTimeout": 0    },"assetBundlePatterns": ["**/*"],"ios": {"bitcode": "Debug","usesAppleSignIn": true,"supportsTablet": true,"bundleIdentifier": "com.myabcapp","buildNumber": "30","usesIcloudStorage": true,"infoPlist": {"NSUserTrackingUsageDescription": "My Abc App wants to track you to collect IDFA to deliver personalised ads.","NSCameraUsageDescription": "My Abc App uses the camera to capture and upload user profile image and Listing Image to the server.","NSPhotoLibraryUsageDescription": "My Abc App needs access to the photo library to select and upload user profile image and Listing Image to the server.","NSPhotoLibraryAddUsageDescription": "My Abc App needs access to the photo library to select and upload user profile image and Listing Image to the server.","NSLocationWhenInUseUsageDescription": "My Abc App usages device location on listing information, Listing search Data and User information.","NSLocationAlwaysAndWhenInUseUsageDescription": "My Abc App usages device location on listing information, Listing search Data and User information.","NSLocationAlwaysUsageDescription": "My Abc App uses device location on listing information, Listing search Data and User information.","NSMicrophoneUsageDescription": "My Abc App uses your microphone while taking video of your product for uploading in listing information.","CFBundleAllowMixedLocalizations": true,"UIBackgroundModes": ["remote-notification"],"SKAdNetworkItems": [          {"SKAdNetworkIdentifier": "cstr6suwn8.skadnetwork"          },          {"SKAdNetworkIdentifier": "v9wttpbfk4.skadnetwork"          },          {"SKAdNetworkIdentifier": "n38lu8286g.skadnetwork"          }        ]      },"googleServicesFile": "./GoogleService-Info.plist","config": {"googleMapsApiKey": "AIzaSyBpEfX_PyYbLxGa07zjvLJbZefx","usesNonExemptEncryption": false      }    },"android": {"package": "com.myabcapp","config": {"googleMaps": {"apiKey": "AIzaSyBpEfX_PyYbLxGa07zjvLJbZefx"        }      },"googleServicesFile": "./google-services.json","adaptiveIcon": {"foregroundImage": "./assets/adaptive-icon.png","backgroundColor": "#fff"      },"permissions": ["CAMERA","CAMERA_ROLL","MEDIA_LIBRARY","READ_EXTERNAL_STORAGE","WRITE_EXTERNAL_STORAGE","RECORD_AUDIO","READ_PHONE_STATE","READ_CONTACTS","LOCATION","ACCESS_COARSE_LOCATION","ACCESS_FINE_LOCATION","RECEIVE_BOOT_COMPLETED","com.google.android.gms.permission.AD_ID","android.permission.INTERNET","POST_NOTIFICATIONS"      ],"versionCode": 31    },"web": {"favicon": "./assets/favicon.png"    },"scheme": "myabcapp","extra": {"eas": {"projectId": "47c5dce0-69e9-4ebf-a637-89k9879j67j8"      }    }  },"react-native-google-mobile-ads": {"android_app_id": "ca-app-pub-789768768767698~899798798","ios_app_id": "ca-app-pub-987989879879~9879879798"  }}

Can anybody tell me what is happening and why is happening? Also how can i overcome this?

Thanks in advance.


How to use different package name for react-native project

$
0
0

when i try to release my app on google play store this error show up ( https://ibb.co/6mJnn2m ) how to fix this. i used react-native to develop the project

i tried replacing all the places that used 'WheelbarrowProductionnew' to new name but then its throw errors when compilinghttps://ibb.co/h9qK4tG

how to make my react-native app build with expo compatible with old version of ios

$
0
0

I'm building a app with expo and i want the app can be compatible with older version iphone and android ( for exemple i want my to be compatible with ios 12 till ios 17. some have idea? thanks

try documentation but no fund solution

React Native Gradle build getting failed due to react-native-pdf package

$
0
0

I am currenly tryign to build React native app on an ubuntu system . I am facing build error when I am including react-native-pdf package

The current character read is 'i' with an int value of 105Unable to determine the current character, it is not a string, number, array, or objectline number 1index number 0info Run CLI with --verbose flag for more details.^. Output: info Run CLI with --verbose flag for more details.

  • Try:

Run with --stacktrace option to get the stack trace.Run with --info or --debug option to get more log output.Run with --scan to get full insights.

BUILD FAILED in 2s

at makeError (/home/frostdev7506/Documents/greattr/GreattrNative/node_modules/@react-native-community/cli-platform-android/node_modules/execa/index.js:174:9)at /home/frostdev7506/Documents/greattr/GreattrNative/node_modules/@react-native-community/cli-platform-android/node_modules/execa/index.js:278:16at processTicksAndRejections (node:internal/process/task_queues:96:5)at async runOnAllDevices (/home/frostdev7506/Documents/greattr/GreattrNative/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:109:5)at async Command.handleAction (/home/frostdev7506/Documents/greattr/GreattrNative/node_modules/@react-native-community/cli/build/index.js:142:9)

info Run CLI with --verbose flag for more details.

I tried different older versions of react-native-pdf package but having similar issue. When I remove the package and clean install node modules again , I am able to build without any issue . Even ./gradlew clean is not working. I have tried all the solutions like

deleting android/build folderremvoing and clean installing node modulesrunning gradlew -clean (not working )

I am also linking my package.json for reference

{"name": "--------","version": "0.2.8","private": true,"scripts": {"android": "react-native run-android","ios": "react-native run-ios","start": "react-native start","test": "jest","clean": "react-native-clean-project","lint": "eslint ."  },"dependencies": {"@react-native-async-storage/async-storage": "^1.17.11","@react-native-community/datetimepicker": "^6.7.1","@react-native-community/masked-view": "^0.1.11","@react-native-firebase/app": "^16.5.0","@react-native-firebase/messaging": "^16.5.0","@react-native-picker/picker": "^2.4.8","@react-navigation/bottom-tabs": "^6.5.2","@react-navigation/drawer": "^6.5.6","@react-navigation/native": "^6.1.1","@react-navigation/native-stack": "^6.9.6","@react-navigation/stack": "^6.3.10","axios": "^1.2.2","crypto-js": "^4.1.1","i": "^0.3.7","i18next": "^22.4.6","lottie-react-native": "^6.4.0","npm": "^9.4.1","react": "18.1.0","react-hook-form": "^7.46.0","react-i18next": "^12.1.1","react-native": "0.70.6","react-native-blob-util": "^0.17.1","react-native-crypto-js": "^1.0.0","react-native-datepicker": "^1.7.2","react-native-deck-swiper": "^2.0.15","react-native-device-info": "^10.8.0","react-native-dotenv": "^3.4.7","react-native-elements": "^3.4.3","react-native-fs": "^2.20.0","react-native-gesture-handler": "^2.8.0","react-native-image-picker": "^4.10.2","react-native-linear-gradient": "^2.8.2","react-native-loading-dots": "^1.3.2","react-native-localize": "^2.2.4","react-native-modal": "^13.0.1","react-native-pdf": "^6.7.1","react-native-push-notification": "^8.1.1","react-native-safe-area-context": "^4.4.1","react-native-screens": "^3.20.0","react-native-simple-toast": "^2.0.0","react-native-splash-screen": "^3.3.0","react-native-svg": "^13.12.0","react-native-swiper": "^1.6.0","react-native-table-component": "^1.2.2","react-native-vector-icons": "^9.2.0","react-navigation": "^4.4.4"  },"devDependencies": {"@babel/core": "^7.12.9","@babel/runtime": "^7.12.5","@react-native-community/eslint-config": "^2.0.0","babel-jest": "^26.6.3","eslint": "^7.32.0","jest": "^26.6.3","metro-react-native-babel-preset": "0.72.3","react-native-clean-project": "^4.0.1","react-test-renderer": "18.1.0"  },"jest": {"preset": "react-native"  }}

Bluetooth tests with React-Native

$
0
0

Im trying to use bluetooth (to connect a vibration sensor to the app) on a react-native application.I tried using react-native-ble-plx but I have a problem: when I emulate an Android Device with AVD Manager from Android Studio, how is bluetooth suppose to work? Does my PC bluetooth transmit informations to the emulated device?

Upgrading to react native 0.71.16 android build error: Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'

$
0
0

I have been upgrading my app from react native 0.64.1 to 0.71.16.

I followed the steps outlined in the react-native upgrade helper. I have the IOS version running fine, but the android version will not build. It continues to fail with this exception.error

I am fairly new to react native, and have spent the last 2 days troubleshooting this issue without success.

Some more info:

javac version: 11.0.23

build.gradle

app/build.gradle

package.json

react-native info

echo $ANDROID_HOME = /Users/---/Library/Android/sdkecho $JAVA_HOME = /Library/Java/JavaVirtualMachines/zulu-11.jdk/Contents/Home

Android Studio Info:SDK: Android SDK platform 33Google APIs ARM 64 v8a System ImageSDK Tools: 33.0.0

Any help would be greatly appreciated.

I expected the android app to build without error.

Android Alert style overriding React Native Development Menu

$
0
0

I am trying to style the Android alert dialog in React Native. What I've done is this:

  1. I've added a special style for the App Theme:
<resources><!-- Base application theme. --><style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar"><!-- Customize your theme here. --><item name="android:textColor">#000000</item><item name="android:alertDialogTheme">@style/AlertDialogTheme</item></style><style name="SplashTheme" parent="Theme.AppCompat.NoActionBar"><item name="android:windowBackground">@drawable/background_splash</item></style></resources>
  1. That style looks as such:
<?xml version="1.0" encoding="utf-8"?><resources><style name="AlertDialogTheme" parent="Theme.AppCompat.Dialog.Alert"><item name="android:background">#FFFFFF</item><item name="android:textColor">#0078D4</item><item name="android:textColorPrimary">#000000</item><item name="android:buttonBarNegativeButtonStyle">@style/NegativeButtonStyle</item><item name="android:buttonBarPositiveButtonStyle">@style/PositiveButtonStyle</item></style><style name="NegativeButtonStyle" parent="Widget.AppCompat.Button.ButtonBar.AlertDialog"><item name="android:textColor">#0078D4</item><item name="android:textAllCaps">false</item></style><style name="PositiveButtonStyle" parent="Widget.AppCompat.Button.ButtonBar.AlertDialog"><item name="android:textColor">#0078D4</item><item name="android:textAllCaps">false</item></style></resources>

Now, when I trigger the Alert in React Native, this looks great! However, when I try to pull up the debug menu to enable reloading/debugging/etc., it just looks blank:

Blank debug menu on React Native.

Can anyone tell me if:

  1. There's a better way to do this styling so that it doesn't impact the developer menu
  2. There's a way to modify my existing custom style to re-light the developer menu in the app?

I have verified that removing the style fixes the issue, so this is the cause.

Thanks!

Im trying to use BleManager but when i declare a instance of BleManager, " TypeError: Cannot read property 'createClient' of null, js engine: hermes "

$
0
0

Im doing a project using React Native, and i trying to use the library react-native-ble-plx, and when i declare a instance of the BleManager, i receive the error: "TypeError: Cannot read property 'createClient' of null, js engine: hermes", can anyone help me?

import React, {useEffect, useState} from 'react'import { View, Text, LogBox, Easing, Empty } from 'react-native'import base64 from 'react-native-base64';import { BleManager } from 'react-native-ble-plx';const manager = new BleManager()const EspConnection = ({navigation}) => {    return (<View><Text>Salve vei</Text></View>    )}export {EspConnection}

its just thay my code, and i can't declare the BleManager

I tried to list all bluetooth conections in my mobile device to connect with them to send databut i can't even declare the BleManager class


React Native Expo hide android navigation bar

$
0
0

enter image description here

I'm developing an app and I want users to not be able to exit the app via the Android navigation bar, what can I do?

In the app.json file, I'm putting the following:enter image description here

When I'm in development using npx expo start, the navigation bar behaves as expected. But when I create an APK, the bar always remains visible.

To have the bar always hidden.

React Native build failed in android, @react-native-community/cli-platform-android /native_modules.gradle' line: 130

$
0
0

I've upgraded my ReactNative project from 0.59 to 0.61.2 iOS is building fine but in android i'm facing the issue in @react-native-community/cli-platform-android module.

My settings.gradle file

apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)

My build.gradle file

apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)

I get the following error while building the app.

> Task :app:generatePackageList FAILEDFAILURE: Build failed with an exception.* Where:Script '/Users/yashwanth_c/Documents/projects/MobileApp/node_modules/@react-native-community/cli-platform-android/native_modules.gradle' line: 130* What went wrong:Execution failed for task ':app:generatePackageList'.> ReactNativeModules$_generatePackagesFile_closure3* 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.5/userguide/command_line_interface.html#sec:command_line_warningsBUILD FAILED in 5m 21s4 actionable tasks: 4 executed

As always i've cleaned the cache and deleted the node_module folder, tried many times but no luck. Also googled for more than a week but still not able to find a fix, any advice is appreciated.

Execution failed for task ':app:compileDebugKotlin'. React native update

$
0
0

I've just updated React Native from 0.71.11 to 0.73.7 following the instructions from the React Native upgrade helper. When I try to run 'yarn android', I get this error

error: android/app/src/main/java/com/useapp/MainApplication.kt:18:41 Return type of 'getPackages' is not a subtype of the return type of the overridden member 'protected/protected and package/ abstract fun getPackages(): (MutableList<ReactPackage!>..kotlin.collections.List<ReactPackage!>?) defined in com.facebook.react.defaults.DefaultReactNativeHost'e: /android/app/src/main/java/com/useapp/MainApplication.kt:19:24 Type mismatch: inferred type is ArrayList<ReactPackage!>! but List was expectede: android/app/src/main/java/com/useapp/MainApplication.kt:35:13 Unresolved reference: ReactHost

FAILURE: Build failed with an exception.

  • What went wrong:Execution failed for task ':app:compileDebugKotlin'.

A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkActionCompilation error. See log for more details

MainApplication.kt

package xxx.xxximport android.app.Applicationimport com.facebook.react.PackageListimport com.facebook.react.ReactApplicationimport com.facebook.react.ReactNativeHostimport com.facebook.react.ReactPackageimport com.facebook.react.defaults.DefaultReactNativeHostimport com.facebook.soloader.SoLoaderimport java.util.Listimport com.vinzscam.reactnativefileviewer.RNFileViewerPackageimport com.oblador.vectoricons.VectorIconsPackageclass MainApplication : Application(), ReactApplication {    override val reactNativeHost: ReactNativeHost =        object : DefaultReactNativeHost(this) {            override fun getPackages(): List<ReactPackage> {                return PackageList(this).packages // Use PackageList to get packages            }            override fun getJSMainModuleName(): String = "index"            override fun getUseDeveloperSupport(): Boolean = BuildConfig.DEBUG            override val isNewArchEnabled: Boolean = BuildConfig.IS_NEW_ARCHITECTURE_ENABLED            override val isHermesEnabled: Boolean = BuildConfig.IS_HERMES_ENABLED        }    override fun onCreate() {        super.onCreate()        SoLoader.init(this, false)        if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) {            // If you opted-in for the New Architecture, we load the native entry point for this app.            ReactHost.load() // This seems to be a custom function, make sure it's defined correctly        }        // ReactNativeFlipper.initializeFlipper(this, reactNativeHost.reactInstanceManager)        // This line is commented out as ReactNativeFlipper seems unresolved in your code    }}

MainActivity.kt

package xxx.xxximport com.facebook.react.ReactActivityimport com.facebook.react.ReactActivityDelegateimport com.facebook.react.defaults.DefaultReactActivityDelegateimport android.os.Bundleclass MainActivity : ReactActivity() {    /**     * Returns the name of the main component registered from JavaScript. This is used to schedule     * rendering of the component.     */    override fun getMainComponentName(): String = "xxx"    override fun onCreate(savedInstanceState: Bundle?) {        super.onCreate(savedInstanceState)    }    /**     * Returns the instance of the [ReactActivityDelegate]. We use [DefaultReactActivityDelegate]     * which allows you to enable New Architecture with a single boolean flags [fabricEnabled]     */    override fun createReactActivityDelegate(): ReactActivityDelegate =        DefaultReactActivityDelegate(this, "useapp") // Provide mainComponentName as a string}

I've tried to mess with both files, but so far without success.

Apk stopped triggring api on release mode

$
0
0

API is not working on release mode after implementation of websocket.In React native

Added CROS policy and cleared trafic in android also.debug mode is working fine. Can you help

Note: both axios and socket server are different.

Native android component in React Native doesn't have his own space like height

$
0
0

I'm trying to implement a native android component written in Kotlin and XML for react-native.Kotlin class:

class AffirmButtonManager(    private val callerContext: ReactApplicationContext) : SimpleViewManager<ConstraintLayout>() {    override fun getName() = REACT_CLASS    companion object {        const val REACT_CLASS = "AffirmButtonManager"    }    override fun createViewInstance(reactContext: ThemedReactContext): ConstraintLayout {        val inflater = reactContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE) as LayoutInflater        val constraintLayout = inflater.inflate(R.layout.fragment_face_capture, null) as ConstraintLayout        return constraintLayout    }}

XML file (fragment_face_capture.xml)

<?xml version="1.0" encoding="utf-8"?><androidx.constraintlayout.widget.ConstraintLayout    xmlns:android="http://schemas.android.com/apk/res/android"    xmlns:app="http://schemas.android.com/apk/res-auto"    android:layout_width="wrap_content"    android:layout_height="wrap_content"><TextView        android:id="@+id/text1"        android:layout_width="wrap_content"        android:layout_height="wrap_content"        android:text="This is text 1"        android:textColor="#C0C0C0"         app:layout_constraintLeft_toLeftOf="parent"        app:layout_constraintTop_toTopOf="parent" /><TextView        android:id="@+id/text2"        android:layout_width="wrap_content"        android:layout_height="wrap_content"        android:text="This is text 2"        android:textColor="#A9A9A9"         app:layout_constraintLeft_toLeftOf="parent"        app:layout_constraintTop_toBottomOf="@+id/text1" /></androidx.constraintlayout.widget.ConstraintLayout>

Importing this android component:

import {requireNativeComponent} from 'react-native';const AffirmButtonManager = requireNativeComponent('AffirmButtonManager',) as any;export default AffirmButtonManager;

and using this component in react native like this:

  return (<View style={{width: 100, height: 100}}><AffirmButtonManager style={{width: '100%', height: '100%'}} /></View>  );

And turned out that without setting width and height to a view and full screen width and height to my custom component the content of the custom component isn't visible.

With width and height:enter image description here

Without width and height for my custom component.enter image description here

Can you guys explain how does it work and what should I do in order to make content from my custom component visible like a simple div and p html tags (or View and Text)

React native gradle build error -> temporary workspace copy error

$
0
0

I am currently trying to test out google login with expo, and I am facing the following error when using expo run:android

A problem occurred configuring project ':gradle-plugin'. Multiple build operations failed.  Could not move temporary workspace (C:\Users\<username>\.gradle\caches\transforms-4\04b2391c437efaa204e156de4d548a2b-cda26d44-b981-4798-8f46-71509d888824) to immutable location (C:\Users\<username>\.gradle\caches\transforms-4\04b2391c437efaa204e156de4d548a2b)

there are multiple such failed move operations. I tried stopping gradle and deleting the cache, it still did not work. I have tried running the command as admin still no go. I ran gradlew --stacktrace this is what I got but cannot understand what that means

     * Exception is:    org.gradle.api.ProjectConfigurationException: A problem occurred configuring project ':gradle-plugin'.    at org.gradle.configuration.project.LifecycleProjectEvaluator.wrapException(LifecycleProjectEvaluator.java:84)    at org.gradle.configuration.project.LifecycleProjectEvaluator.addConfigurationFailure(LifecycleProjectEvaluator.java:77)    at org.gradle.configuration.project.LifecycleProjectEvaluator.access$500(LifecycleProjectEvaluator.java:55)    at org.gradle.configuration.project.LifecycleProjectEvaluator$EvaluateProject.lambda$run$0(LifecycleProjectEvaluator.java:111)    at org.gradle.api.internal.project.DefaultProjectStateRegistry$ProjectStateImpl.lambda$applyToMutableState$1(DefaultProjectStateRegistry.java:407)    at org.gradle.api.internal.project.DefaultProjectStateRegistry$ProjectStateImpl.lambda$fromMutableState$2(DefaultProjectStateRegistry.java:430)    at org.gradle.internal.work.DefaultWorkerLeaseService.withReplacedLocks(DefaultWorkerLeaseService.java:360)    at org.gradle.api.internal.project.DefaultProjectStateRegistry$ProjectStateImpl.fromMutableState(DefaultProjectStateRegistry.java:430)    at org.gradle.api.internal.project.DefaultProjectStateRegistry$ProjectStateImpl.applyToMutableState(DefaultProjectStateRegistry.java:406)    at org.gradle.configuration.project.LifecycleProjectEvaluator$EvaluateProject.run(LifecycleProjectEvaluator.java:100)    at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:29)    at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:26)    at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)    at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)    at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)    at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)

I have not made any changes to the config files except the following

  • /android/gradle/wrapper/gradle-wrapper.properties -> distributionUrl=https://services.gradle.org/distributions/gradle-8.6-all.zip -> was 8.0.1
  • /android/build.gradle -> classpath('com.android.tools.build:gradle:8.6') -> was 7.4.2

I am at a dead end and could use some help. Any help is appreciated. I am using gradle version 8.6-all and Java vesion 21.0.2

DEVELOPER_ERROR with react native google-signin on Play Store release android

$
0
0

I'm currently encountering a DEVELOPER_ERROR on the Play Store release version of my app, even though it works fine in debug and APK builds. I have added the SHA-1 fingerprint from Release -> Setup -> App signing to Firebase by extracting it from the Upload key certificate, but the issue persists.

I'm looking for suggestions on how to resolve this issue and ensure that the Google sign-in functionality works properly in the release version of the app. Any insights or guidance would be greatly appreciated. Thank you!

Environment:

"react": "18.2.0","react-native": "0.72.11","@react-native-google-signin/google-signin": "^10.0.1",

expo-payments-stripe doesn't work on real android device

$
0
0

I try to use https://docs.expo.io/versions/v40.0.0/sdk/payments/ in my project. It is stated that "Stripe is supported in the managed workflow for Android" however it crashes for me on a real device. It works perfectly on the emulator and on the device with Expo Go but it doesn't work as a standalone installed apk created by "expo build:android -t apk". I have uploaded my reproducer here https://bitbucket.org/zahoranszky/stripe/src/master/ If you run it crashes all the time. It is the setOptionsAsync method. I found many complaints about it on the net but none of the suggested solutions worked for me.

Any idea how to fix this issue?

Thx

2 files found with path 'lib/arm64-v8a/libc++_shared.so' from inputs...-react native

$
0
0

I am trying to enable package of ffmpeg-kit-react-native in react-native.The sample commands given in the example executes successfully. But I want to use libwebp for converting gif files to webp which is under package named video. As instrcuted . I have to enable the package to use some libraries.

2.2.1 Enabling a Package on AndroidEdit android/build.gradle file and add the package name in ext.ffmpegKitPackage variable.

ext {   ffmpegKitPackage = "<package name>"}

So I added a line in the node_module/ffmpeg-kit-react-native/android/build.gradle

android {  compileSdkVersion 30  defaultConfig {    minSdkVersion safeExtGet('ffmpegKitPackage', 'https').contains("-lts") ? 16 : 24    targetSdkVersion 30    versionCode 451    versionName "4.5.1"  }  buildTypes {    release {      minifyEnabled false    }  }  lintOptions {    disable 'GradleCompatible'  }  compileOptions {    sourceCompatibility JavaVersion.VERSION_1_8    targetCompatibility JavaVersion.VERSION_1_8  }  rootProject.ext.ffmpegKitPackage = "video" // Added this line here }

Error:

* What went wrong:Execution failed for task ':app:mergeDebugNativeLibs'.> A failure occurred while executing com.android.build.gradle.internal.tasks.MergeJavaResWorkAction> 2 files found with path 'lib/arm64-v8a/libc++_shared.so' from inputs:      - C:\Users\ADMIN\.gradle\caches\transforms-3\7403ebe5571a2ce5a6a5fc9876af4814\transformed\jetified-react-native-0.66.4\jni      - C:\Users\ADMIN\.gradle\caches\transforms-3\4be54e44fe38656741a8345504588323\transformed\jetified-ffmpeg-kit-video-4.5.1-1\jni     If you are using jniLibs and CMake IMPORTED targets, see     https://developer.android.com/r/tools/jniLibs-vs-imported-targets

I have tried ./gradlew clean but problem is still there.How to fix this error? Thanks

Execution failed for task ':app:mergeDebugNativeLibs'. in react native

$
0
0

I installed react-native-pdf and now when I run "npx react-native run-android", it fails with the following:

* What went wrong:Execution failed for task ':app:mergeDebugNativeLibs'.> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade> More than one file was found with OS independent path 'lib/x86/libc++_shared.so'

Can anyone help me use the package react-native-pdf?

ive

Duplicate class com.google.android.play.core.appupdate.AppUpdateInfo found in modules issue

$
0
0

Hi I am facing this issue "Duplicate class com.google.android.play.core.install.InstallState found in modules jetified-app-update-2.0.1-runtime.jar (com.google.android.play:app-update:2.0.1) and jetified-core-1.8.0-runtime.jar (com.google.android.play:core:1.8.0)" while installing debug build.I am using "sp-react-native-in-app-updates": "^1.1.1" this library for in app updates.Anyone who has solution?

Well I tried to clean gradlew. upgrading to new version. implementation 'com.google.android.play:core:1.7.3' removed this from app.gradle

React-Native: How can I load Pdf with Document Picker and then show the document in the view without getting error Permission Denial?

$
0
0

I've been trying to Show PDF with react-native-pdf, I keep getting problem with access to content:// because the access is denied by Permission Denial: reading com.android.providers.downloads.DownloadStorageProvider ...

This is how I pick the document:

function pickFile() {    DocumentPicker.pickSingle({        type: \[DocumentPicker.types.allFiles\],    })    .then((response) =\> {        console.log(response);        setPickedFile(response);    })    .catch((error) =\> {        console.error(error);    });}

I'm expecting can use that response to show the pdf with view.But I have no idea what can I do.

Viewing all 29593 articles
Browse latest View live


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