Posts

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...