Fixing Error: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent. When Generating APK or Executing in Android.

Fixing Error: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent. When Generating APK or Executing in Android.

Tiempo de lectura: < 1 minuto Reading time: < 1 minutes If you encounter the following error when generating or running your APK: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent. You can solve it by adding the following: First, go to your build.gradle file. Scroll down to the dependencies ... Read more

Fixing INSTALL_PARSE_FAILED_MANIFEST_MALFORMED Error when Upgrading to targetSDKVersion 31 in Android

Fixing INSTALL_PARSE_FAILED_MANIFEST_MALFORMED Error when Upgrading to targetSDKVersion 31 in Android

Tiempo de lectura: < 1 minuto Reading time: < 1 minutes If changing the target version of Android to 31 gives us the following error: Installation did not succeed.The application could not be installed: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED Installation failed due to: 'INSTALL_PARSE_FAILED_MANIFEST_MALFORMED: Failed parse during installPackageLI: /data/app/vmdl620487180.tmp/base.apk (at Binary XML file line #82): We need to do the following: Go to the AndroidManifest.xml ... Read more

Error when loading an image with svg extension (Flutter-Dart): Failed to detect image file format using the file header – Invalid image data.

Error when loading an image with svg extension (Flutter-Dart): Failed to detect image file format using the file header – Invalid image data.

Tiempo de lectura: 2 minutos Reading time: 2 minutes When trying to display an image with the svg extension, I encountered the following error: @override Widget build(BuildContext context) { return Scaffold( body: Center( child: Column( mainAxisAlignment: MainAxisAlignment.center, children: [ Text(“WELCOME to DevCodeLight”), Container( width: 200.0, height: 200.0, child: Image.asset(‘lib/images/android/splahs_android.svg’)), ], ), ), ); } I solved it by adding the … Read more

Adding Location Permissions in React Native

Adding Location Permissions in React Native

Tiempo de lectura: 2 minutos Reading time: 2 minutes Good afternoon, In today’s tutorial, I’m going to show you how to enable location permissions on your device. Let’s get started First, we import the API import * as Location from ‘expo-location’; Inside our component, we add the following function that will be responsible for enabling location permissions. const [errorMsg, setErrorMsg] … Read more

Send an Email or Make a Phone Call from Your React Native App

Send an Email or Make a Phone Call from Your React Native App

Tiempo de lectura: < 1 minuto Reading time: < 1 minute Today I’m going to show you how to send an email or make a phone call from React Native. To use this function, we’ll import the Linking library from React Native: https://reactnative.dev/docs/linking import { Linking } from "react-native"; To implement a phone call, we’ll use the same syntax as in ... Read more

Flutter Project in VSCode

Flutter Project in VSCode

Tiempo de lectura: 3 minutos Reading Time: 4 minutes Today I’m going to show you how to open a Flutter project in VSCode to work in this environment. First, let’s install the Flutter SDK on our PC: Go to the official website https://docs.flutter.dev/get-started/install/windows Choose the corresponding installation: Next, extract the flutter folder to the directory where you want to install … Read more

Fixing error ‘Could not find method compile() for arguments [com.facebook.react:react-native:X]’ when creating APK in React Native

Fixing error ‘Could not find method compile() for arguments [com.facebook.react:react-native:X]’ when creating APK in React Native

Tiempo de lectura: < 1 minuto Reading time: < 1 minute If you encounter the following error when generating the APK: Could not find method compile() for arguments [com.facebook.react:react-native:X] The first thing to do is to locate the error being produced. In this case, it indicates that the compile method is not found in the react-native-locale library. This is indicated here: ... Read more

Play YouTube Videos without YouTube API (No API Key) in React Native

Play YouTube Videos without YouTube API (No API Key) in React Native

Tiempo de lectura: 2 minutos Reading time: 2 minutes I’m going to show you how we can play YouTube videos without using the YouTube library for React Native. This way, you won’t have to add an API Key to play videos. First of all, we need to create a Screen with a WebView. To do this, we first install WebView: … Read more

Recovering Forgotten Password with Flutter and Firebase.

Recovering Forgotten Password with Flutter and Firebase.

Tiempo de lectura: < 1 minuto Reading time: < 1 minute To easily reset the password, follow these simple steps. First, we will create the design of the password recovery screen where we will add a text box to enter the email to which the password reset email will be sent. Additionally, we will add a button to perform the sending ... Read more