Flutter solve multi-dex – cannot find symbol MultiDex.install

Flutter solve multi-dex – cannot find symbol MultiDex.install

Tiempo de lectura: < 1 minutoWe are going to learn how to solve the multi-deck problem that can appear in Flutter today. The problem is as follows: Error: Cannot find symbol ‘MultiDex.install(this);’ ^ symbol: variable MultiDex location: class FlutterMultiDexApplication 2 errors FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ‘:app:compileDebugJavaWithJavac’. > Compilation failed; see … Read more

Flutter: Fixing problem [!] Your project requires a newer version of the Kotlin Gradle plugin when generating build or APK.

Flutter: Fixing problem [!] Your project requires a newer version of the Kotlin Gradle plugin when generating build or APK.

Tiempo de lectura: < 1 minutoWe will solve today’s problem: │ [!] Your project requires a newer version of the Kotlin Gradle plugin. │ What appears when we want to generate an APK with Flutter and find out that Kotlin is outdated. We need to do the following: Open the file: android/build.gradle And search for this line (or if there’s … Read more

Update Flutter Application to Android with SDK 35

Update Flutter Application to Android with SDK 35

Tiempo de lectura: < 1 minutoWe will see today how we can update a Flutter app to Android with SDK 35. Edit android/app/build.gradle: android { compileSdkVersion 35 defaultConfig { … minSdkVersion 21 targetSdkVersion 35 } } Verify that you have SDK 35 installed from Android Studio > SDK Manager. After all: flutter clean flutter pub get flutter build apk DevCodeLightdevcodelight.com

How to update your app to API 35 (Android 15) using Android Studio

How to update your app to API 35 (Android 15) using Android Studio

Tiempo de lectura: 2 minutos<pCurrently, Google requests to update SDK 35 so that our apps remain available in the market (do not delete them but hide them), as well as be able to send new updates. Open app/build.gradle or app/build.gradle.kts, and replace these lines: Before: compileSdkVersion 34 defaultConfig { minSdkVersion 21 targetSdkVersion 34 } After: android { compileSdk = … Read more

Create Admob App Loading Ad on Android

Create Admob App Loading Ad on Android

Tiempo de lectura: 3 minutosToday we are going to learn how to create an app loading ad with Admob on Android. First, we will implement in our build.gradle: implementation ‘com.google.android.gms:play-services-ads:23.0.0’ Then we need to initialize the ads in our MainActivity: MobileAds.initialize( this, new OnInitializationCompleteListener() { @Override public void onInitializationComplete(InitializationStatus initializationStatus) {} }); And add in the manifest (below </application>) … Read more

Create Admob Interstitial Ad on Android

Create Admob Interstitial Ad on Android

Tiempo de lectura: 2 minutosToday we’re going to learn how to implement an Interstitial ad on Android using Java. First, we’ll implement in our build.gradle: Then, we need to initialize the ads in our MainActivity: And add in the manifest (below </application> ): And also inside : Replace YOUR_ADMOB_APP_ID with your Admob APP ID. Now let’s create our interstitial … Read more

Create rewarded Admob ad on Android

Create rewarded Admob ad on Android

Tiempo de lectura: 2 minutosToday we’re going to learn how to add a rewarded Admob ad on Android using Java. First, we’ll implement in our build.gradle: implementation ‘com.google.android.gms:play-services-ads:23.0.0’ Then we need to initialize the ads in our MainActivity: MobileAds.initialize( this, new OnInitializationCompleteListener() { @Override public void onInitializationComplete(InitializationStatus initializationStatus) {} }); And we add in the manifest (below </application>) <meta-data … Read more

How to Add an Application to Android TV on Google Play

How to Add an Application to Android TV on Google Play

Tiempo de lectura: 2 minutosTo add an app to Android TV using Google Play, we’ll need to create an Android listing as explained in the previous POST (https://devcodelight.com/como-subir-una-app-a-google-play-console/) If we already have an app created, we’ll need to add the Android TV variant. To do this, we open our app and go to Release Here we select Setup > … Read more

Create a Release-Ready APK/AAB Package with Flutter in Visual Studio Code

Create a Release-Ready APK/AAB Package with Flutter in Visual Studio Code

Tiempo de lectura: 2 minutosToday we are going to learn how we can generate an APK or AAB to distribute or publish our application to the app store using Flutter and VS Code. We have to create an application signing file with the following command: keytool -genkey -v -keystore ~/upload-keystore.jks -keyalg RSA -keysize 2048 -validity 10000 -alias upload Indicate … Read more