Posts

Showing posts from August, 2019

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