Create Pagination Component for React

Create Pagination Component for React

Tiempo de lectura: 2 minutos Today I wanted to share a simple way to implement a pagination component using Material-UI in React. This component is useful when working with extensive lists, allowing navigation between different pages. First, we create the pagination component with its attributes so we can use it wherever we need it. import React from ‘react’; import Pagination … Read more

Resolve Android Studio Error ‘Cannot fit requested classes in a single dex file…’

Tiempo de lectura: < 1 minuto This error appears when trying to create a build (apk/aab) with Android Studio. To solve it, we have to go to the build.gradle of the app and add into defauldConfig: multiDexEnabled true Remaining as follows: android { defaultConfig { … multiDexEnabled true … } DevCodeLightdevcodelight.com

Fix error ‘Your advertising ID declaration in Play Console indicates that your application uses an advertising ID.’ in Google Play console when uploading an application.

Fix error ‘Your advertising ID declaration in Play Console indicates that your application uses an advertising ID.’ in Google Play console when uploading an application.

Tiempo de lectura: < 1 minuto Today we’re going to learn how to fix the error that appears on Google Play when uploading an update or a new app that contains advertising: “Your advertising ID declaration in Play Console indicates that your application uses an advertising ID. A manifest file of one of your active artifacts does not include the com.google.android.gms.permission.AD_ID … Read more

Create a Splash Screen in Android

Create a Splash Screen in Android

Tiempo de lectura: 2 minutos Create a splash screen ad in an Android application is a relatively simple process. Here, I provide you with a step-by-step tutorial using the Kotlin programming language and the Android Studio development environment. 1. Create a new project in Android Studio: Open Android Studio and select “New Project.” Complete the basic project setup. 2. Design … Read more

Fixing error Duplicate class com.google.android.gms.internal.measurement.zzhx found in modules jetified-play-services-measurement when updating Google Play Service Ads.

Fixing error Duplicate class com.google.android.gms.internal.measurement.zzhx found in modules jetified-play-services-measurement when updating Google Play Service Ads.

Tiempo de lectura: < 1 minuto   When updating the version of com.google.android.gms:play-services-ads: to 2.5.0, you may encounter the following error: A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable > Duplicate class com.google.android.gms.internal.measurement.zzhx found in modules jetified-play-services-measurement-base-20.1.2-runtim … *Continues with more errors. The issue is that we also need to update the Firebase version. To update it, we should set the version 30.1.0 … Read more

Create a banner with AdMob on Android using Java or Kotlin

Create a banner with AdMob on Android using Java or Kotlin

Tiempo de lectura: 3 minutos Create a banner with AdMob in an Android application is a process that involves several steps. Below, I will provide you with a basic step-by-step tutorial using Java or Kotlin and the AdMob SDK. Step 1: AdMob Configuration Create an AdMob account: If you don’t have an AdMob account yet, go to AdMob and sign … Read more

How to clear Docker build cache

How to clear Docker build cache

Tiempo de lectura: < 1 minuto To maintain our Docker system, we need to consider that the Build cache can fill up with unused data. In this case, we have 31.24 Gigabytes of cache. To remove it, we’ll need to use the following command: docker builder prune -a Or force deletion with: docker builder prune -a –force Clean manually: If necessary, … Read more

Deploying a Python Web Application with Docker and Flask

Deploying a Python Web Application with Docker and Flask

Tiempo de lectura: < 1 minuto In this tutorial, we will learn how to use Docker to deploy a basic Python web application using the Flask framework. :snake: Step 1: Project Structure Create a new folder named “MyAppFlask” in your project directory and navigate to it: mkdir ~/projects/MyAppFlask cd ~/projects/MyAppFlask Step 2: Flask Application Code Create a file named app.py with … Read more

Configure SonarQube to allow analysing TypeScript and React code

Configure SonarQube to allow analysing TypeScript and React code

Tiempo de lectura: 2 minutos If you want to analyse a React project that includes TypeScript files (.ts and .tsx) with SonarQube, you’ll need to configure SonarQube to support TypeScript and adjust your project for effective SonarQube analysis settings. Below are the general steps: 1. Configure SonarQube to Support TypeScript: Ensure SonarQube is installed and running. Also, you need the … Read more

Docker container to generate a React build

Docker container to generate a React build

Tiempo de lectura: < 1 minuto Hello, today I’m going to share a very useful container for generating a React build. It already contains everything needed to generate it. Additionally, it is compatible with Vite.js. The first thing we are going to do is create the file docker-compose.yml version: ‘3.1’ services: react-app: container_name: react-app build: context: . dockerfile: Dockerfile volumes: – … Read more