Posts

Installing Flutter in Android 3.x

Image
Installing Flutter in Android 3.x Flutter is UI designer that can be used to generate UI code for Android, MacOS and Web apps. It is installed in Android by enabling two plugins: Flutter and the Dart language. 1. If Android is open in a project, go to File menu and select Settings . 2. Select Plugins and then search for Flutter. 3. Select Flutter. You will be asked to approve Dart installation. Apply. 4. Restart the IDE Flutter is now ready to be used.

How to Avoid Death by Gradle - painless Android Studio configuration

Image
Android Studio (AS) can be very frustrating if you do not carefully configure the following for every project: 1. Configure Gradle 2. Configure Gradle Plugin 3. Configure Java JDK 4. Configure Android SDK 5. Upgrade build.gradl e Syntax 6. Migrate to AndroidX Though Google has expertise in AI and could easily have implemented all the above via AI automation, they choose to leave it to you to trudge through the arduous task of setting up your IDE. They say calm waters never made skilled sailors. Welcome to stormy waters; I hope they will help you become a skilful Android sailor.  Details follow. The layout is not very clean but remember the skilful sailor story? 1. Configure Gradle: You can set the Gradle version in the file  gradle-wrapper.properties found here (your location may be different): C:\Users\YourUserName\AndroidStudioProjects\AndroidExample\gradle\wrapper\gradle-wrapper.properties Insert the statement below but change the last part to indicate the version

Gradled to Death

Image
Google is supposed to be one of the leading firms in applying artificial intelligence. It has self-driving cars and the Google Assistant yet they choose not to add a feature to Android Studio to automatically update and re-align settings when opening an Android project.  Instead, you get a mess of very frustrating "errors" that do not even identify the real error. In many cases, they are not errors at all but the effects of poorly designed integration of Gradle and Android Studio. My prayer is that, one day, a very bright young graduate will build a tool to clean this stinky mess. I will be the first to BUY it. I am just about had it with this thing. Soon, I may opt to grow avocadoes instead of wasting my life of this so-called developer tool.   I need to get a life. Recue the earth from Gradlemon.

How to Add Support for Android Libraries

Image
In your Android Studio project explorer, you will find two files named 'build.gradle'. One covers the entire project while the second covers the current module. In Android Studio 3.5, the project explorer appears as shown below: The module 'build.gradle' file has a section that looks like the figure below. dependencies { implementation fileTree( dir : 'libs' , include : [ '*.jar' ]) implementation 'androidx.appcompat:appcompat:1.0.2' testImplementation 'junit:junit:4.12' androidTestImplementation 'androidx.test.ext:junit:1.1.0' androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1' implementation 'androidx.recyclerview:recyclerview:1.1.0-alpha03' implementation 'com.android.support:recyclerview-v7:28.0.0'   To add a new support library, go to https://developer.android.com/topic/libraries/support-library/packages Browse the list of support librarie