React Native application crashes on Android 12 and above when run on an emulator

Currently in the process of creating a music application named Wavelet. Listed below are my dependencies: package.json

Typically, I debug on an Android 11 emulator; however, when switching to an Android 12 emulator or using my physical device running on Android 12L, it crashes.

I managed to obtain this log from my physical device.

Answer №1

Open up the build.gradle file and locate the section for dependencies

You will need to find the line related to

androidx.work:work-runtime-ktx...

Make sure to add or update it with the following code:

// workaround for issue on Android API 31
implementation "androidx.work:work-runtime-ktx:2.7.0"

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Make sure to query MySQL database to see if the data already exists, and if not, go ahead and insert it using PHP

I am encountering difficulties in writing PHP code to insert values into a MySQL database only if they do not already exist. I am transmitting an array from JavaScript to a PHP file using $.ajax with the POST method. Do I need to include an additional &a ...

Implementing tether in webpack: A step-by-step guide

My webpack application, which I am using with Laravel Elixir, includes a 'bootstrap.js' file for initializing all libraries. Here is the content of the file: window._ = require('lodash'); /** * We'll load jQuery and the Bootstra ...

Parsing JSON data with JavaScript

I'm currently working with this JSON data, attempting to extract all the keys and values. The challenge I'm facing is that some of these keys contain inner objects with additional key-value pairs. Is it possible to achieve this recursively using ...

Obtaining and storing an array of JSON data from Socket.IO

Upon receiving an array of objects from my server, it looks like this: Log.i(TAG, "Destinos obtenidos: "+ destinosRuta); The log value is - Destinos obtenidos [{"Latitud":41.40404,"nombreDestino":"Barcelona","IDR":5,"IDD":6,"Longitud":2.168679},{"Latit ...

Accessing a subcollection with DocumentSnapshot in Firebase using JS9

Just had a quick question. Is anyone familiar with how to achieve something similar using Firebase JavaScript v9? Essentially, I have a `userDoc` that is a DocumentSnapshot and I need to access a sub-collection with the document snapshot. Here's the c ...

Passing props from a Higher Order Component (HOC) to child components in next.js using get

I am looking to implement an HOC (Higher Order Component) for pages within my application that can provide some information stored in local storage, especially when the pages are not being server-side rendered. The challenge I'm encountering is that ...

When attempting to start a new React Native project using npx, I encountered an error stating "react-native: command not found"

After running 'npx react-native init MyProject' for the first time, it prompted that react-native would be downloaded, but I mistakenly terminated the process. Now, when I try again, it shows an error saying 'react-native: command not found& ...

Attempting to utilize express-load in conjunction with express 4

As a beginner in NodeJS, I encountered a problem with my code. Let me show you the issue. I am trying to load the application in the MVC pattern using express-load, but I am facing an error when defining the load order. Here is the important part of app. ...

Browsing a Collection of Objects within an Array in JavaScript

After making an ajax request to load a JSON file and parsing it to store a reference to the object, I encountered issues while trying to loop through the object due to its structure. Below is a snippet of the JSON data that I am working with: { "marker ...

Is there a way to assign the chosen option from a dropdown list to an input field in Vue 3?

I am working with a list that is returned from an API request. I have a text input field where I can search for items in the list, and the results are displayed dynamically as I type. My goal is to be able to select an option from the list and display the ...

Setting the region in Firebase functions is not supported

I have encountered an issue while trying to set a deployment region for my functions. The documentation states that I should use the following code: var functions = firebase.app().functions('us-west2'); However, when I implement this and attemp ...

Edit data within an Angular table on-the-fly

Currently, I am in the process of developing a dynamic table that may have an unknown number of columns and rows. My goal is to incorporate inline editing with inline templates using ng-include. The first issue at hand: I am faced with the challenge of u ...

drag and zoom feature similar to Google Maps

Is it possible to create draggable effects similar to Google Maps on a group of div elements? Are there any JavaScript libraries available that can replicate this functionality? ...

The React Native example is not compatible for running in a web browser

Snippet of code I am attempting to execute: https://github.com/nshaposhnik/react-native-maps-example Currently using Windows 10. My process: Downloaded the code Extracted the files to a folder Set up by performing the following steps after deletin ...

Encountering an issue that says "java.lang.IllegalStateException: Printing can only be done from an activity"?

I encountered an error "java.lang.IllegalStateException: Can print only from an activity" while utilizing the Android 4.4 printing API. Will it function on all Android devices above 4.4? This is my code: public class MainActivity extends Activity { ...

The latest update to andt version 5.20.0 has encountered an issue with the FastColor.js file located in the node_modules. An error has been identified at line 56

After updating to the latest version of [email protected], I utilized npm i antd --save --legacy-peer-deps without any issues. However, upon running npm start, I encountered an error in the console. Is anyone else experiencing this problem? ERROR in . ...

What is the best way to customize Node.js configuration when it is executed through npm?

Check out this documentation on node config: node myapp.js --NODE_CONFIG='{"Customer":{"dbConfig":{"host":"customerdb.prod"}}}' However, if I run a npm script, all parameters will be passed to npm instead of nodejs, right? How can I pass the -- ...

Verify the presence of an email in MongoDB in real-time as it is being

This particular project utilizes js, mongoose, and node.js. If an email that is already in use is attempted during registration to create an account, the page will reload, all fields will be cleared, and a pop-up message using AJAX will notify the user tha ...

Geoserver does not have the 'Access-Control-Allow-Origin' header

map.on('singleclick', function (evt) { document.getElementById('info').innerHTML = "Looks like you need to redo this :) !!!"; var view = map.getView(); var viewResolution = view.getResolution(); var source = hcm.getSource(); var url = s ...

Include a for loop in the line graph on Google Charts

I need help figuring out how to use a for loop to iterate over data in order to populate my Google Chart. The code snippet below outlines what I've already tried. var line_div = '2016-08-04,4|2016-08-05,7|2016-08-06,9|2016-08-07,2'; var lin ...