In this video it shows the steps to add packagingOptions block in the gradle file in Android Studio. On adding the packagingOptions block it gives the deprecated unit error. This can be fixed by using packaging block instead of packagingOptions block. Also, use resources.excludes.add instead of exclude option. I hope…
Tag: gradle
How to run Google’s AI PaLM APIs in your Android App using Java dependencies?
This video shows the steps to use PaLM APIs in your Android App’s Java code. It refers to the steps mentioned at https://developers.generativeai.google/tutorials/text_java_quickstart I hope you like this video. For any questions, suggestions or appreciation please contact us at: https://programmerworld.co/contact/ or email at: programmerworld1990@gmail.com Complete source code and other details:…
How to set Minimum SDK Version and Target SDK Version of your Android App in Android Studio?
This video shows the steps to set Minimum SDK Version and Target SDK Version of your Android App. These parameters can be set in Gradle file (App level) of the project in Android Studio. If anything is changed in the Gradle file, then it should be synced again in the…
Android Studio – Fix the error “Could not resolve com.android.tools.build:gradle:7.4.0”?
In this video it shows the steps to fix the gradle error in Android studio. Actual issue is with Java version mismatch as explained in the below line of error: To resolve this issue, it changes the Gradle JDK for build in the settings of Android Studio. I hope you…
How to display gif (animated/ moving images) in layout of your Android app?
In this video it shows the steps to implement the animated gif images in your Android App. GIF, Graphics Interchange Format, are short animated images. In this tutorial it uses ‘pl.droidsonroids.gif:android-gif-drawable:1.2.25’ dependency in gradle file. Maven repository for this dependency can be referred at: https://search.maven.org/artifact/pl.droidsonroids.gif/android-gif-drawable/1.2.25/aar I hope you like this…
How to solve “Build was configured to prefer settings repositories over project repositories but repository ‘Google’ was added by build file ‘build.gradle'” error in Android App development?
On adding the google or maven repositories for all projects in the gradle file can given error. Adding below: allprojects { repositories { google() mavenCentral() } Gives below error: Solution: Goto Settings.gradle file: And add the lines as below if not added: google() and mavenCentral() repositories added:
How to import external Jar files as libraries in Android Studio Environment?
In this video it shows the steps to include the external Jar files in your Android Studio as libraries. It shows how the gradle file gets updated by adding the Jar files in the Android Studio environment. I hope you like this video. For any questions, suggestions or appreciation please…